LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Call to Ini_New causes Dynamic memory is corrupt error

Solved!
Go to solution

I am using LabWindows/CVI 8.5.1 to implement a dll which really is just a customization of the teststand dll frontend.dll used to login to Teststand's sequence editor. By the way I am working with TestStand 4.1. Unlike most of posts regarding similar issues, I see that error on the first call to Ini_New. The problem seems to be that I make 2 subsequent calls to different exported functions of my dll, although the variable I write the return value of Ini_New to is defined locally. If I move things around such that I make one call to my dll it works...I don't understand what I am doing wrong. The other thing I see is that after calling Ini_Dispose at the end of my function, the pointer isn't freed, but that will have to be the subject of a different post I guess.

 

Any ideas? I can't post my code as is but If I have to I can make a generic version of this dll I will, as a last resort.

0 Kudos
Message 1 of 2
(3,127 Views)
Solution
Accepted by topic author freak
Disregard my previous post, I figured out I was using strcat in several locations without properly allocating memory.
0 Kudos
Message 2 of 2
(3,118 Views)