I am a new user of MKL, and I'm using pardiso to factor a real nonsymmetric matrix. I've successfully run the sample program for this case, and I'm trying to do exactly the same thing, except my calls to pardiso are from a DLL instead of from an EXE. The first call with phase=11 seems to go without trouble and error=0. Then I call pardiso with phase=22 and I get a crash with an "unhandled exception. . . access violation" message.
Does calling pardiso from a DLL require doing anything differently than from an EXE?