Paladin
1
hi everybody,
i have an ax form that activates a c# application (using the winapi class)
if for example c# would crash i have to notify ax to take over
how can i return an exit code from c# back to my ax form or to some varialbe or table field in ax?
thanks
I would use System.Diagnostic.Process instead of WinAPI.
Start your process and save the reference:
System.Diagnostics.Process process = System.Diagnostics.Process::Start("YourApplication.exe");
and later - instead of reading “some variable or table field” - ask the process itself:
if (proces.get_HasExited())