PDA

View Full Version : Not working



colex^
October 17, 2009, 17:12:10
When I try to run c# sample for image processing I get "Failed to query type library. Please reinstall SDK"
on the line this.icImagingControl = new TIS.Imaging.ICImagingcontrol();

Just installed the IC Capture
It reports with UYVY that that live mode can not be started but it works for Y800

I have VS2008 and XP 64
DFK31BF03

Stefan Geissler
October 19, 2009, 12:31:32
When I try to run c# sample for image processing I get "Failed to query type library. Please reinstall SDK"
on the line this.icImagingControl = new TIS.Imaging.ICImagingcontrol();

Please make sure, the compile is for Win32, not any CPU. Then the correct DLLs for 32 should be loaded.


Just installed the IC Capture
It reports with UYVY that that live mode can not be started but it works for Y800


Please let me the know the used driver version.

colex^
October 23, 2009, 21:34:05
IC Capture 2.0.1.529
It is set to compile to "Any CPU" but the error appears.

Stefan Geissler
October 26, 2009, 09:44:06
Well, the IC Capture version is not as important, but the driver version, can be seen in the Device Manager, would have been fine.

If "any CPU" does not work, then please set the target to WIN32.

From http://forums.ni.com/ni/board/message?board.id=232&message.id=4433

If following error message occurs due to compiling in Visual Studio 2005:

"Could not load file or assembly 'ImagingControl31, Version=3.1.0.1, Culture=neutral, PublicKeyToken=257805929e8b7928' or one of its dependencies. An attempt was made to load a program with an incorrect format."

Then "LC.EXE", Microsoft's license compiler generates the problem.

To work around this issue call C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ld r64.exe setwow in the prebuild step of your Visual Studio 2005 project, and call C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\ld r64.exe set64 in the postbuild step of your project.

If using these build steps, Visual Studio must have been started as administrator!

--
I am not sure, what you are using, thus I am guessing a little bit.

colex^
October 26, 2009, 19:42:46
Thank you but I switched to 32 bit platform and VS2005 and now samples for c++ and c# work fine.

I am trying now to start creating application but IC wizard for C# does not create any files or code whatever options I choose!
Wizzard for c++ app works fine though.
I tried also reinstalling version 3.0.6 from the CD... what is wrong?


Thanks!

Stefan Geissler
October 27, 2009, 10:24:13
Our wizards do not work in the Visual Studio Express versions. This seems to be a limitation of the Express version. Do you use Visual Studio Express?

colex^
October 27, 2009, 12:12:33
No, no, this is vs2005 professional. Wizard works just fine for c++ but c# wizard creates just empty solution with no code

Stefan Geissler
October 27, 2009, 12:16:41
Which wizard do you use exactly?

colex^
October 27, 2009, 16:53:17
Under Visual C#->IC Imaging control 3.0->IC 3.0 c# Dialog Application
(It is the same if I choose IC 3.0 c# appication)
->Add image processing functionality
It creates test solution and there test.csproj with no code or files
It is the same if I choose IC 3.0 c# appication

colex^
October 27, 2009, 17:04:01
It works now, no worry... the problem was I had to install files for VS2003 and VS2005.
Previous 2 times I did install files for VS2005 only (because I have only VS2005). I am not sure why does it need VS2003 files, but I don't care as long as it works.
Thanks anyway

Stefan Geissler
October 28, 2009, 09:19:34
Hi,

thank you for your feedback. I guess, the problem wont exist in IC 3.1, since VS 2003.NET is no longer supported in IC 3.1.