Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / AccessViolationException.cs / 1 / AccessViolationException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: AccessViolationException
**
**
** Purpose: Exception class representing an AV that was deemed unsafe and may have corrupted the application.
**
**
=============================================================================*/
namespace System
{
using System;
using System.Runtime.Serialization;
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable()]
public class AccessViolationException : SystemException
{
public AccessViolationException()
: base(Environment.GetResourceString("Arg_AccessViolationException"))
{
SetErrorCode(__HResults.E_POINTER);
}
public AccessViolationException(String message)
: base(message)
{
SetErrorCode(__HResults.E_POINTER);
}
public AccessViolationException(String message, Exception innerException)
: base(message, innerException)
{
SetErrorCode(__HResults.E_POINTER);
}
protected AccessViolationException(SerializationInfo info, StreamingContext context) : base(info, context) {}
#pragma warning disable 169 // Field is not used from managed.
private IntPtr _ip; // Address of faulting instruction.
private IntPtr _target; // Address that could not be accessed.
private int _accessType; // 0:read, 1:write
#pragma warning restore 169
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: AccessViolationException
**
**
** Purpose: Exception class representing an AV that was deemed unsafe and may have corrupted the application.
**
**
=============================================================================*/
namespace System
{
using System;
using System.Runtime.Serialization;
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable()]
public class AccessViolationException : SystemException
{
public AccessViolationException()
: base(Environment.GetResourceString("Arg_AccessViolationException"))
{
SetErrorCode(__HResults.E_POINTER);
}
public AccessViolationException(String message)
: base(message)
{
SetErrorCode(__HResults.E_POINTER);
}
public AccessViolationException(String message, Exception innerException)
: base(message, innerException)
{
SetErrorCode(__HResults.E_POINTER);
}
protected AccessViolationException(SerializationInfo info, StreamingContext context) : base(info, context) {}
#pragma warning disable 169 // Field is not used from managed.
private IntPtr _ip; // Address of faulting instruction.
private IntPtr _target; // Address that could not be accessed.
private int _accessType; // 0:read, 1:write
#pragma warning restore 169
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EventLogPermission.cs
- InternalEnumValidator.cs
- ImageDrawing.cs
- ActivityExecutionFilter.cs
- ManagementEventArgs.cs
- EventPropertyMap.cs
- SafeHandles.cs
- SimpleLine.cs
- Block.cs
- ByteStream.cs
- DbDataReader.cs
- PointAnimationUsingPath.cs
- SQLInt32.cs
- ResourceIDHelper.cs
- MyContact.cs
- XamlSerializerUtil.cs
- WS2007HttpBindingElement.cs
- AutoGeneratedFieldProperties.cs
- CachedFontFamily.cs
- DesignerOptionService.cs
- UserUseLicenseDictionaryLoader.cs
- ParallelTimeline.cs
- TextRenderer.cs
- CellIdBoolean.cs
- QuerySelectOp.cs
- Perspective.cs
- DataStreams.cs
- CompositeControl.cs
- BasicHttpMessageCredentialType.cs
- CellParagraph.cs
- TreeNode.cs
- BinaryReader.cs
- ExecutionContext.cs
- WindowsPrincipal.cs
- GroupItemAutomationPeer.cs
- TCPListener.cs
- SystemResourceHost.cs
- HyperLinkStyle.cs
- ClientScriptItemCollection.cs
- CompositeActivityTypeDescriptor.cs
- EtwTrackingBehaviorElement.cs
- FixedPageStructure.cs
- HtmlWindowCollection.cs
- XmlSchemaElement.cs
- ContentPropertyAttribute.cs
- PathNode.cs
- AutoFocusStyle.xaml.cs
- DesignRelationCollection.cs
- ByteStream.cs
- InheritablePropertyChangeInfo.cs
- Configuration.cs
- SignedInfo.cs
- SqlFormatter.cs
- ErrorHandler.cs
- PenContexts.cs
- CapabilitiesUse.cs
- SoapIgnoreAttribute.cs
- DataGridViewCellFormattingEventArgs.cs
- IdentityVerifier.cs
- TypeLoadException.cs
- RecordBuilder.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- BevelBitmapEffect.cs
- GetRecipientListRequest.cs
- ThumbAutomationPeer.cs
- SecurityElement.cs
- BitHelper.cs
- dbdatarecord.cs
- DecimalFormatter.cs
- MouseButtonEventArgs.cs
- VirtualPathUtility.cs
- SessionStateContainer.cs
- AutoFocusStyle.xaml.cs
- PropertyStore.cs
- TagMapInfo.cs
- Math.cs
- FlagsAttribute.cs
- PartitionResolver.cs
- TimeStampChecker.cs
- EncryptedPackageFilter.cs
- ManifestBasedResourceGroveler.cs
- SemanticValue.cs
- Guid.cs
- Translator.cs
- SchemaElementDecl.cs
- ToolStripSeparator.cs
- MetadataPropertyAttribute.cs
- _Semaphore.cs
- _BufferOffsetSize.cs
- Comparer.cs
- AssociationEndMember.cs
- Context.cs
- Queue.cs
- HwndSubclass.cs
- baseaxisquery.cs
- SafeFileMappingHandle.cs
- WindowsContainer.cs
- RegexGroupCollection.cs
- initElementDictionary.cs
- Visitor.cs