Hi,
I have some questions about axCWIMAQ control. As far as I know, axCWIMAQ is an activeX control which can only be used in STA.
I have a function "ImageProcess()", which is doing the image process stuff, like Threadhold, Extract, Mask, CircleDetection...
Now I am trying to call this function in two different ways.
Button1: Directly call ImageProcess() when button1_clicked,
Button2: Start a new thread and call ImageProcess() when button2_clicked.
Then i found something interesting. Button1 always return "no error". Whereas if button2 was clicked right after button1 was clicked, there is a error msg come out. eg: "You supplied the wrong type of object to the function, pass a CWIMAQCircleReport object instead." Besides click button2 without clicking button1 first, it works just fine.
Anybody has a clue how the error occurs, any hit will be thankful.
regards.