11-01-2021 04:33 PM
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.
11-01-2021 08:31 PM - edited 11-01-2021 09:28 PM
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.
11-02-2021 03:19 AM
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.
11-02-2021 04:20 PM
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.