[DUG] app terminating abruptly
Wayne Roser
rr at kristin.school.nz
Thu Dec 1 07:13:13 NZDT 2005
PLUG FOR MEMCHECK
MemCheck is wonderful. As soon as I start every new app, I make the bottom of the main unit look
like:
initialization
memchk;
end.
As Kyley says, put
uses
Memcheck,
and the path to the folder containing memcheck source in your default project search path.
Mine looks like: C:\Program Files\Borland\Delphi6\Imports\Memcheck
Don't (like me) forget Kyley's note:
Make sure Stack is turned on in compiler options etc, and td32 debug info to get relevant
information.
REASON FOR DETAIL
I put these little details in because I remember being a newer newbie than I am right now and, you
know, there might be a newer newbie who, like me, watches this list and wonders if there'll be
anything really simple popping up. If you have an embarassingly simple question out there, email
the list so that I can learn from the answers too. Ooo, I feel so self-conscious baring my soul to
an email list. Betcha I'm gonna regret this. Note to self: pull head back in.
MAIN THING ABOUT MEMCHECK
But the main thing is to get memcheck in early. Anyone else felt the pain? Chuck it into some app
that you've been developing for years, the prototype that you've never quite got around to
rewriting, <insert own example here>, and it'll probably bring tears to your eyes. Quite a good way
to get you to start on a rewrite from my (meagre) experience.
Wayne Roser (not real name, really Dusan Slopovic, because pen name make more anonymous)
NZ Borland Developers Group - Delphi List <delphi at ns3.123.co.nz> on Wednesday, 30 November 2005 at
5:55 p.m. +0000 wrote:
>Not yet. I haven't had time to work out how to use it yet. So far the
>HandleMessage in the DLL routine seems to have resolved it, but if not
>then I'll try memcheck.
>
>----- Original Message -----
>From: "Kyley Harris" <kyleyharris at gmail.com>
>To: "NZ Borland Developers Group - Delphi List" <delphi at ns3.123.co.nz>
>Sent: Wednesday, November 30, 2005 3:36 PM
>Subject: Re: [DUG] app terminating abruptly
>
>
>Have you run memcheck yet?
More information about the Delphi
mailing list