CVPACK Can Cause CVW to Display "<no type>" Message

ID Number: Q69966

3.00

WINDOWS

Summary:

In some situations, the CVPACK program, which consolidates the

debugging information for the CodeView debugger, will lose information

about the types of local variables.

More Information:

Sometimes the compiler or the CVPACK program will remove information

that is necessary for CVW to display variables properly in a local

watch window. When the information is lost, the "locals" window will

not display any type information. Instead, "<no type>" will be

displayed.

When this problem occurs, do the following:

1. Disable the Microsoft C Compiler's optimizations with its -Od

switch.

2. Try to debug a version of the file that has not been processed with

CVPACK.

3. Declare structure variables with their tag types, instead of

through pointers to the types, and make assignments to the

component fields from these structures. It may also be helpful to

add the "volatile" declaration to these structures.

These three suggestions may force the compiler to generate debug

information for the offending types. These steps may be helpful in

this process. If, after trying these steps, problems remain, please

contact Microsoft Product Support Services.