<!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>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16705" 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><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Tahoma;
}
@font-face {
        font-family: Verdana;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
PRE {
        FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"
}
SPAN.EmailStyle18 {
        FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal
}
SPAN.EmailStyle19 {
        FONT-WEIGHT: normal; COLOR: black; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=359560306-25092008><FONT face=Arial 
color=#0000ff size=2>Maybe you should try with FXRuby 
1.6.14?</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=fr dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De&nbsp;:</B> fxruby-users-bounces@rubyforge.org 
[mailto:fxruby-users-bounces@rubyforge.org] <B>De la part de</B> Tim 
Smith<BR><B>Envoyé&nbsp;:</B> jeudi, 25. septembre 2008 02:20<BR><B>À&nbsp;:</B> 
fxruby-users@rubyforge.org<BR><B>Objet&nbsp;:</B> Re: [fxruby-users] 
FXTableItem.new segmentation fault<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">It can be 
unpredictable.&nbsp; Sometimes it crashes if you just tweak it a bit, say by 
increasing the array size from 28125 to 281250, or creating multiple 
arrays.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">I’ve now had it 
crash on Linux, with ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-linux], and 
FXRuby 1.6.16.&nbsp; That error message is more 
detailed:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">FXRuby.cpp:1472: 
FXASSERT(!NIL_P(obj)) failed.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">/usr/local/lib/ruby/gems/1.8/gems/fxruby-1.6.16/lib/fox16/kwargs.rb:2367:in 
`old_initialize': undefined method `getIcon' for nil:NilClass 
(NoMethodError)<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
from /usr/local/lib/ruby/gems/1.8/gems/fxruby-1.6.16/lib/fox16/kwargs.rb:2367:in 
`initialize'<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">So it looks like in 
FXRuby.cpp, FXRbCallIconMethod() is calling FXRbGetRubyObj() and getting back 
nil?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">Tim 
Smith<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; 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>Philippe 
Lang<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Monday, September 
22, 2008 3:10 AM<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 face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Hi,</SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Your program is running 
just fine on my computer, for over&nbsp;220 seconds 
now.</SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">I'm 
using:</SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">- Windows XP 
SP2</SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">- ruby 1.8.6 
(2007-09-24 patchlevel 111) [i386-mswin32]</SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">- fxruby 
(1.6.14)</SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Philippe</SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
face="Times New Roman" size=3><SPAN lang=FR style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><FONT face=Tahoma size=2><SPAN 
lang=FR 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">De&nbsp;:</SPAN></FONT></B><FONT 
face=Tahoma size=2><SPAN lang=FR style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> 
fxruby-users-bounces@rubyforge.org [mailto:fxruby-users-bounces@rubyforge.org] 
<B><SPAN style="FONT-WEIGHT: bold">De la part de</SPAN></B> Tim 
Smith<BR><B><SPAN style="FONT-WEIGHT: bold">Envoyé&nbsp;:</SPAN></B> vendredi, 
19. septembre 2008 22:32<BR><B><SPAN 
style="FONT-WEIGHT: bold">À&nbsp;:</SPAN></B> 
fxruby-users@rubyforge.org<BR><B><SPAN 
style="FONT-WEIGHT: bold">Objet&nbsp;:</SPAN></B> [fxruby-users] FXTableItem.new 
segmentation fault</SPAN></FONT><SPAN lang=FR><o:p></o:p></SPAN></P>
<P class=MsoNormal><FONT face=Verdana size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Does the following code crash for 
anyone else?&nbsp; My app is unpredictably crashing with a segmentation fault, 
which I can sometimes reproduce with this contrived test 
case.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">&nbsp;<o:p></o:p></SPAN></FONT></P><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">require 'fox16'; include Fox<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt"><o:p>&nbsp;</o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">start = Time.now<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">count = 0<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">items = []<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">while true<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">&nbsp; 28125.times {|i|<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp; items[i] = FXTableItem.new ''<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">&nbsp; }<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">&nbsp; count += 1<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">&nbsp; puts "#{count}, after #{Time.now - start} seconds"<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">end<o:p></o:p></SPAN></FONT></PRE>
<P class=MsoNormal><FONT face=Verdana size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">The eventual 
error:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">&nbsp;<o:p></o:p></SPAN></FONT></P><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">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 face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">ruby 1.8.6 (2007-09-24) [i386-mswin32]<o:p></o:p></SPAN></FONT></PRE>
<P class=MsoNormal><FONT face=Verdana size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana size=2><SPAN 
style="FONT-SIZE: 10pt; 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.&nbsp; Does anyone know what might be going 
on?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Thanks for any 
help,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana">Tim 
Smith<o:p></o:p></SPAN></FONT></P></DIV></BODY></HTML>