Message Board for Rorohiko Workflow Resources
https://www.rorohiko.com/cgi-bin/yabb2/YaBB.pl
General Category >> General Board >> APID: Don't close a document on open
https://www.rorohiko.com/cgi-bin/yabb2/YaBB.pl?num=1146643972

Message started by Kris Coppieters on 05/03/06 at 20:12:51

Title: APID: Don't close a document on open
Post by Kris Coppieters on 05/03/06 at 20:12:51
A gotcha with Active Page Item Developer: don't close a document while you are processing its docLoaded event. That leads to a crash.

The scenario is as follows:

- There is a scripted plug-in in the plug-ins folder; this plug-in has an event filter that captures the  'docLoaded' event
- During the processing of this event, you force the document to close (for example, theDoc.close(SaveOptions.no); )

That leads to a nasty crash.

I have not figured out how I can avoid the crash, so for now the message is: don't do it.

"Doctor, if I push here, it hurts"
'Then don't push'

Message Board for Rorohiko Workflow Resources » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2024. All Rights Reserved.