TomRValdez
Programmer
I'm running ARCServe V6.61 build 834 on NT 4.0 with service pack 6. I have a batch process that runs continually and I want to put it sleep during backups. I turned the app into an ActiveX exe and created a 2nd control program which establishes a COM interface to the batch program. The control program can invoke 2 COM methods on the batch program, one to put it to sleep and the other to wake it up again. Both pgms are written in VB6 with SP3.<br><br>My intention is to have ARCServe invoke the control program, as setup on the Pre/Post tab of the options window for the job, using the "Run command before job" and "Run command after job" facilities, but I get a COM error from the control program when invoked from ARCServe:<br><br>"Automation error <br>The object universal unique identifier (UUID) was not found."<br><br>Everything runs fine when the control pgm is launched manually. I run the pgm, it establishes a connection to the batch pgm during program load (form_load in VB), I click a command button to invoke the "go-to-sleep" batch pgm method and the batch pgm goes to sleep. I click a 2nd command button to invoke the "wake-up" batch pgm method and the batch pgm wakes up. <br><br>But when launched from ARCServe, the control pgm gets the above error when attempting to establishs a connection to the batch pgm. I even wrote a third program which launches the control program in attempt to emulate the ARCServe behavior. Works like a charm (I'm using command-line parameters to direct the control program to invoke the sleep and wake-up methods). <br><br>Does ARCServe create a "protected" shell environment wherein the pgm it launches can't access the registry for proper creation of a COM interface? (Yeah, sounds farfetched, but it's better than "malicious alien quantum disbursion"...) <br><br>If I HAVE to I can make my program go to sleep based on a timer, but the COM interface is more elegant since it automatically adhears to the backup job schedule, even if the schedule is changed.<br><br>Or perhaps I should just make the batch pgm close altogether during backup and then relaunch it... I can do the pgm close with SendMessage and no COM...<br><br>Thanks!<br><br>Tom