Is there a way to free memory of text when the language is changed?

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Is there a way to free memory of text when the language is changed?

      Hello,

      I would like to ask about Multi-Language Support.
      According to "32.2.3 Loading files from non addressable areas" in UM03001_emWin5.pdf,
      With GUI_LANG_GetText(), a specific text will be allocated in RAM, read from the file and converted in a legal zero delimited string.

      Is there a way to de-allocate this allocated memory when the language is changed?
      What I want is to de-allocated all memory allocated for "English language text" when the language is changed to "English" to "Spanish",


      Thank you,

      Best Regards,

      Ashley Lee
    • Hi Ashley,

      calling GUI_LANG_Clear() frees all resources. This routine was just added with emWin V5.50.

      Best regards,

      Florian
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.