Access Violation Errors on Delphi startup



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


.



Relevant Pages

  • Re: Delphi 2005 update 1 is out!
    ... Delphi 2005 Update 1 Fixes ... When importing an assembly if the types Pointer or Exception are used ... bdpDataAdapter can cause the IDE to lose all key stroke events until ... Using a remote data module may cause an Access Violation. ...
    (borland.public.delphi.non-technical)
  • Re: Delphi Update one... are you serious?
    ... Delphi 2005 Update 1 Fixes ... When importing an assembly if the types Pointer or Exception are used ... bdpDataAdapter can cause the IDE to lose all key stroke events until ... Using a remote data module may cause an Access Violation. ...
    (borland.public.delphi.non-technical)
  • Re: Why arent you upgrading?
    ... Stable IDE - this is first and foremost before anything else. ... MS alternate choice - As I see it the reason Delphi became so ... better database support ... Then announce that 64-bit native compiler is in progress and started. ...
    (borland.public.delphi.non-technical)
  • Re: So Long and Thanks for all the Fish!
    ... I think Borland and Delphi needs a .NET story of some kind, ... I'm not so sure the market is engrossed with .NET any more than it was ... The IDE is already very much a .NET IDE ... Refactoring and Together are easy enough to replace if CodeGear is ...
    (borland.public.delphi.non-technical)
  • Re: Coming from delphi - looking for an IDE - willing to spend money
    ... money on a python IDE. ... As a beginner I reckon integrated debugging would be helpful. ... I sympathize entirely (I've been a Delphi user since v2 and have yet to ... Stani's Python Editor (SPE) ...
    (comp.lang.python)