GUI_CreateDialogBox returns 0

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

  • 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.
  • 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
    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.