EDN Admin
Well-known member
I have managed to get my project to compile and link, but when I run it (Debug or otherwise) I get a Debug Assertion Failed! error whenever the code tries to execute a call to an NI488 function. Details of my development environment are: Vista 64-bit,
Visual Studio 2010 C++, Windows Forms application, build set to /clr not /clr
ure, NI4882 rev. 2.8.1 (Visual Studio 2010 version, not yet available on NI website), ni4882.obj and ni4882.dll added to project (in local directory), and ni4882.h included
(#include "ni4882.h) in source file.
I cant figure out how to stick a .jpg screen image of the error here, but the 2 important lines that are displayed are:
File: f:ddvctoolscrt_bldself_x86crtsrcdbgheap.c
Expression: _CrtIsValidHeapPointer(pUserData)
Strangely, I dont have an f: drive so this isnt a path name that I can follow. Anyone know whats wrong here, and how to fix it? Anyone successfully used the National Instruments GPIB library (NI488.2) with C++ in Visual Studio 2010 that
can share how they did it? <hr class="sig RSBeech
View the full article
Visual Studio 2010 C++, Windows Forms application, build set to /clr not /clr

(#include "ni4882.h) in source file.
I cant figure out how to stick a .jpg screen image of the error here, but the 2 important lines that are displayed are:
File: f:ddvctoolscrt_bldself_x86crtsrcdbgheap.c
Expression: _CrtIsValidHeapPointer(pUserData)
Strangely, I dont have an f: drive so this isnt a path name that I can follow. Anyone know whats wrong here, and how to fix it? Anyone successfully used the National Instruments GPIB library (NI488.2) with C++ in Visual Studio 2010 that
can share how they did it? <hr class="sig RSBeech
View the full article