AccessViolationException in 2008 but not 2005

W

Willy Denoyette [MVP]

Running dumpbin /headers | findstr "DLL characteristics" on the exe
didn't produce any output. I had tried running editbin /nxcompat:no
on the exe before and it did not make any difference.


Would you mind if I just emailed an example project to you, Willy?
The fortran dll comes from another company and I am not comfortable
posting it all to a public site.

Rob


Ok, go ahead ;-)

Willy.
 
R

rmiller407

I figured it out, and I feel like an idiot. The problem is that I
have to pass a path to the fortran dll so it knows where to load its
data files from. I had my vs2005 projects under c:\source, but my
vs2008 test projects in the default directory deep under "documents
and settings". All those extra directory characters in the vs2008
path overflowed the file path buffer in the fortran code and caused
the pointer exception. If I run the vs2008 code out of a directory
with a shorter path then it works fine. I figured it out when I was
trying to put together an example project for Willy and could not
understand why it behaved differently.

Thank you Marc and Willy for your help. Even though I figured it out
myself, I may not have done so without your help. Much appreciated.

Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top