John Pearson wrote:
On closing my prog I get an exception in a message box.
" is not a valid floating point value
Breaking on HandleException() in TWinControl.MainWndProc(..) and
stepping thru' the Vcl doesn't leave me any wiser. Typically
variables are optimised out (the Compiler optimisation option is
'disable all optimisation')
Without seeing a stack trace from the IDE debugger (you ARE running the
app inside the debugger, right?) leading up to the exception, there is
no way anyone here can diagnose this for you. You will have to track
it down yourself. When the debugger sees the exception, it should jump
right to the code that raised the exception, whether it is in the
RTL/VCL or your own code.
1. How do I trace this exception to my code
What makes you think it is in your code to begin with?
2. Why should I get such an exception on Application->Terminate() ;
Application->Terminate() itself doesn't raise ay exceptions. It simply
posts a WM_QUIT message to the main message queue. The app exits after
Application->Run() exits when it receives that message.
--
Remy Lebeau (TeamB)
Connect with Us