comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: GUI interface update issues
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: GUI interface update issues [message #44523 is a reply to message #44510] Tue, 21 June 2005 13:04 Go to previous messageGo to previous message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
On Tue, 21 Jun 2005 09:23:39 -0700, Rick Towler wrote:

> Hello group,
>
> I have an interesting problem with gui redraw on WinXP which maybe
> someone can shed some light on.

snip

> Why does IDL stop updating the gui? Any ideas? While the functions in
> the dlm are compute intensive, they aren't particularly complicated and
> only rely on some simple macros in an .h file. Just a *lot* of looping
> over a moderate amount of data.

You might try calling the (documented) IDL_BailOut function. One purpose
for this function is to let users have the opportunity to interrupt IDL
during a long-running calculation. Many of the IDL internal system
routines call IDL_BailOut as they make progress through a calculation. It
is probably good form to code your C DLM's to call this function every so
often so that users can break out of it.

One side effect of IDL_BailOut is to flush window events, which depending
on how your app is designed, might help keep the GUI's and progress bars
fresh during the long-running operation.

I'm not completely certain this will help you, but it is worth a try. It
is very easy to give it a shot. If it helps, then spend a little more
time to figure out a good policy for calling BailOut so that you don't
call it too often or too infrequently. You don't want to slow down your
function TOO much.

Karl
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MPFIT2DPEAK
Next Topic: Re: iSurface lighting questions

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 16 19:24:01 PDT 2025

Total time taken to generate the page: 2.32111 seconds