LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Embedding COFF symbols in CVI executable

Is it possible to compile a release build of an executable (not a .dll file) in which a COFF symbol table is embedded? I'm using LabWindows/CVI Version 6.0. I know that this is possible in VC++ by linking with /DEBUG and /DEBUGTYPE:COFF. Embedding this symbol table will be useful in diagnosing Dr. Watson crash dumps of in-field crashes.
0 Kudos
Message 1 of 4
(3,222 Views)
Hello mwgesner,

With LabWindows/CVI 7.x, you can generate a memory map of an executable (Build >> Target Settings >> Generate Map File) which will list each variable and function in the call stack with its corresponding memory location. Unline COFF debugging information, it will not include a line number where a program crashed, but it will identify the offending function and memory location.

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 4
(3,207 Views)
Where does CVI put the map file and what is it named? I just tried using
this option but no map file appears to be created under my application
folder.

"Wendy L" <x@no.email> wrote in message news:207683@exchange.ni.com...
> Hello mwgesner,<br><br>With LabWindows/CVI 7.x, you can generate a memory
map of an executable (Build >> Target Settings >> Generate Map File) which
will list each variable and function in the call stack with its
corresponding memory location. Unline COFF debugging information, it will
not include a line number where a program crashed, but it will identify the
offending function and memory location. <br><br>Thanks.


0 Kudos
Message 3 of 4
(3,187 Views)
Hello,

The map file produced when this option is selected can be found in the cvibuild.[projectName] directory under your main project directory.

The file itself will have the form map_[projectName]_dbg.txt

Scott Y
NI
0 Kudos
Message 4 of 4
(3,174 Views)