cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Kotiomkin
Level 5

Error handler for LaunchAppAndWait

In my IS 2009 project I launch some LaunchAppAndWait commands.

Is there a way for create an error handler event in order to centralize every error coming from LaunchAppAndWait functions?

For example:

LaunchAppAndWait (App1)

....

LaunchAppAndWait (App2)

....


function OnLaunchAppAndWaitErrorHandler()
begin
// Here I want to LOG the passed parameters, the return value
// and every other info about the launched process
end;



The alternative is to replicate the LOG code near every single call of OnLaunchAppAndWait(), but is a solution that I don't like so much...

Another question, what are the IS function for get info about the launched process?

Thanks a lot!

Bye!
Labels (1)
0 Kudos
(1) Reply
DanCla
Level 5


nvResult = LaunchAppAndWait(szProgram, szArgs, WAIT);
nvExitCode = LAAW_PARAMETERS.nLaunchResult;


nvResult will hold the value returned from LaunchAppAndWait().
nvExitCode will hold the value returned from the application launched.
0 Kudos