Problem with wm_invalidate and memdev on emwin!!!!

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

  • Problem with wm_invalidate and memdev on emwin!!!!

    Hi,

    [b]i used LPC1788+ 32MbyteSDRAM+clock is 120mhz+emwin 5.16+keil.
    I have created a dialog window with a custom button and used the following code to update the text(label) of it every 500ms.

    every thing is good after run and my button text updates fine. but
    almost after 3 to 10 minute my screen become flickering every 500ms.

    What might be causing the problem?




    here is the code after some simplicty:



    #define GUI_SUPPORT_MEMDEV (1)



    [/b]Dialog_WindowCB{

    WM_PAINT:

    Button_Text=New_txt;

    break;

    }



    main{

    WM_SetCreateFlags(WM_CF_MEMDEV);

    GUI_Init();



    while(1){

    if (!Timer)

    {

    WM_Invalidate(Dialog_Window);
    Timer=500ms;

    }



    GUI_Exec();

    }}



    Please HELP ME........