I made a little progress on this. The following change stopped the crash. - flow :height => 50, :margin_top => 8 do + flow :margin_top => 8, :magrin_bottom => 8 do
Maybe the layout code using the lower level Windows API is causing some problem. Does anybody have any other ideas? I would really like share this with friends at work who are all running Windows. FYI I cleaned up some of the unnecessary slots in my actual application (not the sample above) which made the code look simpler, but had no effect. The above change stopped the crash but now the button does nothing when it is clicked. This all happens when running an EXE created under linux. If I run my windows version of shoes2.exe, and use "Open an App" with the source files it works perfectly. Lastly I cannot package the app under Windows because the process hangs forever. Thanks, Mathew Cucuzella On Tue, Jul 14, 2009 at 7:24 PM, Mathew Cucuzella <[email protected]> wrote: > Hi all, > > I have an application working on Linux but it gets an illegal memory > access when I run it on Windows XP. I've boiled the code down to this > small application. Does anything look wrong? I know all these slots > seem to be a bit much, but the real application is a little bigger > (see links at bottom). Any help would be greatly appreciated. > > Shoes.app :title => "Lat/Lon Converter", :width => 370, :height => 160 do > stack do > flow :height => 50, :margin_top => 8 do > flow do > stack :width => 157, :margin => 3 do > button "convert" do > debug "Input: [" + @input_area.text + "]" > end > end > @input_area = edit_line :margin_top => 3 > end > end > end > end > > Screenshot of error dialog: > http://members.cox.net/matc14/images/PosUnits_error.png > > Recreate crash by: > The app comes up with a button and an input text box. If the console > is open (ALT /) you should see a debug print of the input data each > time the button is clicked. I usually have to input some text, > cut/paste some text a few times and click the button a few times > before it crashes. Unfortunately it doesn't always happen at the same > time. The crash usually happens while typing in the input box, but > sometimes after hitting the button also. > > Config: > Shoes Raisins, no-video version > Win XP, SP2 (behind corporate firewall) > Run shoes2.exe, then open application source > (same behavior if I make an EXE and run standalone) > > Full source code: > http://github.com/kookjr/PositionUnits/tree/master > > Screenshot of full application (not sample): > http://members.cox.net/matc14/images/mainscreen.png > > Thanks, > Mathew Cucuzella > > >
