MaxGUI Updates Discussion Thread

BlitzMax Forums/BlitzMax GUI Programming/MaxGUI Updates Discussion Thread

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I have just found a bug with maxguiex. I have tried to patch multithreading compileroptions into maxide CE 2
and after compiling the IDE just shut down as soon as try to open a second source. After some trouble (try debugging with just one sourcefile open at time)
I have found the issue: (hopefully)

win32maxgui.bmx
Type TWindowsTreeNode Extends TGadget
...
Method Free()
		'Avoid firing events when freeing a treenode that is selected.
		If SendMessageW(_tree,TVM_GETNEXTITEM,TVGN_CARET,0) Then DeSelect()
		'Free treenode
		If _item Then SendMessageW(_tree,TVM_DELETEITEM,0,_item);_item=0
		'Redraw parent if we were its last child node
		If _parent Then 'not checked in current SVN Version
			If Not SendMessageW(_tree, TVM_GETNEXTITEM, TVGN_CHILD, _parent._item) Then _parent.RedrawNode()
		End If
		'Cleanup variables that could be circular references
		_parent = Null;_tree = 0;_SetParent Null
		'Release any handle we created using HandleFromObject() in Spawn()
		If _handle Then Release _handle
	EndMethod
...
End Type


This at least fixed the bug for me. So I think the control for _parent was just overseen.