Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Job Pre/Post application launch not working

Job Pre/Post application launch not working

Job Pre/Post application launch not working

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.

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:

"Automation error
The object universal unique identifier (UUID) was not found."

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.  

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).  

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"...)

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.

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...



Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close