Access Violation Errors on Delphi startup
- From: "Paul E. Schoen" <pstech@xxxxxxxxx>
- Date: Tue, 13 Feb 2007 16:04:01 -0500
Sometimes I get an AVE when I start up the Delphi (D4) application. It
seems to occur mostly when the IDE has many forms and units to load into
the editor. Some of the forms have OnCreate (and even a Loaded) event
procedures, and they must be created in a specific order as they are in the
Project. Is it possible that the IDE is loading the forms in a different
order and trying to perform the OnCreate procedure?
When the AVE occurs, it often messes up the location of the Messages,
Object Inspector, etc. I cannot always reproduce the error. Usually I can
close the Delphi application and reopen it without problems. It seems more
likely to happen after I have done some debugging and running of my
application.
This has happened off and on since I first started to develop this fairly
complex "Ortmaster" application. I did a lot of things wrong as I was
learning Delphi and OOP, but I think I've cleaned up those errors. It does
not happen quite as often as it once did, and some problems I previously
experienced (particularly "phantom breakpoints"), have not been happening
now.
One other odd behavior I saw recently was an extreme sluggishness after my
program ran for 20+ hours. During that time it was reading and processing
data from a USB Serial port running at 57.6 kB with characters being
received at 4800 per second. The SerialNG component's Receive buffer had
not overflowed, and there were no other Comm errors indicated in my Comm
Status list. However, I was unable to access my dialup connection, and
other simple processes seemed to be bogged down, until I closed my
application (and maybe also Delphi). When bogged down, I noticed a lot of
HDD activity. My guess is that most of the system resources were being
used, and there was a lot of disk memory access. Any ideas on how to track
this down?
Thanks,
Paul
.
- Follow-Ups:
- Re: Access Violation Errors on Delphi startup
- From: Bjørge
- Re: Access Violation Errors on Delphi startup
- Prev by Date: Re: Initialization section
- Next by Date: Re: Access Violation Errors on Delphi startup
- Previous by thread: attn: kaycee - genuinely colorful news server - ug ehno - (1/1)
- Next by thread: Re: Access Violation Errors on Delphi startup
- Index(es):
Relevant Pages
|