Welcome, Guest. Please Login
Rorohiko Workflow Resources
  Welcome the Message Board of Rorohiko Workflow Resources. To register, please e-mail [email protected] - automatic registration has been turned off because of relentless spambots and spammers. This Message Board is not actively monitored. If you have an urgent question, please e-mail [email protected]. If you post it here, it will probably be many weeks before we notice.
  HomeHelpSearchLogin  
 
Page Index Toggle Pages: 1
Send Topic Print
APID: Don't close a document on open (Read 3669 times)
Kris Coppieters
YaBB Administrator
*****
Offline



Posts: 181
New Zealand
Gender: male
APID: Don't close a document on open
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'
Back to top
 

Kris
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print