On testing an app that uses my replacement dialog box, I got an odd error.
The application will show a dialog at start up (to do with demo mode)
and I have seen no problems on my development machine.
But on one machine (the first run on this machine)
A message 'cannot find component B1' was shown.
I am assuming for now, that it is something to do with this part of the dialog code which runs when the form activates.
AFAIK findcomponent should not generate an error if it fails (the 'B1' button might not exist)
The error was not fatal and the app ran normally afterwards and this happened only once, I haven't been able to duplicate it on the same machine. Does anyone know why this happened and is if so it possible to trap it.
Steve: Delphi a feersum engin indeed.
The application will show a dialog at start up (to do with demo mode)
and I have seen no problems on my development machine.
But on one machine (the first run on this machine)
A message 'cannot find component B1' was shown.
I am assuming for now, that it is something to do with this part of the dialog code which runs when the form activates.
Code:
Button := findcomponent('B1') as TButton;
AFAIK findcomponent should not generate an error if it fails (the 'B1' button might not exist)
The error was not fatal and the app ran normally afterwards and this happened only once, I haven't been able to duplicate it on the same machine. Does anyone know why this happened and is if so it possible to trap it.
Steve: Delphi a feersum engin indeed.