When you’re developing and configuring Platform components in a Windows environment, if a component fails, you may need to obtain a crash dump to help you (or Caplin Support) diagnose the problem. This is a more complicated process than obtaining crash dumps in Linux, so here we explain one way to do it.
This procedure only works if you’re running the Caplin Deployment Framework under the Git Bash shell (see Installing the Deployment Framework). You can’t obtain Windows crash dumps this way if the Deployment Framework is running under Cygwin.
|This procedure uses a utility (procdump) that alters the Windows registry on your PC, so it may not be suitable, or may not work at all, if your PC is "locked down" for security purposes.|
Follow the steps below:
Before you run any of the Platform components, set up your Windows installation to generate crash dumps:
Download the procdump utility.
This is a free Windows command-line utility for (amongst other things) generating crash dumps. It’s available from various web sites, such as Windows Sysinternals.
Run procdump from a Windows command window:
procdump -ma -i c:\dumps
c:\dumpsis the folder where you want crash dump files to go. (
C:\dumpsis just an example; you can specify any convenient path.)
This command registers procdump as the Just-in-Time (AeDebug) debugger.
Now you can start the Platform components:
If a crash occurs:
Find the latest
.dmpfile in the dump location you previously specified in the procdump command.
If you’ve asked Caplin Support to investigate the crash, send them the
.dmp file, together with the log files of the component that crashed.
If you want to examine the
.dmpfile yourself, you’ll need Microsoft Visual Studio. You can load the file into Visual Studio by double clicking on it. (Don’t use File > Open because it’ll open the file as a text file.)
To see the dumped stack information, select the Debug Start button.