noreply at rubyforge.org
2008-Sep-16 14:56 UTC
[wxruby-development] [ wxruby-Bugs-21985 ] Intermittent errors with the Scintilla demo
Bugs item #21985, was opened at 2008-09-16 14:56 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=21985&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 4 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: Intermittent errors with the Scintilla demo Initial Comment: http://rubyforge.org/pipermail/wxruby-users/2008-September/004175.html I got the following error when I was randomly clicking margins and lines in a StyledTextControl (3 margins). It doesn''t occur often, usually happens after many clicks (20 or so). Expected argument 1 of type int, but got Wxruby2::Point #<Wx::Point: (1753743404, 0)> in SWIG method ''LineFromPosition'' My env: wxRuby mingw32 1.9.8, ruby 1.8.6 p287 on XP ----- AF: Confirmed with the same environment using the standard scintilla sample. What seems to be happening is that sometimes the event handler is getting passed a Wx::Rect, instead of a Wx::StyledTextEvent, and so the wrong value is returned by get_position. Probably a memory management prob - Rectangles not cleaned up properly? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=21985&group_id=35