Commit c1cb48fd authored by Jan Möbius's avatar Jan Möbius

Write windows crash dump to config directory crash dump file

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17430 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 42b1968f
......@@ -89,13 +89,19 @@
#ifdef WIN32
#include "StackWalker/StackWalker.hh"
#include <fstream>
class StackWalkerToConsole : public StackWalker
{
protected:
virtual void OnOutput(LPCSTR szText)
{
printf("%s",szText);
// Writes crash dump to .OpenFlipper config directory
std::ofstream crashFile;
QString crashName = OpenFlipper::Options::configDirStr() + QDir::separator() + "CrashDump.txt";
crashFile.open(crashName.toStdString(),std::ios::out | std::ios::app);
crashFile << szText;
crashFile.close();
}
};
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment