Results 1 to 2 of 2

Thread: Determining if an error occured on a Shelled app

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    2
    I am using CreateProcessA along with WaitForSingleObject to
    run a process, hold the calling application, and resume when then generated process is finished. The shelled process is a scoring programming that could possible fail due to possible bad data in a database. I wish to, in the program that is calling this scoring application, find out when the scoring application fails so it can be rescheduled to run at a later time. How can I return the called processes generated errors or any value informing that the called process has errored in any way.

    Thanks !!

  2. #2
    Guest
    You can use the getlasterror api to see the error that was accure in the windows os.

    Code:
    Declare Function GetLastError Lib "Kernel32" () As Long
    -Kayoca Mortation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width