LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to allocate system resource

Hello,

 

I’m getting the following message:

 

FATAL ERROR (aborting debug session):

Unable to allocate system resource

 

I’m running an executable that loads a dll.  I developed the code as a single application and then split off the code in the dll.  The problem only started after I created the dll, and it only occurs after the dll is loaded.  I ran the application many times before creating the dll, and never saw this.  The application is running in a 1-second timer loop monitoring an instrument (query & response using viWrite4 & viRead).  The application will run for ~1.5 minutes after the dll is loaded before I get the message. 

 

I found one previous thread about this ( http://forums.ni.com/ni/board/message?board.id=180&message.id=20975#M20975 ) but the suggestions given there haven’t helped so far:

  • Tried watching my apps memory usage in Windows Task Mgr.  Task Mgr shows memory usage going from ~7,936K to ~11,400K when the dll is loaded.  It doesn’t increase after that, and Task Mgr still shows 11,400K when I get the fatal error.  So it does not seem to be a memory leak.

  • Increased virtual memory on my PC from 2G to 16G.  Still get the fatal error after ~1.5 minutes.

  • I’m running CVI 8.0.1 run time engine, LabWindows 7.1.0 (306), and NI-VISA 4.0 runtime.  Upgrading LabWindows isn’t an option.

  • I’m working to isolate the function causing the error, but the application crashes spontaneously without giving any other information.  Any suggestions for zeroing in on this quickly?

  • Also tried restarting my computer several times

I traced through my code and so far haven’t found where anything is being allocated anywhere in the monitoring loop.  I’m working on isolating the problem, but in the mean-time, has anyone else seen the above error message and solved this problem?  The above is the entire error message; no other details are given.

 

Thanks for any help or suggestions!

 

JoeN

 

 

0 Kudos
Message 1 of 3
(4,269 Views)
Hi JoeN,

There is a patch available for this issue.
Test Engineer - CTA
0 Kudos
Message 2 of 3
(4,249 Views)
Jon,

Thanks very much.  The patch worked.

If I may offer a suggestion to the NI folks who edit the Support web pages, please include the error message for a bug patch as text on the web page.  The screen shot of the error-message pop up is great confirmation once you find the page, but my searches in ni.com for "FATAL ERROR", "aborting debug session" and "Unable to allocate system resource" failed to find the patch page.  This small effort might save someone else from hours of futile debugging.

Thanks again,
Joe N
0 Kudos
Message 3 of 3
(4,223 Views)