For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Rebuild the C # example in OCC 6.7.0

Imen Imen's picture
Forums: 

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

Pawel's picture

Dear Imen,

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

Pawel

Imen Imen's picture

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

Imen Imen's picture

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

sergey zaritchny's picture

Dear Imen,
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

Igor Tarasenko's picture

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.

Igor.

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.