#25 new
lyle (at lylejohnson)

Bug for setting application's default cursor

Reported by lyle (at lylejohnson) | November 11th, 2009 @ 10:23 PM

A user was attempting to change the DEF_MOVE_CURSOR. This code worked:

FXApp.new do |app|
  app.setDefaultCursor(DEF_MOVE_CURSOR, FXCursor.new(app))
  ...
end

but this code did not:

FXApp.new() do |app|
  app.setDefaultCursor(DEF_MOVE_CURSOR,app.getDefaultCursor(DEF_ARROW_CURSOR))
  ...
end

The latter example crashed with the following message:

abnormal program termination
Kory.rb:1320: [BUG] Segmentation fault
ruby 1.8.4 (2005-12-24) [i386-mswin32]

Comments and changes to this ticket

  • lyle (at lylejohnson)

    lyle (at lylejohnson) November 11th, 2009 @ 10:24 PM

    A workaround would be to set the DEF_MOVE_CURSOR back to nil in your program's exit handler. The problem is that FOX is trying to double-delete the same cursor object (the one that both DEF_ARROW_CURSOR and DEF_MOVE_CURSOR refer to).

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

FXRuby is a library for developing powerful and sophisticated cross-platform graphical user interfaces (GUIs) for your Ruby applications. It’s based on the FOX Toolkit, a popular open source C++ library developed by Jeroen van der Zijp. What that means for you as an application developer is that you’re able to write code in the Ruby programming language that you already know and love, while at the same time taking advantage of the performance and functionality of a featureful, highly optimized C++ toolkit.

Shared Ticket Bins

People watching this ticket

Tags

Pages