Try releasing loResourceMgr before setting it to NULL.
COM Codebook applications do not require MTS/COM+.
FYI, you can install MTS on a Win98 machine. It is installed by running the NT4 Option Pack. (yes, you read that correctly).
>Hi to all
>
>I have created a COMCodebook Application in VFP7&SP1 on my WinXP Pro machine.
>
>Then i have installed the application in my client machine (PC with Win98 SE), run it, the application crashes.
>
>After i did some searching and testing in the clients machine i found out that the application crashes every time i set a object variable to .NULL.:
>
>***************************
>* MAIN.PRG
>***************************
>AppObject = CreateObject("CApplication")
>.
>
>
>***************************
>* Application Object Class
>***************************
>DEFINE CLASS CApplication AS Session
> Patients = .NULL.
>
> Procedure Init()
> Local loResourceMgr As CashResourceMgr.Patient
>
> loResourceMgr = CreateObject("CashResourceMgr.Patient")
> This.Patients = loResourceMgr.GetProxy()
> loResourceMgr = .NULL. * <-------- C5 error
> EndProc
>ENDDEFINE
>
>Thanks for any advise
>
>PS. Can COMCodebook components run under Win98 SE or only under MTS/COM+?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer