LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

I get error - 12 in Call to Load Panel in my distrubited application

Hi

 

I have created a distributed application which works on my machine but when i load the application onto a seperate machine, the UIR panel does not appear. the following error message appears -

"Error In Call to Load Panel,  

Parent Panel Handle :0,

Panel Resource ID : 7

Error Code: -12,

Out of memory"

 

I have checked that the UIR is in the same directory as the application and it is.

 

The file size is 11.2MB

 

Does anyone know why i am getting this error message.

 

Thank you

Ian

0 Kudos
Message 1 of 4
(3,805 Views)

Ian,

 

I suggest you try embedding the UIR file in the executable.  This can be done under "Target Settings".

 

-Garth

0 Kudos
Message 2 of 4
(3,797 Views)

Hi Ian,

 

Do you have large bitmaps in the panel that you're trying to load? It's possible that you're getting this "out of memory" error because in this other machine there isn't enough contiguous memory to hold one or more of these bitmaps. If that's the case, you might try reducing the color depth on this computer (say, from 32-bit color to 16-bit color). If that doesn't help, then you might have to make those images smaller, or create them programmatically, as needed, rather than all at once.

 

Luis

0 Kudos
Message 3 of 4
(3,783 Views)

Hi

 

Thank you for your help.

 

The panel did include large jpg as company logo. I have modified the program to load a master panel and then all sub panels programmatically afterwards and the distribution code works.

 

Ian

0 Kudos
Message 4 of 4
(3,757 Views)