<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:st1 = 
"urn:schemas-microsoft-com:office:smarttags"><HEAD><TITLE>Signature</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16441" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><o:SmartTagType name="place" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="PersonName" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Tahoma;
}
@font-face {
        font-family: Verdana;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; COLOR: black; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; COLOR: black; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; COLOR: black; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: blue; TEXT-DECORATION: underline
}
PRE {
        FONT-SIZE: 10pt; MARGIN: 0cm 0cm 0pt; COLOR: black; FONT-FAMILY: "Courier New"
}
SPAN.EmailStyle19 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=blue link=blue bgColor=white>
<DIV dir=ltr align=left><SPAN class=442453322-13052007><FONT face=Arial 
color=#0000ff size=2>Paul mentioned madExcept.&nbsp; If you're not using this, 
you should really consider it.&nbsp; It's invaluable for tracking down 
in-the-field problems.&nbsp; Here's part of an exception report from one of our 
apps (names changed to protect the innocent!):</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=442453322-13052007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=442453322-13052007><FONT face=Arial 
color=#0000ff size=2>date/time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
2007-05-01, 15:12:32, 557ms<BR>computer name&nbsp;&nbsp;&nbsp;&nbsp; : 
APCSomewhere<BR>user name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
:&nbsp;Some User&nbsp;&lt;admin&gt;<BR>registered owner&nbsp; : 
some-user<BR>operating system&nbsp; : Windows XP Service Pack 2 build 
2600<BR>system language&nbsp;&nbsp; : English<BR>system up 
time&nbsp;&nbsp;&nbsp; : 42 minutes 10 seconds<BR>program up time&nbsp;&nbsp; : 
31 minutes 11 seconds<BR>processors&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
2x Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz<BR>physical memory&nbsp;&nbsp; : 
1301/2046 MB (free/total)<BR>free disk space&nbsp;&nbsp; : (C:) 23.36 
GB<BR>display mode&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 1280x800, 32 bit<BR>process 
id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : $c40<BR>allocated memory&nbsp; : 
48.41 MB<BR>command line&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : "SomeExe.exe" 
"SomeParam=SomeValue"</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=442453322-13052007><FONT face=Arial 
color=#0000ff size=2>executable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
SomeExe.exe<BR>exec. date/time&nbsp;&nbsp; : 2007-05-01 
09:37<BR>version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : 
7.0.0.132<BR>madExcept version : 3.0c<BR>callstack crc&nbsp;&nbsp;&nbsp;&nbsp; : 
$26cb1e41, $e28343ad, $925632c2<BR>exception number&nbsp; : 1<BR>exception 
class&nbsp;&nbsp; : EInvalidOp<BR>exception message : Invalid floating point 
operation.</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=442453322-13052007><FONT face=Arial 
color=#0000ff size=2>main thread ($ad8):<BR>00412e84 
SomeExe.exe&nbsp;&nbsp;&nbsp; 
SysUtils&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
11505 DateTimeToTimeStamp<BR>00413115 SomeExe.exe&nbsp;&nbsp;&nbsp; 
SysUtils&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
11674 DecodeDateFully<BR>00413257 SomeExe.exe&nbsp;&nbsp;&nbsp; 
SysUtils&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
11734 DecodeDate<BR>00413404 SomeExe.exe&nbsp;&nbsp;&nbsp; 
SysUtils&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
11843&nbsp;IncMonth<BR>007f8f10&nbsp;&nbsp;&nbsp;SomeExe.exe&nbsp;&nbsp;&nbsp; 
SomeForm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
963&nbsp;&nbsp;&nbsp;&nbsp;GetNextDateTime</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=442453322-13052007><FONT face=Arial 
color=#0000ff size=2>...<BR></DIV></FONT></SPAN>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=442453322-13052007>Y</SPAN>ou&nbsp;can&nbsp;build&nbsp;<SPAN 
class=442453322-13052007>in 
</SPAN>your&nbsp;own&nbsp;little&nbsp;bits&nbsp;of&nbsp;code&nbsp;to&nbsp;add&nbsp;extra&nbsp;pertinent&nbsp;information&nbsp;to&nbsp;the&nbsp;collection&nbsp;of&nbsp;information&nbsp;above<SPAN 
class=442453322-13052007> (so I presume you could add some code to check for 
your potential GDI/resource leaks)</SPAN>,<SPAN class=442453322-13052007> 
</SPAN>plus&nbsp;you&nbsp;get&nbsp;stack&nbsp;traces&nbsp;for&nbsp;all&nbsp;your&nbsp;threads&nbsp;at&nbsp;the&nbsp;moment&nbsp;of&nbsp;the&nbsp;crash.</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT 
size=2></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT><FONT><FONT face=Arial><FONT color=#0000ff><FONT size=2>H<SPAN 
class=442453322-13052007>TH,</SPAN></FONT></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=442453322-13052007></SPAN></FONT></FONT></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT><FONT><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=442453322-13052007>Conor</SPAN></FONT></FONT></FONT></FONT></FONT></DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT size=2><FONT 
face=Tahoma><B>From:</B> delphi-bounces@delphi.org.nz 
[mailto:delphi-bounces@delphi.org.nz] <B>On Behalf Of </B>Trevor Jones<BR><SPAN 
class=442453322-13052007><FONT face=Arial 
color=#0000ff>&nbsp;</FONT></SPAN></FONT></FONT></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT size=2><FONT 
face=Tahoma><SPAN class=442453322-13052007>&nbsp;</SPAN></FONT><FONT 
color=navy><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Good 
point Rohit,<o:p></o:p></SPAN></FONT></FONT></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp; I hadn&#8217;t even 
thought of resource leaks.&nbsp; That might explain a 
lot.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp; Trouble is, the 
OS is so locked down that Task manager is not 
available.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt; COLOR: windowtext">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma color=black><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
face=Tahoma color=black><SPAN 
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Tahoma"> 
delphi-bounces@delphi.org.nz [mailto:delphi-bounces@delphi.org.nz] <B><SPAN 
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Rohit Gupta<BR><SPAN 
style="FONT-WEIGHT: bold"><SPAN class=442453322-13052007><FONT face=Arial 
color=#0000ff>&nbsp;</FONT></SPAN></SPAN></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN 
style="FONT-SIZE: 12pt">1.&nbsp; We have something similar right now to do with 
Crystal Reports.&nbsp; I fairly sure that I have found the two problems in 
it.&nbsp; One is that callback from a dll is into a nested procedure with local 
variables and could be called after the object has been destroyed.&nbsp; The 
other is to do with strings.&nbsp; The more strings we pass to the dll the 
faster the crash.&nbsp; Basically memory/stack/registers are getting trashed 
leading to nonsense errors and even the app just disappearing.&nbsp; 
<BR><BR>2.&nbsp; Running out of resources.&nbsp; Open the task manager and keep 
an eye on GDI objects (the worst), User Obects, Handles etc&nbsp; GDI is the 
worst.&nbsp; Windows goes crazy, you cant even shut down.&nbsp; Old version of 
Nero used to do this.&nbsp; And ODBC driver for MSSQL did/does it 
too.<BR><BR><BR>Trevor Jones wrote: <o:p></o:p></SPAN></FONT></P></DIV><PRE wrap=""><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">Hello,<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">&nbsp; Just wondering if any of you have encountered really weird bugs and<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">support issues on machines that have been running for a long time (without a<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">reboot).<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><U1:P></U1:P></FONT><o:p></o:p></PRE></DIV></BODY></HTML>