Hi Bob,
The object isn't a real object until the init is done.
Create a prg named test. In it put:
DEFINE CLASS test as Custom
PROCEDURE Init
? TYPE("o")
ENDPROC
ENDDEFINE
Now do
o=NEWOBJECT("test", "test.PRG")
o is undefined.
I cheat like this.
PROCEDURE Init
PUBLIC ThisApp
ThisApp = This
ENDPROC
Now ThisApp.Release can work.
>Fred,
>
>Thank you for replying.
>
>I don't think using it that way is the problem. I did replace 'this.release' with 'oApp.release()' in the 'init' method and ended up with the same error. I even included only 'clear events' in 'release' method and in main.prg following read events, I added 'oApp.release()' with no luck.
Charlie