<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Ross.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT>
<DIV><FONT face=Arial size=2>From: "Rohit Gupta" <</FONT><A
href="mailto:rohit@cfl.co.nz"><FONT face=Arial
size=2>rohit@cfl.co.nz</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>To: "NZ Borland Developers Group - Delphi List"
<</FONT><A href="mailto:delphi@ns3.123.co.nz"><FONT face=Arial
size=2>delphi@ns3.123.co.nz</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>Sent: Friday, November 25, 2005 11:44
AM</FONT></DIV>
<DIV><FONT face=Arial size=2>Subject: Re: [DUG] app terminating
abruptly</FONT></DIV></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV><FONT face=Arial
size=2>Its more probably running out of resources... window handles, file
<BR>handles.. things like that. I get this constantly with GetRight, Opera
<BR>and Nero - they are far too hungry, especially Nero. Have a look in
<BR>the Task Manager. Add Handles and Threads columns to Process <BR>tab
and sort by
them<BR><BR>From:
"Ross Levis" <</FONT><A href="mailto:ross@stationplaylist.com"><FONT
face=Arial size=2>ross@stationplaylist.com</FONT></A><FONT face=Arial
size=2>><BR>To:
"NZ Borland Developers Group - Delphi List" <</FONT><A
href="mailto:delphi@ns3.123.co.nz"><FONT face=Arial
size=2>delphi@ns3.123.co.nz</FONT></A><FONT face=Arial size=2>><BR>Date
sent: Fri, 25 Nov 2005 09:53:22
+1300<BR>Organization: </FONT><A
href="http://www.StationPlaylist.com"><FONT face=Arial
size=2>http://www.StationPlaylist.com</FONT></A><BR><FONT face=Arial
size=2>Subject: [DUG] app terminating
abruptly<BR>Send reply to: NZ Borland Developers Group - Delphi List
<</FONT><A href="mailto:delphi@ns3.123.co.nz"><FONT face=Arial
size=2>delphi@ns3.123.co.nz</FONT></A><FONT face=Arial
size=2>><BR><</FONT><A
href="mailto:delphi-request@ns3.123.co.nz?subject=unsubscribe"><FONT face=Arial
size=2>mailto:delphi-request@ns3.123.co.nz?subject=unsubscribe</FONT></A><FONT
face=Arial size=2>><BR><</FONT><A
href="mailto:delphi-request@ns3.123.co.nz?subject=subscribe"><FONT face=Arial
size=2>mailto:delphi-request@ns3.123.co.nz?subject=subscribe</FONT></A><FONT
face=Arial size=2>><BR><BR>[ Double-click this line for list subscription
options ] <BR><BR>I have developed an audio player which works fine for several
hours and <BR>then will permaturely terminate. It is terminating instantly
without <BR>shutting down correctly, leaving a system tray icon
visible.<BR><BR>It appears to happen when the CPU goes to 100% for a few seconds
at each <BR>change of track, This is due to the fact that it's only a 950Mhz AMD
<BR>Duron and it's encoding an internet radio stream and running a
<BR>compressor/limiter at the same time. It usually sits at 50 to 60% most
<BR>of the time but there are 2 or 3 threads executed with tplower
<BR>priorities at a change of track to update various things. The CPU goes
<BR>to 100% for a few seconds but this works fine most of the time. <BR>Suddenly
after several hours it will terminate without any exceptions or
<BR>anything. I have MadExcept installed and it doesn't popup at
all.<BR><BR>The PC has been working fine under load for a couple of years with a
<BR>previous version of my player which did not execute quite as many
<BR>threads at a change of track as it does now, but it's similar in other
<BR>aspects.<BR><BR>I ran a CPU torture test and a memory test on the PC some
time ago for <BR>several hours and it passed. I'm worried that I may be
doing something <BR>wrong in the software. It is moving audio around in
several places in <BR>memory blocks using pointers, etc, so there is the slim
possibility that <BR>a buffer is over running, but unlikely.<BR><BR>Is it
possible that Windows XP would terminate an app without notice if
<BR>unallocated memory was written to? I would expect an AV
error.<BR><BR>As a side note, I did once get an error box appear saying
something like <BR>"too many consecutive exceptions". This didn't make any
sense since I <BR>have MadExcept installed which should trap any exceptions but
it didn't.<BR><BR>Anyone have any ideas?<BR><BR>Ross.
<BR><BR>_______________________________________________<BR>Delphi mailing
list<BR></FONT><A href="mailto:Delphi@ns3.123.co.nz"><FONT face=Arial
size=2>Delphi@ns3.123.co.nz</FONT></A><BR><A
href="http://ns3.123.co.nz/mailman/listinfo/delphi"><FONT face=Arial
size=2>http://ns3.123.co.nz/mailman/listinfo/delphi</FONT></A><BR><FONT
face=Arial
size=2>Regards<BR><BR>Rohit<BR><BR>======================================================================<BR>CFL
- Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New
Zealand<BR>PH (649) 489-2280 <BR>FX (649)
489-2290<BR>email </FONT><A href="mailto:rohit@cfl.co.nz"><FONT face=Arial
size=2>rohit@cfl.co.nz</FONT></A><FONT face=Arial size=2> or
</FONT><A href="mailto:r.gupta@xtra.co.nz"><FONT face=Arial
size=2>r.gupta@xtra.co.nz</FONT></A><BR><FONT face=Arial
size=2>======================================================================<BR><BR><BR>_______________________________________________<BR>Delphi
mailing list<BR></FONT><A href="mailto:Delphi@ns3.123.co.nz"><FONT face=Arial
size=2>Delphi@ns3.123.co.nz</FONT></A><BR><A
href="http://ns3.123.co.nz/mailman/listinfo/delphi"><FONT face=Arial
size=2>http://ns3.123.co.nz/mailman/listinfo/delphi</FONT></A><BR></BODY></HTML>