Board index » delphi » How to find which component causes system crash?

How to find which component causes system crash?

Hi all,

I have an application designed on Win98, now I need to put it on NT
machine. But when I launch it there, it just crashes, saying nothing,
just Dr Watson appears...
There's pretty little info what caused the crash, I could just insert
some messages in my program and track it down a little way. I figured
that main form's OnCreate handler doesn't take control, so I thought
that there's something wrong with the form itself. Deleting components
in several steps, I cleaned the form altogether, now I can run it... How
can I figure exactly what component caused the crash? Repeat the
procedure deleting components one by one? Or maybe there is something
better?

TIA

Alex.

 

Re:How to find which component causes system crash?


Alexander

The most sensible root is to load DELPHI on the OS in question and debug
from there.

A bit long winded but must be quicker than removing stuff and recompiling
etc.

Regards
Andrew Wood

Quote
"Alexander Kornacki" <ac...@pronet.kiev.ua> wrote in message

news:3BBC1BFB.481D5092@pronet.kiev.ua...
Quote
> Hi all,

> I have an application designed on Win98, now I need to put it on NT
> machine. But when I launch it there, it just crashes, saying nothing,
> just Dr Watson appears...
> There's pretty little info what caused the crash, I could just insert
> some messages in my program and track it down a little way. I figured
> that main form's OnCreate handler doesn't take control, so I thought
> that there's something wrong with the form itself. Deleting components
> in several steps, I cleaned the form altogether, now I can run it... How
> can I figure exactly what component caused the crash? Repeat the
> procedure deleting components one by one? Or maybe there is something
> better?

> TIA

> Alex.

Re:How to find which component causes system crash?


Alexander

I dont know if you've tried this but... Have a look at your project options
and on the compiler page check the 'Use Debug DCUs' box. Put a breakpoint on
the first line of your project source and step into the application ..
tracing down until you reach the line that cause the crash--sometimes a
painful and slow procedure - but you'll probably find what you're looking
for.

- Si

Quote
"Alexander Kornacki" <ac...@pronet.kiev.ua> wrote in message

news:3BBC1BFB.481D5092@pronet.kiev.ua...
Quote
> Hi all,

> I have an application designed on Win98, now I need to put it on NT
> machine. But when I launch it there, it just crashes, saying nothing,
> just Dr Watson appears...
> There's pretty little info what caused the crash, I could just insert
> some messages in my program and track it down a little way. I figured
> that main form's OnCreate handler doesn't take control, so I thought
> that there's something wrong with the form itself. Deleting components
> in several steps, I cleaned the form altogether, now I can run it... How
> can I figure exactly what component caused the crash? Repeat the
> procedure deleting components one by one? Or maybe there is something
> better?

> TIA

> Alex.

Other Threads