GUI_ExecCreatedDialog(hWin) infinite loop

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

  • GUI_ExecCreatedDialog(hWin) infinite loop

    Under _DrawBitmap I get an infinite loop here ->
    [img]http://tinypic.com/r/347abzm/8[/img]
    [img]http://i58.tinypic.com/347abzm.png[/img]

    This is while running the following code at the command " GUI_ExecCreatedDialog(hWin);"
    it on yellow:

    C Source Code

    1. void Settings(void) {
    2. WM_HWIN hWin;
    3. hWin =
    4. GUI_CreateDialogBox(_aDialogOrder, GUI_COUNTOF(_aDialogOrder),
    5. &_cbDialogOrder, 0, 0, 0);
    6. WM_MakeModal(hWin);
    7. GUI_ExecCreatedDialog(hWin);
    8. }
    Display All
    How do I fix it?

    The post was edited 3 times, last by mcuevas ().

  • Please post _cbDialogOrder code. It is most likely something you are doing there. EDIT: In my experience what causes this is something in the callback that causes it to call itself (e.g. modifying an attribute that changes the way the widget draws itself) and you end up with infinite recursion. You have to do those things outside the callback.

    The post was edited 1 time, last by tmostad ().