in reply to Re^2: Invalid Access to Memory location using DynaLoader - path?
in thread Invalid Access to Memory location using DynaLoader

Hello MattN,
your question is a cross-post: http://comments.gmane.org/gmane.science.physics.ifeffit/3475. while is permitted is also considered polite to inform about the other post. Infact many of the information you give here are yet present in the other page. You got also the author's support. is an important bit of information. Just for correctness.

Anyway dont fool yourself with the event viewer inspection: is very rare in my expereince to find something useful in them, and they costs hours of psychoanalisys..

Better if you concentrate on some trace tool: ProcessExplorer can tell you all about the DLL Hell; it has CRTL-D CTRL-H hotkeys to switch from handle view to dll one.

You can create with process explorer also dump of processes for further analisys.

Have you tried to put the right dll in the current directory? Assuming you can be sure what the current directory is when the program try to load the dll... current directory is searched normally as first thing.

i think i've terminated th possible suggestions.

L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
  • Comment on Re^3: Invalid Access to Memory location using DynaLoader - crosspost
  • Download Code

Replies are listed 'Best First'.
Re^4: Invalid Access to Memory location using DynaLoader - crosspost
by MattN (Novice) on Dec 10, 2015 at 20:26 UTC

    Sorry about the cross posting. I asked the ifeffit mailing list a while ago about this problem and it didn't occur to me to link to the online archive.

    I was having trouble getting Process Explorer to work yesterday and I just figured out what I was doing wrong and it turns out that I need administrative privileges to run it, which I don't have, so I will ask the IT department about running it.

    I have tried moving the .dll file around to different directories. If it can't find the file it gives the error:

    Can't locate loadable object for module Ifeffit in @INC (@INC contains: C:/demeter/perl/site/lib/MSWin32-x64-multi-thread C:/demeter/perl/site/lib C:/demeter/perl/vendor/lib C:/demeter/perl/lib .) at (eval 18) line 1.

    And if it is in a directory listed in @INC, it gives the same invalid access to memory location error.

    Thanks for the help, I appreciate it.