Compile with "gdb" information ... and run the exe through "gdb" (provided by MinGW packages)
For linux I have this shell script which I let bmk execute (modified bmk) when I experience random segfaults the blitzmax debugger does not catch (so something in the C code):
#!/bin/bash
ulimit -c unlimited
"$@"
if [[ $? -eq 139 ]]; then
BASEDIR=$(dirname "$0")
gdb -q $1 core -x "$BASEDIR/segfaultwrapper_gdbcommands.txt"
fi
Maybe you could simply provide something similar as "debug.bat" together with a "gdb.exe" (dunno if it has any dependencies ...).
You might be able to output the backtrace into a file.
bye
Ron