LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling LV Memory manager function from Borland made DLL.

Hello,

 

I'm trying to get the NI example code Passing a Variety of Data Types from DLL to LabVIEW to work in Embarcadero C++ Builder 2010 (aka CodeGear, aka Borland), but as soon as my DLL calls back to any memory manager function I get 

 

"Internal Error: "MemoryManager.cpp", line 437 LabVIEW 8.6.1 ..."  and then LabVIEW crashes.

 

For example the exported function Dynamic1DArrayResize() will crash at the line containing the DSSetHandleSize() call.

 

The other functions in my DLL that doesn't allocate memory is working fine. I've also tried to call other LabVIEW functions (not MemoryManager) from C++Builder made DLL and that also works.

 

Any ideas how to get the MemoryManager calls to work?

0 Kudos
Message 1 of 1
(2,517 Views)