"Jamie" <jamie_ka1lpa_not_v...@charter.net> ha scritto nel
messaggio news:Kihxk.58104$4s1....@newsfe06.iad...
The most common reason for Stack Overflow is unterminated recursion. In the
situation you describe it's most likely a case of indirect recursion. One
event does something that triggers another event that either does something
to trigger the first event or calls something that calls something else that
eventually ends up re-triggering an event and the cycle starts over.
If you can trap the overflow take a look at the call stack. It may take some
time but you will eventually figure out what is happening.
don't add any extra units.
Just start a new project and compile a blank form.
see if the error takes place. If so, you have some
corrupted lib files in your install of delphi which will
need a install of it and then any updates you may have had.
Also, try compiling a simply project not using run time
packages. If it then succeeds? You have a package file in the
system that is either corrupted or has been updated from some
other install of a program that was also written in D and is
not compatible.. But I would go with the corrupted file ..
It's very possible you in veritably altered one of the main
basic VCL files that gets used in all projects...
"Jamie" <jamie_ka1lpa_not_v...@charter.net> ha scritto nel
messaggio news:NdDxk.33$3_2...@newsfe02.iad...
"Jamie" <jamie_ka1lpa_not_v...@charter.net> ha scritto nel
messaggio news:NdDxk.33$3_2...@newsfe02.iad...
"BRoberts" <berdon...@caneris.ca> ha scritto nel messaggio
news:c3d3d$48c6fda3$45c49fa8$25...@TEKSAVVY.COM-Free...
You need to set a breakpoint or two. It's a little laborious because there
is a lot that generally goes on during creation. Eventually you will either
notice that the code is going somewhere unexpected or you will trip over a
breakpoint that you didn't expect. At that point you can look at the call
stack (debug windows) and see where the program has been.
"BRoberts" <berdon...@caneris.ca> ha scritto nel messaggio
news:87b65$48c9dfbb$45c49fa8$20...@TEKSAVVY.COM-Free...
Set a breakpoint in your form's OnClose event handler. Start stepping
from there. You might want to set more breakpoints as you make progress,
so in case you need to start over, you can let the program run longer
before you start stepping.
> And unfortunately I don't know how to get the call stack you metion.
> Perhaps, I just don't know enough and that's why I get the problem ...
View, Debug windows, Call stack.
--
Rob
When you close your application it's quite likely that a number of your
event handlers are firing. Do you have any onDestroy onClose or onCloseQuery
event code? If so, put a breakpoint at the top of these handlers. If you
don't, then start looking at onChange events.