FXTreeList-App crashes

  • Thread starter Jörg Abelshauser
  • Start date
J

Jörg Abelshauser

My FX-Application crashes, when I update an FXTreeItem-Icon in an
FXTreeList (setopenIcon / setClosedIcon) with an event-method
(right-mouse-click).
Does anybody have an idea ?
 
D

David Vallner

My FX-Application crashes, when I update an FXTreeItem-Icon in an
FXTreeList (setopenIcon / setClosedIcon) with an event-method
(right-mouse-click).
Does anybody have an idea ?

Run it with regular ruby.exe instead of rubyw.exe (if on Windows) to get
some details about the crash?

David Vallner
 
J

Jörg Abelshauser

David said:
Run it with regular ruby.exe instead of rubyw.exe (if on Windows) to get
some details about the crash?

David Vallner

not really helpful:
FxGui.rb:547: [BUG] Segmentation fault
ruby 1.8.2 (2004-12-25) [i386-mswin32]

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.

Further, here is the code-snippet, which is called when
right-mouse-click at an tree-item:

item = @tree.getFirstItem

if @toggle != 8
@tree.setItemText(item, "Bla")
icon = makeIcon("testnode.ico")
@tree.setItemClosedIcon(item, icon)
@toggle = 8
else
@tree.setItemText(item, "Boing")
icon = makeIcon("testnode.ico")
@tree.setItemClosedIcon(item, icon)
@toggle = 7
end

regards Jörg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top