C0000008 ExternalException with delphi 7

Jun 09, 2006 3 Replies

Hello



I have a problem wirh my delphi 7 when i execute this code :



var v:Variant; begin v:=CreateOleObject('Opos.PosPrinter'); v.Open('IBM-SUREPOS'); end;



In delphi, when I launch this code, the Open method raise an exception C0000008 (ExternalException).



The same program launched out of delphi, I don't have exception.



For information I have Opos Common Object v1.8



Some have a solution ?



JP


First, this newsgroup is intended to discuss Microsoft's Point of Sale products: MS Retail Management System and MS Point of Sale. You may get better information from a group dedicated to OPOS or UPOS. You may also want to check IBM's site as most manufacturers provide their own OPOS drivers and SDK to support them.

I'm not sure exactly what you are referring to when you say "In Delphi" or "out of Delphi". I'm going to assume that you mean that when you compile the code and run it as an executable it works, but when you try to run it in the debug environment you get an error.

Don't know if the delphi debug environment does anything that might get in the way of COM. The only thing I can think of that you might want to check out on the OPOS side is that you need to make sure that you are CLOSING the printer when you are done with it, and that there is no other software that is claiming it when you try running in debug mode. In General, an OPOS device can only be opened by one 'client' at a time...

Glenn Adams Tiber Creek C> Hello

Hello

First, thanks for your answer. Do you have a name or a link of a group dedicated to Opos ?

About "In delphi" and 'out of Delphi", you understand well. I have tested to run this code "In delphi" and i have disabled debug mode in delphi and I don't have the exception.

JP

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required