Create an error method with three parameters nError, cMethod, nLine. You can log the error from there. Use COMRETURNERROR to return information to the client.
>I created a COM object using
>DEFINE CLAS _test AS CUSTOM OLEPUBLIC
>...........
>ENDDEFINE
>
>I am trying to catch errors while running the COM object.
>I tried to use ON ERROR DO This.getError inside the init procedure of the object, but I cannot compile it:
><
>
>
>How can I catch errors inside my object?
>
>Thanks,
>Vali
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer