Thursday, June 29th 2017, 9:17am UTC+2

You are not logged in.

  • Login
  • Register

YPO53

Beginner

Date of registration: Oct 4th 2016

Posts: 23

1

Tuesday, May 23rd 2017, 11:55am

GUI_CreateDialogBox returns 0

Hello.

I had an hardFault error when I was playing with my application, after looking why. I see that when I want to create a new windows the GUI_CreateDialogBox return 0.
Is it possible, if yes, what does it mean ?
What should I do to remove this problem.

Note that this error is not systematic, it it is ramdom ...


Thanks.

SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 309

2

Thursday, June 1st 2017, 4:41pm

Hi,

if the function returns with 0 something went wrong and the dialog was not created. Most likely there is not enough memory available. I recommend to increase the memory allocated to emWin by increasing the define GUI_NUMBYTES in GUIConf.c.

Regards,
Sven

YPO53

Beginner

Date of registration: Oct 4th 2016

Posts: 23

3

Thursday, June 8th 2017, 2:06pm

Thanks a lot for your response.