Re: Access Violation Errors on Delphi startup



Paul E. Schoen wrote:
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.

Delphi 4 was horrible in terms of IDE errors.

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?

Check your memory handling by some kind of memory checker (can't remember
any name except MemProof right now, as I have of course never needed
anything like this. Other programmers in this group may give other names, or
a simple google search for "delphi" and "memory checker" or similar).

--
Bjørge
bjorge@xxxxxxxxxxxx


.



Relevant Pages

  • Re: It can take a few years for a neglected tech product to die
    ... Delphi comes with the excellent Fastmm memory manager; ... I've finally gotten used to the tabbed IDE and now ...
    (borland.public.delphi.non-technical)
  • Re: Access Violation Errors on Delphi startup
    ... Some of the forms have OnCreate ... Is it possible that the IDE is loading the ... can close the Delphi application and reopen it without problems. ... Check your memory handling by some kind of memory checker (can't remember ...
    (comp.lang.pascal.delphi.misc)
  • Re: D2005 Memory leak - yet again?
    ... >from XanaNews to D2005 IDE and clicking on file menu increased the ... I've seen similar behaviour in Delphi 5 - memory consumption continously ... I *think* the culprit that time was a non-existing folder in the Delphi ...
    (borland.public.delphi.non-technical)
  • Delphi 2006 first impressions and the memory leak
    ... Up to now we were using Delphi 6. ... installing the updates I experience significant problems. ... There are IDE ... memory usage. ...
    (borland.public.delphi.non-technical)
  • 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)