Hello,
I'm working with a C++ dll that processes files on the hard drive. When I call the dll from within a C++ console app, everything works beautifully.
I tried to execute it from a C# application and I can't figure out what's wrong. I worked through all of the MarshalAs attributes and verified that the parameters being passed in were correct. I also exposed a duplicate function that performed the same activities except the parameters were hard-coded. I'm getting the exact same issues as before (runs in c++ console, not in C# windows app).
The part that seems to be having a problem is when the dll tries to read an image file into memory. It can read a text file with no problem.
Is there some type of environment setting that could be causing this??? I've been searching the net for several days now and haven't been able to find anything that's similar to this.
I'm working with a C++ dll that processes files on the hard drive. When I call the dll from within a C++ console app, everything works beautifully.
I tried to execute it from a C# application and I can't figure out what's wrong. I worked through all of the MarshalAs attributes and verified that the parameters being passed in were correct. I also exposed a duplicate function that performed the same activities except the parameters were hard-coded. I'm getting the exact same issues as before (runs in c++ console, not in C# windows app).
The part that seems to be having a problem is when the dll tries to read an image file into memory. It can read a text file with no problem.
Is there some type of environment setting that could be causing this??? I've been searching the net for several days now and haven't been able to find anything that's similar to this.