I'm trying to use MKL to replace existing Levenberg-Marquardt fitting using MINPACK or MPFit. As a test case, I'm fitting a Gaussian function. Things work pretty well, except that my program crashes at the final MKL_FreeBuffers call. I don't know if this is an MKL problem, as this crash occurs even when I comment out that MKL_FreeBuffers call.
I've pasted part of my code here: http://pastebin.com/SXuQ8egA - if more of the code would be helpful, I'll upload it. It's just a rather large codebase to ask you to crawl through.
I had a few questions, just to make sure I'm not doing anything dumb:
For reference, I'm using VS2008, x64 and MKL 10.3.1.
Thanks for any tips...