EMGU windows gets frozen when this gets open via "Imshow" method

Hello,

I’m using C# to take a screenshot of my Laptop screen and placed it into the EMGU window via “Imshow” method(see code below).
Code compiles and runs but the EMGU window is not showing the screeshot and gets frozen (see picture below).
I did some research on the net and i found that the problem could be if “Imshow” method is not called from the main thread, which is my case, but try to call the “Imshow” method from the main thread and nothing changed.

any ideas which the EMGU window gets fronzen?

Regards

don’t skip the tutorials. they’ll tell you how to use OpenCV’s GUI correctly. you are missing something. I wanna see if you can find it.

Hello Crackwitz

I found it(see picture below)! i was missing the “waitKey” method. Everything worked perfectly With this.

thank you very much for the help.

Regards