[Lazarus] Help on Exception Handling Problem

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Oct 5 23:27:13 CEST 2009


On Mon, 05 Oct 2009 10:35:21 -0400
David B Copeland <david.copeland at jsidata.ca> wrote:

> Hello,
> 
> I'm getting the following occuring during a form Close and hoping that
> someone can point me in the right direction to the problem. Using Suse
> 11.1, Lazarus SVN revision 22047 (today), GTK2, FPC: 2.2.4.
> 
> 
> (tracker:2574): GLib-GObject-CRITICAL **: g_object_ref: assertion
> `object->ref_count > 0' failed

Run your program in the debugger and pass the program the parameter
--g-fatal-warnings.

For example:

gdb ./project1
run --g-fatal-warnings

Reproduce the bug. The program will halt on the gtk criticals.
Create a backtrace with 'backtrace'.


Mattias




More information about the Lazarus mailing list