Hi,
I'm new to this forum, and to VB. I've written a small application meant to integrate Lotus Notes databases with the Document Managment system Domino.doc which runs on a Domino server on NT platform. My problem is the following:
The Application works, but does not terminate when run as an exe. Run in the debugger all is fine and it terminates as it should. I've monitored the process, and on setting a variable to a property using OLE automation against the Domino.Doc API, 11 new threads are started. If I cancel the application before running this line of code, it terminates as it should. I'm dead sure I've set all objects to nothing, and in the opposite order of creating them.
The property I call caches a lot of other objects - I've explicitely uncached them before setting the collection object to nothing.
I've checked the log that the API produces - it creates 3 output files, runs 4 agents on the Domino server and opens 3 sessions on the server. But there's no record of any errors.
I've tried running the code as Lotus Script inside the notes Client - works great.
In the debugger I've checked every step of the closing procedure to make sure all objects and forms are gone by the time I run unload me. I tried leaving an object to see if the debugger would react, and sure enough - it went into not responding. Setting the object back to nothing, and the application terminates in the debugger.
Is there a way I could force the property to run on one thread? I think that's what happens in the debugger, as vb6.exe gets no increase in threads when the app runs in the debugger.
I'm at my wits end how to continue debugging this - any suggestions would be appreciated. I've been at this for 4 days - deadline is tomorrow morning...
regards,
Sigrid
I'm new to this forum, and to VB. I've written a small application meant to integrate Lotus Notes databases with the Document Managment system Domino.doc which runs on a Domino server on NT platform. My problem is the following:
The Application works, but does not terminate when run as an exe. Run in the debugger all is fine and it terminates as it should. I've monitored the process, and on setting a variable to a property using OLE automation against the Domino.Doc API, 11 new threads are started. If I cancel the application before running this line of code, it terminates as it should. I'm dead sure I've set all objects to nothing, and in the opposite order of creating them.
The property I call caches a lot of other objects - I've explicitely uncached them before setting the collection object to nothing.
I've checked the log that the API produces - it creates 3 output files, runs 4 agents on the Domino server and opens 3 sessions on the server. But there's no record of any errors.
I've tried running the code as Lotus Script inside the notes Client - works great.
In the debugger I've checked every step of the closing procedure to make sure all objects and forms are gone by the time I run unload me. I tried leaving an object to see if the debugger would react, and sure enough - it went into not responding. Setting the object back to nothing, and the application terminates in the debugger.
Is there a way I could force the property to run on one thread? I think that's what happens in the debugger, as vb6.exe gets no increase in threads when the app runs in the debugger.
I'm at my wits end how to continue debugging this - any suggestions would be appreciated. I've been at this for 4 days - deadline is tomorrow morning...
regards,
Sigrid