There several type of crashes in IIS :
1. Access Violation
2. Unhandled Exception
3. Stack Overflows
4. Stack Corruption
1. Access Violation
Caused when code tries to access region of memory or object that are either not there (not allocated) or has protection set on it. Example :
_________
object 1
_________
null ---> you try to get this object in index-2
_________
object 1
_________
if you want to access some object in ArrayList, while the object already unallocated. It will make your application crash.
2. Unhandle Exception
when you are not handling some exception and the exception not throwed by application.
3. Stack Overflow
when you have a recursive function, if some data not complete or this recursive function not well designed, it would make looping forever, it will make stack overflow and you will get (in .net 1.1) System.OutOfMemoryException. Bottleneck also can raise stack Overflow
4. Stack Corruption
When code writes beyond a buffer on the stack and overwrites other value on the stack
This is some trouble that i found in project. I hope we more carefull to wrote code so this problem would not rise in production anymore. Hope so.
No comments:
Post a Comment