Thread: pointer error
View Single Post
Old 07-13-2006, 10:50 AM   #9 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
hmm... sorry I can't follow your code here...
But from what I can guess, it seems that you never actualy assign anything into your List, befor quering it's containers... Relying on the compiler setting every instance to NULL uppon declaration...
Befor using it, you might want to do something like:
Code:
memcpy(List, NULL, MAX);
To nullify it befor you actualy start examining it for previus assignments.. then your
Code:
if(List[bucket] == NULL)
or
Code:
if(!List[bucket])
should work..
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote