<!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&nbsp;sitting at 175, 
with threads at 3.&nbsp; This changes to 186 and 6 during a change of track but 
goes back down again&nbsp;afterwards.&nbsp; It hasn't changed at all from this 
for several hours.&nbsp; Resources doesn't seem to be the problem, at least with 
this app.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>One of the cvshost processes is using by far the 
most resources.&nbsp; It has 2301 handles and 90 threads, and has used peak 
memory of 30MB.&nbsp; God knows what that one is doing.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The PC is using 174MB RAM with 47MB physical RAM 
free.&nbsp; A total of 9200 handles and 455 threads.&nbsp; Do any of these 
figures sound close to any limits?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT>
<DIV><FONT face=Arial size=2>From: "Rohit Gupta" &lt;</FONT><A 
href="mailto:rohit@cfl.co.nz"><FONT face=Arial 
size=2>rohit@cfl.co.nz</FONT></A><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>To: "NZ Borland Developers Group - Delphi List" 
&lt;</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>&gt;</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,&nbsp; file 
<BR>handles.. things like that.&nbsp; I get this constantly with GetRight, Opera 
<BR>and Nero - they are far too hungry, especially Nero.&nbsp; Have a look in 
<BR>the Task Manager.&nbsp; Add Handles and Threads columns to Process <BR>tab 
and sort by 
them<BR><BR>From:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"Ross Levis" &lt;</FONT><A href="mailto:ross@stationplaylist.com"><FONT 
face=Arial size=2>ross@stationplaylist.com</FONT></A><FONT face=Arial 
size=2>&gt;<BR>To:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"NZ Borland Developers Group - Delphi List" &lt;</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>&gt;<BR>Date 
sent:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fri, 25 Nov 2005 09:53:22 
+1300<BR>Organization:&nbsp;&nbsp; </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:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [DUG] app terminating 
abruptly<BR>Send reply to:&nbsp; NZ Borland Developers Group - Delphi List 
&lt;</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>&gt;<BR>&lt;</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>&gt;<BR>&lt;</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>&gt;<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.&nbsp; 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.&nbsp; 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.&nbsp; 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.&nbsp; 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.&nbsp; I'm worried that I may be 
doing something <BR>wrong in the software.&nbsp; 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?&nbsp; 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".&nbsp; 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.&nbsp; 21 Barry's Point Road, AKL, New 
Zealand<BR>PH&nbsp;&nbsp;&nbsp; (649) 489-2280 <BR>FX&nbsp;&nbsp;&nbsp; (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>&nbsp; or&nbsp; 
</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>