Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Releasing a form
Message
 
To
03/01/2002 13:05:30
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00600381
Message ID:
00600388
Views:
24
Hi Steve,

In this context, what do you mean by a 'dangling object reference'?

>Allan,
>
>Sounds like a dangling object reference in your form. If you find out which one it is, you can set it to NULL before releasing the form...
>
>>I'm trying to release a form from one of it's custom methods where an ActiveX control attempts to connect to our Exchange server - and the form does not release. Not surte what I'm doing wrong ...
>>
>>
>>lcOnError = On("ERROR")
>>ON ERROR do procIgnoreError
>>
>>This.omailer.Connect (Thisform.phostname)  && connect to Exchange Server
>>
>>If This.omailer.lastError > 0  && Error in connecting to Exchange Server
>>	lcError = [Mabry MailX Error # ]+Alltrim(Str  This.omailer.lastError,8.0))+[ in frmSwitchDist.Init]
>>	* log the error to a text file
>>	DO procLogError WITH lcError
>>	* advise the user of the problem
>>	lcMsgText = "Unable to Connect to Exchange Server - please contact Network support !"
>>	lcMsgText = lcMsgText + CHR(13)+CHR(10)
>>	lcMsgText = lcMsgText + "This screen will now close ..."
>>	=Messagebox(lcMsgText,16,"Exchange Server Connection Error")
>>	On Error &lcOnError
>>	thisform.Release()
>>ENDIF
>>
>>
Al Williams

Anola MB, CANADA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform