Hi All
Access97 running on Win98,2k, XP
I've got an ActiveX tapi dialer program that I have on a contacts form. An object is created and bound on the form load:
This works fine. The line object needs to be available all the time the form is open (it monitors the line for incoming calls).
This code will work fine for a while, but then I get an error 91: "Object variable or With block variable not set" on the Line object - it seems to lose the connection to it. you cannot even test for the status of the line object - it does not exist at all.
Anyone know what could cause an object to go out of scope while the form remain open?
The form is very complex, and what is very frustrating is I cannot get it to recreate the error - it seems to occur randomly every few hours of use, and never on my test system!
the tEx object seems to be retained fine.
Access97 running on Win98,2k, XP
I've got an ActiveX tapi dialer program that I have on a contacts form. An object is created and bound on the form load:
Code:
Private WithEvents tEx As TAPIEXLib.TAPIExCtl
Private Line As TAPIEXLib.ITAPILine
Dim intDevID As Integer
Set tEx = New TAPIEXLib.TAPIExCtl
tEx.Initialize
(section to select correct intDevID)
Set Line = tEx.GetLineFromDeviceID(intDevID)
This works fine. The line object needs to be available all the time the form is open (it monitors the line for incoming calls).
This code will work fine for a while, but then I get an error 91: "Object variable or With block variable not set" on the Line object - it seems to lose the connection to it. you cannot even test for the status of the line object - it does not exist at all.
Anyone know what could cause an object to go out of scope while the form remain open?
The form is very complex, and what is very frustrating is I cannot get it to recreate the error - it seems to occur randomly every few hours of use, and never on my test system!
the tEx object seems to be retained fine.