Hi,

Thanks! The "wait" call worked after some changes in the C++ code moving all
the 3270 communication to another thread.

and all the network stuff is running in a separate thread but, some part of
>> the code needs to wait for any kynd of host response; when I do this all
>> the
>> OpenOffice.org ui hangs.
>>
>> I'm looking for some function cal to keep the UI responsive even if the
>> starbasic script is waiting; something like the gtk_main_iteration() call.
>>
>
> although I don't know what could be called in C++ or UNO to
> achive this, it may also help you to get some Basic related
> information. It's also possible to send Basic into a waiting
> loop that keeps the UI responsive by using the wait command,
> e.g.:
>
> sub main
>    while true
>        wait 1000       ' 1000 ms = 1 s
>        print "Hello"
>    wend
> end sub
>
> The UI is responsive while running this program. Instead of the
> print command you could call your extension to ask if there was
> a host response or a failure or whatever and then exit the loop.
>


-- 
Perry Werneck
Brasília - DF

Stephen 
Leacock<http://www.brainyquote.com/quotes/authors/s/stephen_leacock.html>
- "I detest life-insurance agents: they always argue that I shall some
day
die, which is not so."

Reply via email to