Hi 

I have written a COM+ application to Scan Documents and store them 
using standard Axapta Document Handling. 

My problem is that I can run this perfectly, but only once. If I try 
to scan again, all Axapta code runs through and gives a call to COM 
object but doesnt scan. I have to restart Axapta, so I assume Axapta 
is holding on to the COM object somehow or is it something to do with 
the way the COM+ application is written / configured. 

My code looks like this:

COM myObject = new COM("AcquireImage.Form1"); 
myObject.StartScan(fileName, otherParameters);

I have tried the following in Axapta but doesnt work:
myObject.detach();
myObject.finalize();

Please let me know if you have any clues.

Thanks,
Pawan                           

Reply via email to