WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Dialog Editor version 6.2
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Dynamic Dialog Not Responding

 Keywords: DialogProcOptions 1000 Disable Enable Dynamic Dialog Not Responding No Refresh Slow

Question:

I have a common problem with Dynamic dialogs going to [Not Responding]. This happens in a lot of scenarios, but here's an example in pseduocode:
- load array with 2000 rows
- update StaticText element with value of Array[i,x] with the DialogControlSet command
- loop through all elements in array
The Dialog will run OK if i never change focus away from the dialog. But if i open another window and come back to the Dialog, it will be blank, show as [ Not Responding ] and no controls will be updating. HOWEVER, the script is still running, the array is still processing, and the dialog will resume operation once the loop is complete.

This only happens if i have a high volume of refreshes --- 1000+ records. Quick bursts of 10 records / dialog refreshes don't have any negative effect.

If i use a simple BoxText command, I have no problems. the BOX will dispay the refreshing text whether i have focus or not and never goes to [Not Responding]

Looking for some guidance on what could be causing this...

Answer:

Generally in WIL dialogs you don't want to have code that takes a really long time to return to the dialog procedure. IF you do have code that takes a while to process then you will see the CPU get pegged and the dialog becomes non responsive. In order to get around this you can temporarily Disable the dialog using DialogProcOptions 1000, then re-Enable after the long process.
Article ID:   W17720
Filename:   Dynamic Dialog Not Responding  .txt
File Created: 2014:02:13:13:50:18
Last Updated: 2014:02:13:13:50:18