DiscussionsIssue archiveDraw Harness and Samples

Archived discussion

Rebuild the C # example in OCC 6.7.0

Draw Harness and SamplesFri, 12/20/2013 - 17:125 replies

Browse this forum
QuestionAuthor

Hello,

I'm interested in the C# Sample. I tested the sample with the .bat file and it works fine. Now I want to execute the winForms example from VS 2008, i add the inc and lib paths to the wrapper project properties and i run the project but i have an "System.IO.FileNotFoundException" exception when i try to open new document.
The exception occurs at "Form2 newForm = new Form2();"

How can I solve this issue
Thanks

Discussion

5 archived replies

Posts are displayed in their archived order.

01Commenter-1

Dear Author,

you need to make the OCCT dlls 'visible' to VS (e.g. using environment variable).

Commenter-1

02Author

Dear Pawel,

THank you for your response,

I run the env.Bat, i test the existed exe and it's ok, but for the rebuilt project i have this problem
If there is a problem with the environment variable how can i test the occ example?

Thanks

03Author

I added manually the environment Path, but i've the same problem
Can you help me please

04Commenter-2

Dear Author,
I suggest you to double check that you build the sample and OCCT by the same compiler and in the same configuration (32 or 64-bit, Debug vs. Release).
See similar topic at http://dev.opencascade.org/index.php?q=node/835
Best regards

05Commenter-3

I had this issue related to OCCTProxy.dll in OCC 6.7.1. Steps below fixed the issue:
1. I inspected OCCTProxy.dll with Dependency Walker utility and found out which dll-s it couldn't locate.
2. I updated PATH with location of those dll-s. In my case I did the following:
path=%path%;e:\OpenCASCADE6.7.1\opencascade-6.7.1\win32\vc9\bin\
3. Then I ran VC and С# samples worked with no issues.

Hope this helps.

Commenter-3.