LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

GetCtrlDisplayBitmap

Hello,

 

i am see often, that CVI crashing by aquire an Image using (GetCtrlDisplayBitmap)  from ActiveX Control.

 

if(GetCtrlDisplayBitmap(g_tabPanelHandle0,TABPANEL0_PATCONNECT,0,&bitmap) > -1 && bitmap != 0)
{
  SetCtrlBitmap(g_tabPanelHandle1,TABPANEL1_PICBUTDATA,0,bitmap); 
  DiscardBitmap(bitmap);
  ProcessDrawEvents();
}

 

I have all try out with delay's or Re -refreshes, but ever the same , the runtime goe's crashed after a period of succseeded grabbing and putting Image.

 

The actual Camera Image has 52MB  per Frame,  in my other solution i have 2MB but in booth its crashed frequently by random.

 

Thx for Any Help
 Karsten Schulz (www.FlexxVision.de)

 

0 Kudos
Message 1 of 2
(838 Views)

No idea, but can you try GetCtrlBitmap() instead ?

 

Can you try it on a different control just for a test ?

0 Kudos
Message 2 of 2
(752 Views)