Saving a crash dump in Add-In

Has anyone used crash dumps for their add-ins?  Can you provide an explanation on how you did it?

I've tried this by importing MiniDumpWriteDump from dgbhelp.dll and calling it on an exception to help debug a problem on a remote machine.  All seems to work except the stack trace in the dump brings me to ntdll.dll and doesn't actually represent the state of the addin where I saved the dump.

Any ideas?  Or alternatives to this?

Thanks!

SolidworksApi macros