Hi peter

If you comment out your "Print" in the main routine, than the "Print" in the callback function works as expected.

Try to replace both print methods with Msgbox and it makes you wonder...
The Msgbox in the callback function doesn't appear without any errors.

thanks a lot
i'll have a loook

now i solved my problem, and, should I say it, i'm really happy

first i deduced that AsyncCallback is only effective at the end of the routine that has put the callback

so i've transported my parameters as return values of functions (instead of sub); At the top level caller, my listener that led me to crash, i used the callback
a very small wait 100 inside it did the trick

so now i have a method that enable (or do as) closing a document inside a listener call depending on it;
in fact this only an artefact using the async callback, but it works

thanks a lot Mikhail, Franck and Peter
A free beer the next time we meet :)

i wish you wondefull christmas hollidays

laurent




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to