Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Bug for setting application's default cursor

#25

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]

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

State: new
Milestone: none
Assigned to: lyle (at lylejohnson) lyle (at lylejohnson)

Activity

  1. lyle (at lylejohnson)
    lyle (at lylejohnson)

    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).

    November 11th, 2009 @ 10:24 PM

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.