Hi everybody,
I'm writing a DCOM application (both client and server) that will acquire images ) with a Video Acquisition Board, and then measure and check with IMAQ Vision API functions.
Before writing the server, I wrote these functions as an MFC application with graphical interface. When they worked I started migrating them in the server side, while the logical program that uses them went in client side.
Now, I have (for now, I have still to test 5 functions with DCOM) 2 functions that do not work properly:
1) imaqDisplayImage: I check error code that the function returns and it's OK, but no image is displayed on server (where it should be displayed). So I started investigate what could be wrong.
a) The Image I pass is correct (I'm wrapping the image in a structure with imaqImageToArray, and vice versa), I tried to flush it in a file and it's good
b) The Window Handle (where the Image should be displayed) is got by imaqGetWindowHandle function, so I suppose it's good
c) I tried, just because I did not know what else to do, to change also the RESIZE parameter (function's third parameter), and it did not change things (I supposed it)
2) imaqFindCircularEdge: another function that executed locally works well and when called via DCOM fails... but in this case we have an error (remember... parameters are not changing when calling either form MFC or from DCOM!!!).
This error says: IMAQ Vision does not support the interpolation type you supplied.
Parameter checking is very strong, so I'm sure I'm not passing garbage....
For both of two functions the question is the same: What could be? If DisplayImage is not fundamental for my project (used while debugging to catch image manipulation errors), imaqFindCircularEdge is one of my core functions, so if I do not mamage it to work, I'd better go searching another job.... 😉
Many thanks for the attention
Best regards,
Moreno.