STR #3238

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Post Text | Post File | Prev | Next ]

STR #3238

Application:FLTK Library
Status:5 - New
Priority:4 - High, e.g. key functionality not working
Scope:3 - Applies to all machines and operating systems
Subsystem:Core Library
Summary:Fl_Group::clear method should be virtual
Version:1.4-feature
Created By:mingodad
Assigned To:AlbrechtS
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]

No files


Trouble Report Comments:

Post Text ]
Name/Time/Date Text top right image
 
#1 mingodad
07:56 Jul 04, 2015
When any derived class form Fl_Group are used through a cast to Fl_Group pointer and calling the Fl_Group::clear method we get:

*** Error in `anyfltk-app': free(): invalid pointer: 0x0000000000bd9ce8 ***

The above error was caught when a Fl_Scroll was casted to Fl_Group and calling the clear method.

Probably there are other methods that are also override by derived classes of Fl_Group.

Cheers !
 
 
#2 AlbrechtS
02:43 Jul 07, 2015
Thanks for the report.

Unfortunately we can't make any methods virtual w/o breaking the ABI.

There are many more methods, particularly of Fl_Group, that should be virtual. This will be addressed in the next minor release of FLTK (1.4.0).
 
 
#3 AlbrechtS
13:47 Aug 04, 2015
Moved from 1.3-feature to 1.4-feature.  
 
#4 AlbrechtS
16:18 Nov 09, 2016
Changed priority from 1 (RFE) to 4 (High) since this must be included in FLTK 1.4.0, together with several other methods that should be virtual, although this is formally a RFE.  
bottom left image   bottom right image

Return to Bugs & Features | Post Text | Post File ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2021 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.