This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CaptureDumpFileOnDevice returns false with error code ERROR_NOT_SUPPORTED

Hello,

I am an embedded software engineer working on a Windows Embedded compact 7 device. I would like to be able to generate a dump file whenever I want. I am trying to use CaptureDumpFileOnDevice to get a dump file whenever my application throws an exception. I have Dr.Watson enabled in the sysgen without the GUI like in a headless configuration. My first problem was that CaptureDumpFileOnDevice was not in any header file definitions. To solve that I used LoadLibrary and GetProcAddress on Coredll.dll. This all works great and I get a valid function pointer. When I call the function it returns false and GetLastError() return 0x32 ERROR_NOT_SUPPORTED.

Looking at the source code in apis.c. I see comments relating to a module called OsAxsT0.dll. Apparently this modules is supposed to catch the RaiseException call and handle it. This is not happening and I have no idea why. I can see the dll in my windows folder.

I have used Dr.Watson dump files before on this platform. They were generated automatically by the OS during a crash. So I am certain that it works, just not manual invocation.

Any ideas on where to proceed from here? I'm not exactly an expert in building WinCE and most of the work was done by other developers.

Platform is Windows Embedded Compact 7 on the AM335x Sitara processor using the Adeneo AM335x BSP.

edit: A little bit of follow up information. I tried a LoadLibrary on osaxst0.dll and it fails to load. Running dependency walker shows no dependencies besides Coredll.dll (which is already loaded). I can't figure out why that would fail but it seems to be the root of the problem.

Regards

-Mike