Viewing content of void* in Debugg 
Author Message
 Viewing content of void* in Debugg

I have just managed to find the cause of a problem I have with viewing list
content in debugg.

I am using a type of list as bellow :

void *  VosT_Ll_Elemptr;

struct VosT_Ll_Cell

             struct VosT_Ll_Cell     * next;
             struct VosT_Ll_Cell     * prev;
             VosT_Ll_Elemptr           elem_ptr;
              } VosT_Ll_Cell;


              int                         size;
             VosT_Ll_Cell      *head_ptr;
             VosT_Ll_Cell      *tail_ptr;
             VosT_Ll_Cell      *current_ptr;
              int                         current_pos;
              int                         status;
            } List;

The elements of the list are of type void* because then I can insert any
type of element structure in the list.
Becasue the actual elements in the list are of type void*, I can not watch
them during the debugg as the de{*filter*} does not know their type. I can only
see the address stored in VosT_Ll_Elemptr.
If I want to see the content of this address I have to cast that pointer to
the type of  the elements that I am actualy inserting in the list. I have to
do that manualy in the quick watch window.

Is there any way for this to happen automaticaly?

Many thanks


Wed, 10 Jul 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Viewing content of void* in Debugg

2. Viewing List content in debugg

3. Viewing List content in debugg

4. Watching the content of a list in debugg

5. from void (void*) to void (_cdecl*) (void*)

6. contents in a Void pointer

7. what's the difference between void main(void) and int main(void)

8. difference between void foo(void) and void foo()

9. How debugg a trigger in VC++ or VB6

10. any method to view resources file content?

11. Viewing database content

12. View the contents of a DLL


Powered by phpBB® Forum Software