cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 

Stack overflow when calling a DLL

I have developped a DLL in Ada.
I tried to call a function of this DLL from a C++ executable.
My program crashed because of a stack overflow.
Then, I increased the stack size of my program (linker option), and now it
works.

Calling this DLL through the call library function from a 6.0 Labview
program causes the same stack overflow.
How could I increase the stack size of my Labview program ?

Thanks.
0 kudos
Mensaje 1 de 2
3.610 Vistas
Hi,

I have never come across this issue but here are a few things you can try:
1) Change the Calling Convention between C and StdCall(WINAPI). The main difference between the two calling conventions has to do with when the stack is cleaned up. In one method, the stack is cleaned earlier than in the other method.

2) Call your dll with LabVIEW 7.0. You can find the evaluation version of the latest version at http://www.ni.com/labview

Good luck

Feroz
0 kudos
Mensaje 2 de 2
3.610 Vistas