Hi, i tried to use CIN for allocate memory to create a memory space by DSNewPtr function.
This is my .c file:
#include "extcode.h"
MgErr CINRun(uInt32 Length, uInt32 *Address);
MgErr CINRun(uInt32 Length, uInt32 *Address)
{
Address = (uInt32 *)DSNewPtr(Length*(sizeof(uInt32)));
return noErr;
}
I want use the return for write into the memory allocate, but when i start run this CIN a error occurs:"not enough memory for complete this operation"(also with Length=1).I don't understand why.
I use LabVIEW 8.0 and for compile the source file MIcrosoft Studio 2003.
Can you please help me for this problem
Sorry for my english