Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Starting an ActiveX exe

Status
Not open for further replies.

dewaans

Programmer
Oct 11, 2001
2
US
Folks, I am new to programming so please bear with me.
I am making a call to an out-of-process server which in this case is an activex.exe via the following:

frmMain.objLogServer.LogServer_ProcessDevice _
devices(x).DeviceType, Trim$(g_ParamRec.UserName), Trim$(g_ParamRec.ServerPassword), _
devices(x).DeviceName, devices(x).FileSize, devices(x).FileDateTime, _
devices(x).LastLogDateTime, devices(x).ServerName, devices(x).LogFileName, _
devices(x).DelimiterSpec, devices(x).LastCheckTime, g_bNWDebug


My problem is that sometimes that out-of-server process dies and when that happens, I get the "Remote Server Machine does not exist" error. (Error 462).

My question is : How can I start that process, if it has died. I already trap the error, so if I know how to start the process, I will be in good shape.

Regards,

dewaans
 
The server should get recreated if you create a new instance of the class (that actually lives in the other process)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top