Why real OBJECT compared to NULL returns TRUE?

  • Thread starter Thread starter Sly
  • Start date Start date
S

Sly

Hi!
I am facing an unbreakable wall.
I have a class 'x' with one array in it called arr;

in Equals(x arg) routine I compare the elements of the
array.
But first I check whether
if( arg.arr == null )
{
return( false ) ;
}
DEBUGGER shows 3 elements in the array - so it is not
NULL!
comparison however returns TRUE !!!!!!!

What the heck is this?
Can anyone help me on that please?

Sly
 
can you post the code that deals with arr? Or the code where you're
initializing the array.. or the part where you pass your array to the
Equals() method.

-Andre
 
This might be a dubugger's glitch. Make sure you've installed latest VS SPs.
Val.
 
Hi!

IT IS A DEBUGGER GLITCH!
I have downloaded a fix for it (after 1hour search)
Thanks for all reply's

Sly
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top