DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

MKL and DftiCreateDescriptor under DIAdem using GPI

Dear Board!
 
I dont know whether this is a problem with DIAdem or the MKL, but combining both, I get a problem.
 
I am using a GPI-Dll to add some mathematical functionality to DIAdem. One of the function uses a call to DftiCreateDescriptor, which is the first function to call when doing an fft with the MKL. Unfortunately, an Exception occurs at this point and the execution terminates and returns to DIAdem, which also reports the error.
 
The error reported in DIAdem looks like this:
 
184  15:18:54 Error:
     Error in <NoName(1).VBS> (Line: 17, Column: 1):
     Error while executing "GETFREQ("file://d:/compressed/test.abc",0.5)" command
     Error type: ACCESS VIOLATION
     Error address: 004874A7
     Module name:mydll.dll
 
In a Debugger, I saw that the funciton gets called, but the error only ocurs when creating the descriptor.
 
Best regards,
diadev
0 Kudos
Message 1 of 2
(3,861 Views)

And problem solved..

I had to build a custom MKL dll. Statically linking is not allowed for .dlls. Which was not a problem at all when calling the code from other applications.. but anyway, it should not have been possible in the first place, and I can live with this.

So: custom build an MKL dll for dynamic linking to your dynamic dll and everything should be fine.

0 Kudos
Message 2 of 2
(3,855 Views)