Howdy,
before i go into the question, i would like specify that i am using NI-DAQ and VC++ and not measurement studio. i didn't find any other forum specifically related to that and figured that the members of this forum would be best suited to handle this question. i would really appreciate it if anybody can help me out with this.
i am using NI-DAQ to perform double buffered data acquisition. i tried creating the buffer dynamically by using new, GlobalAlloc (Win API) and MapViewOfFile (WinAPI) inside a class. i created a worker thread that takes a pointer to an object of this class as an argument. the worker thread calls SCAN_Start and passes the pointer to the buffer as one of the arguments. SCAN_Start fails to execute and puts out memPageLockError.
i was wondering what causes this error to occur? when i don't use threading and classes but just use dynamic allocation everything works fine.
thanks for reading.
vik