help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] [bug] Bug with the callbacks


From: Gwenael Casaccio
Subject: Re: [Help-smalltalk] [bug] Bug with the callbacks
Date: Fri, 29 Jul 2011 03:58:03 -0700

Issue status update for http://smalltalk.gnu.org/project/issue/529 Post a follow up: http://smalltalk.gnu.org/project/comments/add/529

Project:      GNU Smalltalk
Version:      <none>
Component:    VM
Category:     bug reports
Priority:     normal
Assigned to:  Unassigned
Reported by:  MrGwen
Updated by:   MrGwen
-Status:       active
+Status:       invalid

This is my fault, the callback is free when the gc sweep it. I should
keep a reference of it somewhere:

GTK.Gtk keySnooperInstall: (CCallbackDescriptor ...)

call the primitive with the callback, but the callback reference will
be swept at the next garbage collection.
A solution is to register it in the keysnooper.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]