且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

未知的软件异常(0xc0000008)

更新时间:2021-08-10 02:56:50

我经常看到应用程序在Debug模式下工作,而不在Release模式下工作.很多时候,问题出在某处的缓冲区溢出.调试通常允许一些内存溢出(通过分配额外的内存)而不会崩溃,从而使开发人员能够在不立即崩溃的情况下对应用程序进行故障排除.
I''ve commonly seen applications work in Debug mode and not work as Release. A lot of times the problem is a buffer overflow somewhere. Debug usually allows some memory overflow (by allocating extra memory) without crashing to allow the developer to be able to troubleshoot the application without crashing immediately.


[rant]我讨厌 [ http://en.wikipedia.org/wiki/Stack_overflow [ ^ ])
[rant]I hate answers like that[^]. If you don''t know. Don''t answer[/rant]

There are several possibilities for culprits for this one, Varsha.
It''s not specific to a Service Application. It normally happens on Exit of the application. So, therefore, it''s most likely something to do with memory allocation and object disposing.

If you know exactly where this is occurring, you can try disposing the object yourself before exiting. If you don''t know what object or where this is happening, you can handle the error in general and try get some more info about its location.

Also, this could be due to an array that is bigger than its original size that has overwritten something else in memory (If you know of any dodgey arrays in your code, check those).

Another idea could be a Stack Overflow (http://en.wikipedia.org/wiki/Stack_overflow[^])


为什么不能你看微软吗?
Why can''t you look at Microsoft? Click here.