[DUG] app terminating abruptly
Ross Levis
ross at stationplaylist.com
Fri Nov 25 16:56:39 NZDT 2005
The file handles for my app is sitting at 175, with threads at 3. This changes to 186 and 6 during a change of track but goes back down again afterwards. It hasn't changed at all from this for several hours. Resources doesn't seem to be the problem, at least with this app.
One of the cvshost processes is using by far the most resources. It has 2301 handles and 90 threads, and has used peak memory of 30MB. God knows what that one is doing.
The PC is using 174MB RAM with 47MB physical RAM free. A total of 9200 handles and 455 threads. Do any of these figures sound close to any limits?
Regards,
Ross.
----- Original Message -----
From: "Rohit Gupta" <rohit at cfl.co.nz>
To: "NZ Borland Developers Group - Delphi List" <delphi at ns3.123.co.nz>
Sent: Friday, November 25, 2005 11:44 AM
Subject: Re: [DUG] app terminating abruptly
Its more probably running out of resources... window handles, file
handles.. things like that. I get this constantly with GetRight, Opera
and Nero - they are far too hungry, especially Nero. Have a look in
the Task Manager. Add Handles and Threads columns to Process
tab and sort by them
From: "Ross Levis" <ross at stationplaylist.com>
To: "NZ Borland Developers Group - Delphi List" <delphi at ns3.123.co.nz>
Date sent: Fri, 25 Nov 2005 09:53:22 +1300
Organization: http://www.StationPlaylist.com
Subject: [DUG] app terminating abruptly
Send reply to: NZ Borland Developers Group - Delphi List <delphi at ns3.123.co.nz>
<mailto:delphi-request at ns3.123.co.nz?subject=unsubscribe>
<mailto:delphi-request at ns3.123.co.nz?subject=subscribe>
[ Double-click this line for list subscription options ]
I have developed an audio player which works fine for several hours and
then will permaturely terminate. It is terminating instantly without
shutting down correctly, leaving a system tray icon visible.
It appears to happen when the CPU goes to 100% for a few seconds at each
change of track, This is due to the fact that it's only a 950Mhz AMD
Duron and it's encoding an internet radio stream and running a
compressor/limiter at the same time. It usually sits at 50 to 60% most
of the time but there are 2 or 3 threads executed with tplower
priorities at a change of track to update various things. The CPU goes
to 100% for a few seconds but this works fine most of the time.
Suddenly after several hours it will terminate without any exceptions or
anything. I have MadExcept installed and it doesn't popup at all.
The PC has been working fine under load for a couple of years with a
previous version of my player which did not execute quite as many
threads at a change of track as it does now, but it's similar in other
aspects.
I ran a CPU torture test and a memory test on the PC some time ago for
several hours and it passed. I'm worried that I may be doing something
wrong in the software. It is moving audio around in several places in
memory blocks using pointers, etc, so there is the slim possibility that
a buffer is over running, but unlikely.
Is it possible that Windows XP would terminate an app without notice if
unallocated memory was written to? I would expect an AV error.
As a side note, I did once get an error box appear saying something like
"too many consecutive exceptions". This didn't make any sense since I
have MadExcept installed which should trap any exceptions but it didn't.
Anyone have any ideas?
Ross.
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi
Regards
Rohit
======================================================================
CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand
PH (649) 489-2280
FX (649) 489-2290
email rohit at cfl.co.nz or r.gupta at xtra.co.nz
======================================================================
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20051125/72fe9513/attachment.html
More information about the Delphi
mailing list