<html 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" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[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
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Verdana;
        color:black;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=black face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:black'>I don’t think
so. For that process, Task Manager shows 38 Handles, 1 USER Object, and 5
GDI Objects on my XP machine, and 72 Handles, 1 USER Object, and 4 GDI Objects
on my <st1:place w:st="on">Vista</st1:place> machine. None of those
numbers seem to increase before it crashes.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:black'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:black'>Tim Smith<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:black'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
fxruby-users-bounces@rubyforge.org [mailto:fxruby-users-bounces@rubyforge.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Meinrad Recheis<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, September 19, 2008
5:29 PM<br>
<b><span style='font-weight:bold'>To:</span></b> fxruby-users@rubyforge.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [fxruby-users]
FXTableItem.new segmentation fault</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>are you running out of GDI handles?<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Fri, Sep 19, 2008 at 10:31 PM, Tim Smith <<a
href="mailto:tsmith@tektone.net">tsmith@tektone.net</a>> wrote:<o:p></o:p></span></font></p>
<div link=blue vlink=purple>
<div>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>Does
the following code crash for anyone else? My app is unpredictably
crashing with a segmentation fault, which I can sometimes reproduce with this
contrived test case.</span></font><o:p></o:p></p>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'> </span></font><o:p></o:p></p>
<pre><font size=2 face="Courier New"><span style='font-size:10.0pt'>require 'fox16'; include Fox<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> <o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>start = Time.now<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>count = 0<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>items = []<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>while true<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> 28125.times {|i|<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> items[i] = FXTableItem.new ''<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> }<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> count += 1<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'> puts "#{count}, after #{Time.now - start} seconds"<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>end<o:p></o:p></span></font></pre>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'> </span></font><o:p></o:p></p>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>The
eventual error:</span></font><o:p></o:p></p>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'> </span></font><o:p></o:p></p>
<pre><font size=2 face="Courier New"><span style='font-size:10.0pt'>c:/program files/ruby/lib/ruby/gems/1.8/gems/fxruby-1.6.16-x86-mswin32-60/lib/fox16/kwargs.rb:2367: [BUG] Segmentation fault<o:p></o:p></span></font></pre><pre><font
size=2 face="Courier New"><span style='font-size:10.0pt'>ruby 1.8.6 (2007-09-24) [i386-mswin32]<o:p></o:p></span></font></pre>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'> </span></font><o:p></o:p></p>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>I've
had this code crash on XP and <st1:place w:st="on">Vista</st1:place> (but not
Linux), often in under a minute, though not always. Does anyone know what
might be going on?</span></font><o:p></o:p></p>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'> </span></font><o:p></o:p></p>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>Thanks
for any help,</span></font><o:p></o:p></p>
<p><font size=2 face=Verdana><span style='font-size:10.0pt;font-family:Verdana'> </span></font><o:p></o:p></p>
<p><font size=2 color="#888888" face=Verdana><span style='font-size:10.0pt;
font-family:Verdana;color:#888888'>Tim Smith</span></font><font color="#888888"><span
style='color:#888888'><o:p></o:p></span></font></p>
</div>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
_______________________________________________<br>
fxruby-users mailing list<br>
<a href="mailto:fxruby-users@rubyforge.org">fxruby-users@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/fxruby-users" target="_blank">http://rubyforge.org/mailman/listinfo/fxruby-users</a><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</div>
</div>
</body>
</html>