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

Home » Public Forums » archive » Re: Q: call_external hangs IDL Windows GUI?
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: Q: call_external hangs IDL Windows GUI? [message #43606] Wed, 20 April 2005 14:05 Go to previous message
b_gom is currently offline  b_gom
Messages: 105
Registered: April 2003
Senior Member
Joshua,

call_external does block in Windows (there is no multithreading in the
IDL interpreter) You can, however, call an external function that
starts a thread and then returns quickly to IDL. You will have to sort
out the messaging between the threads on your own though.

Good luck,

Brad

Joshua Lynch wrote:
> Hello,
> I have an application that uses call_external to call a C function
> which waits for some network input and then returns. Unfortunately
> it seems that entire IDL IDE hangs for every call to call_external.
>
> Is this, in fact, a correct assumption?
>
> I've tested the same application under Unix and it does not hang the
> IDE.
>
> It seems as though when I'm running the application and don't click
> anywhere in the IDE, it runs fine (sort of, it prints its data out 2,
> 3, 4 five lines at a time, instead of smoothly, one at a time). As
> soon as I click anywhere in the IDE the menu bar disappears and if I
> click again the title bar displays the dreaded "Application Not
> Responding" string.
>
> My guess is that the IDE is stopped while waiting for the C function
> to return?
>
> Am I missing something simple?
>
> Thanks in advance.
>
>
> --josh
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Torus creating code in IDL
Next Topic: R. Frank's extproc call for windows dll's (actually an old subject)

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

Current Time: Wed Oct 08 20:03:12 PDT 2025

Total time taken to generate the page: 0.01186 seconds