| Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 | 
| Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit | 
| Moderator: | STAR::VATNE | 
| Created: | Mon Oct 30 1989 | 
| Last Modified: | Mon Dec 31 1990 | 
| Last Successful Update: | Fri Jun 06 1997 | 
| Number of topics: | 3726 | 
| Total number of notes: | 19516 | 
    My customer is writing an application using the decwindows widgets. He
    has found that if a callback routine executes for a very long period of
    time ( for example 5 seconds because it is doing a big matrix invertion
    ) the application apprears to the user as frozen. He understands why
    this is so, because the main loop will dispense an event then wait for
    the callback to complete, but he doesn't like it. He is dreaming up
    ways to work around this and has come up with an idea. Can anyone
    comment on what might be expected if he was to ....
    
    He will write an ast which is timer driven and contains the
    XtMainLoop call.
    
    
    Also does anyone know if there is a way to force the XtMainLoop to
    time-out? Ie. make the loop execute even if there isn't any queued
    events on a timely basis?
    
    regards,
    jeanne
| T.R | Title | User | Personal Name | Date | Lines | 
|---|---|---|---|---|---|
| 1292.1 | CALL::SWEENEY | Honey, I iconified the kids | Wed Aug 16 1989 23:18 | 3 | |
|     While not obvious from the title, note 1260 discusses this situation
    precisely.
 | |||||
| 1292.2 | PSW::WINALSKI | Meetings are our most important product | Fri Aug 18 1989 14:43 | 4 | |
| You cannot call Toolkit routines from AST level. It won't work right. --PSW | |||||
| 1292.3 | go with work procedures | VAOU02::JBLAIR | party on dudes! | Mon Aug 21 1989 12:41 | 4 | 
|     Thanks, I had a hunch that the toolkit routines might not behave well
    if called from an AST but I wasn't sure. I'll try to steer them towards
    the solutions offered in note 1260.
 | |||||