Reply to: Document.getDocumentObject() returns NullOctober 30, 2012 at 8:26 pm
So the problem seems related to the computer going into sleep mode. If I open a file, if I call my app right away I get a value from the call to getDocumentObject(). But if the computer goes into sleep mode and then restarts, this value is null.
After sleeping, I tried a call to _Document.Reload() before the call to getDocumentObject(), but this causes other strange behavior: the “Choose DTD” window is opening and my application is left frozen waiting for user input.