<!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. If you're not using this,
you should really consider it. It's invaluable for tracking down
in-the-field problems. 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> </DIV>
<DIV dir=ltr align=left><SPAN class=442453322-13052007><FONT face=Arial
color=#0000ff size=2>date/time :
2007-05-01, 15:12:32, 557ms<BR>computer name :
APCSomewhere<BR>user name
: Some User <admin><BR>registered owner :
some-user<BR>operating system : Windows XP Service Pack 2 build
2600<BR>system language : English<BR>system up
time : 42 minutes 10 seconds<BR>program up time :
31 minutes 11 seconds<BR>processors :
2x Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz<BR>physical memory :
1301/2046 MB (free/total)<BR>free disk space : (C:) 23.36
GB<BR>display mode : 1280x800, 32 bit<BR>process
id : $c40<BR>allocated memory :
48.41 MB<BR>command line : "SomeExe.exe"
"SomeParam=SomeValue"</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=442453322-13052007><FONT face=Arial
color=#0000ff size=2>executable :
SomeExe.exe<BR>exec. date/time : 2007-05-01
09:37<BR>version :
7.0.0.132<BR>madExcept version : 3.0c<BR>callstack crc :
$26cb1e41, $e28343ad, $925632c2<BR>exception number : 1<BR>exception
class : EInvalidOp<BR>exception message : Invalid floating point
operation.</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=442453322-13052007><FONT face=Arial
color=#0000ff size=2>main thread ($ad8):<BR>00412e84
SomeExe.exe
SysUtils
11505 DateTimeToTimeStamp<BR>00413115 SomeExe.exe
SysUtils
11674 DecodeDateFully<BR>00413257 SomeExe.exe
SysUtils
11734 DecodeDate<BR>00413404 SomeExe.exe
SysUtils
11843 IncMonth<BR>007f8f10 SomeExe.exe
SomeForm
963 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 can build <SPAN
class=442453322-13052007>in
</SPAN>your own little bits of code to add extra pertinent information to the collection of information 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 you get stack traces for all your threads at the moment of the crash.</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT
size=2></FONT></FONT></FONT> </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> </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> </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> </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"> I hadn’t even
thought of resource leaks. 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> </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"> 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> </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> </FONT></SPAN></SPAN></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN
style="FONT-SIZE: 12pt">1. We have something similar right now to do with
Crystal Reports. I fairly sure that I have found the two problems in
it. 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. The
other is to do with strings. The more strings we pass to the dll the
faster the crash. Basically memory/stack/registers are getting trashed
leading to nonsense errors and even the app just disappearing.
<BR><BR>2. Running out of resources. Open the task manager and keep
an eye on GDI objects (the worst), User Obects, Handles etc GDI is the
worst. Windows goes crazy, you cant even shut down. Old version of
Nero used to do this. 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"> 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>