Hello,
I am facing a problem related to GUI_MEMDEV_BlendWinBk .
I display 6-7 windows one after another in my application. Please see my flow below,
1) Display Window 1 - after some delay delete window 1 and display window 2
2) Display Window 2 - on button click delete window 2 and display window 3
3) Display Window 3 - on button click delete window 3 and display window 2
4) Display Window 2 - after some delay delete Window 2 and display window 4
5) Display Window 4 - on button click delete Window 4 and display window 5
6) Display Window 5 - on button click delete Window 5 and display window 6
7) Display Window 6 - on button click display window 7 and call GUI_MEMDEV_BlendWinBk on WM init for window 7 to blend background window.
I get an exception at GUI_MEMDEV_BlendWinBk call. Attached is the error.
the weird part is when points 2, 3, 4 are skipped the GUI_MEMDEV_BlendWinBk does not give exception and result is as expected.
i.e. if after window 1 i directly show window 4 and proceed further as per points then the exception is not shown.
when the exception is thrown the window 7 handle is 4 and when exception does not come the window 7 handle is 48.
I think i have allocated sufficient memory to emwin by by #define GUI_NUMBYTES 0x1000000.
Not sure what is causing the issue here.
Do i have to clear any memory other than WM_DeleteWindow?
unfortunately i cannot share the code.
Please point me to a direction from where i can proceed.
Thanks
Regards
Anuj
I am facing a problem related to GUI_MEMDEV_BlendWinBk .
I display 6-7 windows one after another in my application. Please see my flow below,
1) Display Window 1 - after some delay delete window 1 and display window 2
2) Display Window 2 - on button click delete window 2 and display window 3
3) Display Window 3 - on button click delete window 3 and display window 2
4) Display Window 2 - after some delay delete Window 2 and display window 4
5) Display Window 4 - on button click delete Window 4 and display window 5
6) Display Window 5 - on button click delete Window 5 and display window 6
7) Display Window 6 - on button click display window 7 and call GUI_MEMDEV_BlendWinBk on WM init for window 7 to blend background window.
I get an exception at GUI_MEMDEV_BlendWinBk call. Attached is the error.
the weird part is when points 2, 3, 4 are skipped the GUI_MEMDEV_BlendWinBk does not give exception and result is as expected.
i.e. if after window 1 i directly show window 4 and proceed further as per points then the exception is not shown.
when the exception is thrown the window 7 handle is 4 and when exception does not come the window 7 handle is 48.
I think i have allocated sufficient memory to emwin by by #define GUI_NUMBYTES 0x1000000.
Not sure what is causing the issue here.
Do i have to clear any memory other than WM_DeleteWindow?
unfortunately i cannot share the code.
Please point me to a direction from where i can proceed.
Thanks
Regards
Anuj