首页 \ 问答 \ Win32:如何崩溃?(Win32: How to crash?)

Win32:如何崩溃?(Win32: How to crash?)

我试图找出Windows错误报告保存的位置; 我今天早些时候点击发送 ,但我忘了我想“查看细节”,所以我可以检查内存小转储。

但我找不到他们存储在哪里(和谷歌不知道)。

所以我想编写一个虚拟应用程序,它会崩溃,显示WER对话框,让我点击“查看详细信息”,以便我可以到达保存转储的文件夹。

我如何在Windows上崩溃?

编辑:我问的原因是因为我已经尝试溢出堆栈,并将浮点除以零。 堆栈溢出使应用程序消失,但没有WER对话框弹出。 浮点除零的结果是+ INF,但没有例外,也没有崩溃。


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).

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.

How can i crash on Windows?

Edit: 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.


原文:https://stackoverflow.com/questions/2730447
更新时间:2019-10-16 04:38

最满意答案

应该是一个好的开始:

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

Should be a good start:

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

相关问答

更多

去 - 解析不是“标准”格式的日期/时间字符串(Go - Parsing date/time strings which are not 'standard' formats)

有一些关键的值,时间.Parse正在寻找。 通过改变: test, err := time.Parse("10/15/1983", "10/15/1983") 至 test, err := time.Parse("01/02/2006", "10/15/1983") 解析器将会识别它。 这是操场上修改的代码 。 package main import "fmt" import "time" func main() { test, err := time.Parse("01/02/

如何使用javascript注入一个大的html代码点击按钮?(How can I inject a large html code onclick of a button using javascript?)

HTML <div id="form-container"> </div> <button id ="get-form" onclick="getForm()">Get Form</button> 使用Javascript <script> var form = '<form> <h1>form title</h1> </form>'; function() { document

从double到int的可能有损转换(Possible lossy conversion from double to int)

将用作数组索引的所有变量从double更改为int(即变量j , first , i )。 数组索引是整数。 Change all your variables used as array indices from double to int (i.e. the variables j, first, i). Array indices are integer.

Python中的模块化编译器(Modular Compiler in Python)

您想使用像stevedore这样的现有插件库。 它将为您提供枚举可导入文件的工具,以及导入这些模块的工具。 You want to use an existing plugin library like stevedore. It will give you the tools to enumerate files that can be imported, and tools to import those modules.

如何在Objective-C中使用本地静态对象?(How to use local static object in Objective-C?)

我希望我没有遗漏任何东西,但这就是我使用它的方式: - (void)foo { static NSMutableArray *mutableArr = nil; if (mutableArr == nil) { mutableArr = [[NSMutableArray alloc] init...]; // add more first time initialization as required } assert(mutabl

UTF16十六进制到文本(UTF16 hex to text)

没错,Postgres不支持UTF-16。 但是,它确实支持Unicode转义序列 : SELECT U&'\0633\0644\0627\0645' 但请记住, Unicode代码点和UTF-16代码单元仅在Basic Multilingual Plane中是等效的。 换句话说,如果您有任何跨越多个16位代码单元的UTF-16字符,则需要自己将它们转换为相应的代码点。 That's right, Postgres doesn't support UTF-16. However, it doe

Arch Linux中没有OpenGL 3标头(No OpenGL 3 headers in Arch Linux)

你不需要GL3.h,GL3.h只是摆脱了所有弃用的功能。 所以只需要包含gl.h而不是gl3.h 下载和手动copyieng到/usr/include/GL/不是一个真正的解决方案,它的工作原理是肯定的,但如果添加到mesa包中的gl3.h怎么gl3.h ? 你是包经理会发现冲突。 最好将gl3.h添加到项目或主目录中,并将其添加到$ PATh或使用-I标志。 You don't need a GL3.h, the GL3.h just got rid of all deprecated fea

如何打破破折号?(How to word-break on a dash?)

用以下替换你的连字符: &shy; 它被称为“软”连字符。 div { width: 150px; } <div> 12333&shy;2333&shy;233&shy;23339392&shy;332332323 </div> Replace your hyphens with this: &shy; It's called a "soft" hyphen. div { width: 150px; } <div> 12333&shy;2333&shy;233&

相关文章

更多

最新问答

更多
  • 在svg - gstatic urls中嵌入'Open Sans'字体(Embedding 'Open Sans' font in svg - gstatic urls)
  • 停止python线程等待popen?(stopping a python thread waiting for popen?)
  • Julia:如何从文本文件导入图形(csv具有不等数量的'列')?(Julia: How to import a graph from text file (csv with unequal number of 'columns')?)
  • 在另一个插件中使用qgis核心插件(Useage of qgis core plugin in another plugin)
  • jQuery .get缓存工作得太好了?(jQuery .get caching working too well?)
  • Gameplay3D gameplay :: TimeListener(Gameplay3D gameplay::TimeListener)
  • 获取ItemDataBound中的行数(Get row count in ItemDataBound)
  • NHibernate SchemaExport(config).Create(false,true)不会使用SQL Server 2014 LocalDB创建数据库架构(NHibernate SchemaExport(config).Create(false, true) does not create DB Schema with SQL Server 2014 LocalDB)
  • 列出迭代器失效(List iterator disfunctionality)
  • 列出多个变量的理解(List comprehension with multiple variables)
  • 如何在asp.net MVC5中显示锁定结束时间(How to Display locking end time in asp.net MVC5)
  • 在android中的ImageView上显示TextView(Display TextView over ImageView in android)
  • 64位sharemem.pas / borlndmm.dll XE2(64-bit sharemem.pas/borlndmm.dll XE2)
  • 为什么分离和追加比直接更改html更有效?(Why is detaching and appending more efficient than changing html directly?)
  • Eclipse将“排序成员”设置保存到repo(Eclipse Saving “Sort members” settings to repo)
  • 当我查看最近标记的instagram API时,为什么帖子似乎会改变(why do the posts seem to change when i look at the recent tagged instagram API)
  • 使用php邮件功能发送电子邮件 - 变慢[关闭](Sending email using php mail function - Getting slow [closed])
  • Web服务器可以写入登录用户的屏幕吗?(Can a web server write to a logged-in user's screen?)
  • CFNetwork匿名密码?(CFNetwork Anonymous Ciphers?)
  • 更快的算法来计算一个范围内的特定整数可以分割多少个数字(Faster algorithm to count how many numbers are divisible by a specific integer in a range)
  • 用于散点图的Matplotlib FuncAnimation(Matplotlib FuncAnimation for scatter plot)
  • Gradle:Manifest merge更改AndroidManifest文件中“theme”参数的值:(Gradle: Manifest merge changes the value for the “theme” parameters in the AndroidManifest file:)
  • 如何在属性中渲染cms / static块(How do I render cms/static blocks in an attribute)
  • Javascript显示错误和页面重新加载问题(Javascript display error and page reload problems)
  • android官方固件签名(android official firmware signature)
  • 在这种情况下,有比eval()更好的方法吗?(Is there a better way than eval() in this scenario?)
  • primefaces commandbutton actionlistener未调用(primefaces commandbutton actionlistener not called)
  • C将指针传递给堆栈上的数组(C passing a pointer to an array on the stack)
  • 简单的产品内部可配置产品(Simple product inside configurable product)
  • nhibernate HbmMapping到Xml(nhibernate HbmMapping to Xml)