Hi Franck
thanks a lot
it works, at least i can define a callback :)
btw, seems to me that i can not depend in the callback on a public
variable change
public myDummy
Sub Main
oASync = CreateUnoService("com.sun.star.awt.AsyncCallback")
oCallback = CreateUnoListener("Callback_", "com.sun.star.awt.XCallback")
myDummy = true
oASync.addCallback(oCallback,"")
Print "test1"
myDummy = false
End Sub
Sub Callback_notify( aData )
wait 5000
Print cstr(myDummy)
End Sub
test1 occurs before test2, this is ok
the callback myDummy returns "true" instead of false
my purpose is to close a document only when the basic callstack implying
listerners callback on this document is finished otherwise OOo crashes
(this is why i don not want to rely on wait 5000)
any idea where i should look at ? is AsyncCallback the right way ?
thanks again
Laurent
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]