Closed nomad-software closed 10 years ago
Because the garbage collector cleans up during runtime it may free uniqueData and callback inside the CommandArgs struct when creating a new command. Check and alter the behaviour of the Element.createCommand method to not allow this.
uniqueData
callback
CommandArgs
Element.createCommand
https://github.com/nomad-software/tkd/blob/master/source/tkd/element/element.d#L172
Switched to allocating memory from the GC heap instead of the unmanaged heap when creating a command. https://github.com/nomad-software/tkd/commit/d77ff8603e26e7645c60b2613b996f1b21e751fc
Fixed in https://github.com/nomad-software/tkd/releases/tag/v1.0.4-beta
Because the garbage collector cleans up during runtime it may free
uniqueData
andcallback
inside theCommandArgs
struct when creating a new command. Check and alter the behaviour of theElement.createCommand
method to not allow this.https://github.com/nomad-software/tkd/blob/master/source/tkd/element/element.d#L172