This recent thread reminded me again that TC doesn't show a meaningful error message when the launch of an executable fails. One has to start the program again via context menu to make Explorer execute this program to learn the reason why the program launch failed. This is really annoying!
Please make TC show a meaningful error when a program fails to start. In Delphi there's even a group of functions that can help to do so. I use something like this:
Code: Select all
MessageBox(Self.Handle, PChar(SysErrorMessage(GetLastError)), PLUGINNAME, MB_OK or MB_ICONHAND);
I'm not sure whether or not Delphi 2 has SysErrorMessage function, but I'm sure that there's a way to deal with that if that's the case. Of course instead of GetLastError you could use any other approriate variable, e.g. the return code of a function or something. Maybe even RaiseLastOsError/RaiseLastWin32Error could help in this situation.
Regards
Dalai