Win32:如何崩溃? [英] Win32: How to crash?

查看:34
本文介绍了Win32:如何崩溃?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想弄清楚 Windows 错误报告的保存位置;我今天早些时候点击了发送,但我忘了我想查看详细信息",以便我可以检查内存小型转储.

i'm trying to figure out where Windows Error Reports are saved; i hit Send on some earlier today, but i forgot that i want to "view the details" so i can examine the memory minidumps.

但我找不到它们的存储位置(谷歌也不知道).

But i cannot find where they are stored (and google doesn't know).

所以我想编写一个会崩溃的虚拟应用程序,显示 WER 对话框,让我点击查看详细信息",这样我就可以进入保存转储的文件夹.

So i want to write a dummy application that will crash, show the WER dialog, let me click "view the details" so i can get to the folder where the dumps are saved.

我如何在 Windows 上崩溃?

How can i crash on Windows?

我问的原因是因为我尝试过溢出堆栈,并且浮点数除以零.Stack Overflow 使应用程序消失,但没有弹出 WER 对话框.浮点除以零导致 +INF,但没有例外,也没有崩溃.

The reason i ask is because i've tried overflowing the stack, and floating point dividing by zero. Stack Overflow makes the app vanish, but no WER dialog popped up. Floating point division by zero results in +INF, but no exception, and no crash.

推荐答案

应该是一个好的开始:

int main(int argc, char* argv[])
{
   char *pointer = NULL;
   printf("crash please %s", *pointer);
   return 0;
}

这篇关于Win32:如何崩溃?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆