Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: RE: bug report: _gx_system_timer_expiration()

$
0
0
Hello Jim, The team is looking into the problem, however I'm aware of another issue, where calling gx_widget_delete does not release its view (and you're only limited to 31 views per application). As such, you're likely to observe this problem even without timers. As a matter of fact the timer issue may all have been caused by inability to create another window. Please try the following code to switch between windows: static UINT app_gx_goto_window (char * name, GX_WIDGET * p_current, GX_WIDGET * p_new, bool destroy) {     UINT status;     status = gx_studio_named_widget_create(name, GX_NULL, GX_NULL);     if(status != GX_ALREADY_CREATED)         if(status)             return status; // Error     if (destroy)     {         status = gx_widget_detach(p_current);         if(status)             return status;     }     if (p_window_root- gx_widget_first_child == GX_NULL)     {         status = gx_widget_attach(p_window_root, p_new);         if(status)             return status;     }     else     {         status = gx_widget_attach(p_current, p_new);         if(status)             return status;     }     status = gx_system_focus_claim(p_new);     if(status)         return status;     return GX_SUCCESS; } Regards

Viewing all articles
Browse latest Browse all 59170

Trending Articles