   Pointer returning 0xdddddddd?
  So I have a quadtree class called Quadtree.  Each one has a linked list of objects called "objects" of the data type ObjectList.  The objects variable represents objects that can''t be sorted into a child, that are thus members of the node.And yeah, I know that my quadtrees aren''t being checked against the frustum, but I''m doing it like this to debug the pointer problem that I get.I run the code in debug mode, and this is what I get:From the central node:ABOUT TO FILL THE NODES UPChild 0 is null.Child 1 will be filled with 2Child 2 is null.Child 3 will be filled with 2And then subdivision stops (intentionally).My debugger shows that the central node does its draw code, which calls child 1''s draw code.  Child 1''s draw code passes the "getHead() != NULL" test, and calls drawObjectsCull(cam).drawObjectsCull assigns Object* current to head, which is shown as 0xdddddddd.  That passes the null check, and then returns an access violation when current->draw() is called.What''s going on?   Quadtree::Quadtree(int subdivide):divideThres(subdivide), parent(NULL), objects(){InitQuadtree();}void Quadtree::draw(CCamera *cam){if(objects.getHead() != NULL)objects.drawObjectsCull(cam);for(int x=0;x<4;x++){// Check if the node exists and if it''s in the frustumif(nodes[x] != NULL){nodes[x]->draw(cam);}}}void ObjectList::drawObjectsCull(CCamera *cam){Object* current=head;int x =0;while(current !=NULL){if(cam->viewFrust.sphereInFrustum(current->getX(), current->getY(), current->getZ(), current->getBoundingRadius()) !=0 ){x++;glPushMatrix();current->draw();// Draw the objectglPopMatrix();}current=current->getNext();}}
  Are you sure you are assigning the pointer to the head correctly? ;  I don''t know how else to do it... Object *head is a member variable of the ObjectList class, and the code just says Object *current=head; ;  MSVC uses certain values to identify certain states.CCCCCCCC means a local variable which was never initializedCDCDCDCD means a class variable which was never initializedDDDDDDDD means you''re reading a value through a pointer to an object which was deleted.;  wow, that''s actually pretty damn useful to know. Thanks Namethatnobodyelsetook. 