LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Unbale to create window of imaqDisplayImage in cvi

Hi,

 

I want to create 4 windows to demonstrate the data using imaqDisplayImage, but I found the the available window handle was only one after I used imaqGetWindowHanble() function. 

 

I am just wondering how can only one window handle left? If there possible to increase it? Thank you for your help.

0 Kudos
Message 1 of 4
(1,281 Views)

I can create the 4 windows in the main thread. But if I created them in the multithreading, the error occurred.

 

The error code=3220571337(0xbff604c9). Unable to create window.

0 Kudos
Message 2 of 4
(1,256 Views)

Are you trying to create child windows? If so, you should be aware that child windows are to be created from the tread owning the parent window, as clearly stated in the documentation:

If you call this function to load a panel as a child panel, you must do so in the same thread in which you create the parent panel.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 3 of 4
(1,241 Views)

Hi Roberto,

 

Thank you for providing useful information.  The problem has been solved. When using imaqDisplayImage function, the image to be displayed must have data. For my case, I forgot to check it, so there is no data in the image, causing the error.

 

 Thank you again for your help.

0 Kudos
Message 4 of 4
(1,233 Views)