LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

"Unable to allocate system resource" CVI 8.5.1 - patch no longer exists.

When executing a DEBUG release of my application from the IDE, a message popup appeared indicating "Unable to allocate system resource".  After pressing yes, it continued with my application, but in crippled version (other weird errors occurred).

 

I saw other threads dating back to 2007, 2006, and 2002:

   http://forums.ni.com/ni/board/message?board.id=180&message.id=5939&query.id=11137#M5939 

   http://forums.ni.com/ni/board/message?board.id=180&message.id=28452&query.id=11137#M28452

   http://forums.ni.com/ni/board/message?board.id=180&message.id=21173&query.id=11137#M21173

   http://forums.ni.com/ni/board/message?board.id=180&message.id=20975&query.id=11137#M20975

 

But they pointed to a patch that no longer exists.

 

I have LabWindows/CVI 8.5.1 with the same problem.  I don't know which DLL it repeatedly calls (per the link), but the problem persists.

0 Kudos
Message 1 of 5
(3,916 Views)

Hi CVIuser2003,

 

Does this problem occur with any other applications, or just the current one?  Also, do you have the newest runtime engine?  Downloading the newest runtime from NI.com may fix the problem.  If the problem persists, let me know and we can work from there.  thanks!

Al B.
Staff Software Engineer - TestStand
CTA/CLD
0 Kudos
Message 2 of 5
(3,892 Views)

There are two projects where this occurs - one is a subset of the other (in other words, all of Proj1.prj files are in Proj2.prj project; and Proj2.prj has other UIR, C, LIB, etc. also).

 

When I installed the CVI 8.5.1 application, it allowed me to upload the RTE (a checkable option), which I did check it, and it loaded the appropriate RTE.  I did notice that I had a previous installation (which loads the RTE) for CVI 8.5.1 application, which I removed - but still had the same problem.

 

I don't know if it is caused by my application's inefficiencies taking up so much memory?  I upgraded to CVI 8.5.1 because my applications would not link under CVI 6 - gives an out-of-memory error.  Until recently, CVI 8.5.1 did not give me any compile/link problems  - I get an "Unrecoverable Error" (or something like that) inconsistently (during debug) which forces a closure of CVI.  Restarting CVI allows me to continue.

 

Strangely enough this (Unable to allocate system resource) error has not been occurring too often when I removed all intermediary files - I got my source code/uir files from our CM system to an empty directory, and a recompile/relink is successful.

0 Kudos
Message 3 of 5
(3,863 Views)

For example, the link

http://digital.ni.com/softlib.nsf/websearch/361DFA46AE788E6A86256F56004D90DB?opendocument&node=13207...

 

points to a download file for CVI 7.1:

ftp://ftp.ni.com/support/labwindows/cvi/fixes/7.1/LWCVI_711_Patch.exe 

 

but this patch does not exist - causes an "FTP Communication Problem" on my browser - it says

 

xxx Proxy has sent this command to the FTP server: RETR support/labwindows/cvi/fixes/7.1/LWCVI_711_Patch.exe
The server has sent this non-expected reply: No such file. (code=550)

 

I am using CVI 8.5.1, not CVI 7.1.

0 Kudos
Message 4 of 5
(3,862 Views)

Hello CviUser2003,

 

From the explanation of the problem in your previous posts:

 

When executing a DEBUG release of my application from the IDE, a message popup appeared indicating "Unable to allocate system resource".  After pressing yes, it continued with my application, but in crippled version (other weird errors occurred).

I don't know if it is caused by my application's inefficiencies taking up so much memory?  I upgraded to CVI 8.5.1 because my applications would not link under CVI 6 - gives an out-of-memory error.  Until recently, CVI 8.5.1 did not give me any compile/link problems  - I get an "Unrecoverable Error" (or something like that) inconsistently (during debug) which forces a closure of CVI.  Restarting CVI allows me to continue.

 

You may want to debug your program to see if you are ever over-writing memory locations that you haven't properly allocated for use in your program. When I've come across programs/executables that display behavior similar to what you're experiencing, it's been caused by writing to non-allocated memory locations. Here is an example of a situation where it's possible to overwrite to non-allocated memory:

 

If you declare a character array of 8 elements called myCharArray, you've allocated 8 bytes of memory for myCharArray. Now, if you set myCharArray as the Target String input and a user input defined at run-time as the Source(s) input of the sprintf() function, if the user input defined at run-time is a string with more than 8 characters (for example "Hello World" is a string of 11 characters), then the sprintf() function is going to try to write "Hello World" to the myCharArray target string. It will write H-e-l-l-o- -W-o to the elements of myCharArray and then continue to write r-l-d to the next three memory locations. These next three memory locations were not specifically allocated for use in the program so they might be memory locations containing pointers or some other kind of information used by CVI or they might just be un-used memory locations.

 

This is why you may experience this behavior inconsistently. You may not be using the sprintf() function in your program but there might be certain parts of the code that use pointers and for loops to index through memory locations with those pointers. Try debugging your source code and see if this might be happening in your program.

Manooch H.
National Instruments
0 Kudos
Message 5 of 5
(3,835 Views)