Infinit loop in TreeItemId operator ==

Michael Eddington <[email protected]> Tue, 29 Nov 2005 11:25:03 -0800
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <[email protected]>
When performing an if(id==null) in my code I started getting stack
overfow errors from this function.  I beleave the use of "==" inside
of the "operator ==" is causing an infinit loop?

		public static bool operator == (TreeItemId id1, TreeItemId id2)
		{
			if (id1 == null && id2 == null)
				return false;	
			return wxTreeItemId_Equal(Object.SafePtr(id1), Object.SafePtr(id2));
		}


mike


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click