View Single Post
  #11  
Old 06-08-2006, 07:44 PM
realtytrac realtytrac is online now
Registered User
 
Join Date: 04-17-2006
Posts: 16
Look at this link. I think it may help:

http://msdn2.microsoft.com/en-us/library/ms164911.aspx



An access violation occurs in unmanaged or unsafe code when it attempts to read or write to memory that has not been allocated, or to which it does not have access. Not all reads or writes through bad pointers lead to access violations, so an access violation usually indicates that several reads or writes have occurred through bad pointers, and that memory might be corrupted.

In managed code, all references are either valid or null. Any operation that attempts to reference a null reference in verifiable code throws NullReferenceException.

An access violation that occurs in unsafe managed code can be expressed as either a NullReferenceException or a AccessViolationException, depending on the platform.
Reply With Quote