My design includes 2 processes:
Process A - Non UI Process
Process B - UI Process
Process A starts Process B in the beginning. Also Process A watches for Process B's death using RProcess::Logon(). When Process B crashes, Process A receives the notification.
Now, Process A, closes the RProcess handle held for RProcess::Logon, tries to check if Process B is still running using TFindProcess::Next(), and finds that Process B is still running and it is unable to restart Process B.
I tried to reinvoke Process B without checking if it is still running and it only leads Process B to crash again.
Am I missing anything here??
Its kinda very urgent to solve this issue. Hope someone would have faced this problem. Looking forward to a solution from the developers.