I'm getting the following error after Notepad is closed and final command is executed successfully before returning to calling page.
"The Server was unable to process the request. Close the application and start again"
After the error the client crashes and I have to restart it. My code is below. I've tried instantiating on both the client and the server and I get the same error. In debug, the code executes fine until it tries to display the page it was called from. Any and all help would be appreciated.
IF ISCLEAR(WindShell) THEN
CREATE(WindShell,FALSE,ISSERVICETIER);
WindowDir := Environ1.GetEnvironmentVariable('windir');
WinType := 1;
WaitVar := FALSE;
WindshellCommand := WindowDir+'\System32' + '\notepad.exe '+ Environ1.GetEnvironmentVariable('temp') + '\' + USERIDPART + '.txt';
WindShell.Run(WindshellCommand, WinType, WaitVar);
CLEAR(WindShell);
"The Server was unable to process the request. Close the application and start again"
After the error the client crashes and I have to restart it. My code is below. I've tried instantiating on both the client and the server and I get the same error. In debug, the code executes fine until it tries to display the page it was called from. Any and all help would be appreciated.
IF ISCLEAR(WindShell) THEN
CREATE(WindShell,FALSE,ISSERVICETIER);
WindowDir := Environ1.GetEnvironmentVariable('windir');
WinType := 1;
WaitVar := FALSE;
WindshellCommand := WindowDir+'\System32' + '\notepad.exe '+ Environ1.GetEnvironmentVariable('temp') + '\' + USERIDPART + '.txt';
WindShell.Run(WindshellCommand, WinType, WaitVar);
CLEAR(WindShell);