FreeTreeviewNode() ???????????????

BlitzMax Forums/MaxGUI Module/FreeTreeviewNode() ???????????????

Pipes(Posted 2010) [#1]
Hello All,

What's wrong with FreeTreeviewNode or maybe what's wrong with me? Every which way I try to use it I get... "Unhandled Exception:Attempt to access field or method of Null object" Even when I just used the Node:TGadget in the line before it. I just don't get it. Here is an example:



Thanks for the help in advance.


jsp(Posted 2010) [#2]
Hi,
there is nothing wrong with the FreeTreeViewNode, at least not directly.
The problem you got is a NULL node, which is not taken care about and thus the GadgetText sends the exception.




Pipes(Posted 2010) [#3]
Hi jsp,
I didn't really think something was wrong with FreeTreeviewNode. I suspected that it was something right in front of me that I couldn't see. It turns out that was a correct suspicion. Thanks for the help it worked.