LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Out of memory

Problem - 1 :
I am trying to load some panels from multiple uir files. I have a physical memory of 1 GB and I am monitoring the current memory usage by using the psapi calls. The memory usage is only in the order of around 200-400MB. Still while I am loading panel the Load panel call returns with "Out of memory" error. Is there any solution for this problem? Is it possible to tune the application in any way?. I am using shared memory as well. Is there any place where I can find out for what reason out of memory is resulting?

Problem - 2 :
I am using mutliple process and shared memory is used for data transaction. One proceess creates the shared memory and the other opens the same memory using the memory address passed by the first process.
The problem is if I run the first application in 'Release' and debug the second one, the passed address becomes an invalid value to open as a shared memory for the second. It happens the other way also. Hence, if I want to debug I need to run both in debug and if I need to run in release I need to run both in release. This becomes a bottle neck when we have to run multiple processes. It is not possible to run 4/5 Labwindows in debug. That causes problem with Labwindows itself. Is it possible to explain why this behaviour and it there are any environment/build options to fix this? The basic system is a Xeon workstation with 3.06 Ghz clock, 1 GB RAM and a high end (ATI) graphics card.
0 Kudos
Message 1 of 2
(3,113 Views)

Hello Geetha,

Can you provide me with some exampe code that shows your problem. For the first one, is it any one particular panel that is causing the problem? If so, can you send that uir file to me and also show me how you are loading it.

For the second problem, how are you declaring the shared memory? What function calls are you using to access the memory. Again, a small example program would be most valuable.

Regards,

Jack J.
Applications Engineering
National Instruments

0 Kudos
Message 2 of 2
(3,079 Views)