{"action":"closed","issue":{"url":"https://api.github.com/repos/sharpdx/SharpDX/issues/560","labels_url":"https://api.github.com/repos/sharpdx/SharpDX/issues/560/labels{/name}","comments_url":"https://api.github.com/repos/sharpdx/SharpDX/issues/560/comments","events_url":"https://api.github.com/repos/sharpdx/SharpDX/issues/560/events","html_url":"https://github.com/sharpdx/SharpDX/issues/560","id":60406758,"number":560,"title":"AccessViolationException when setting data to RenderTarget2D","user":{"login":"thes3m","id":1736497,"avatar_url":"https://avatars.githubusercontent.com/u/1736497?v=3","gravatar_id":"","url":"https://api.github.com/users/thes3m","html_url":"https://github.com/thes3m","followers_url":"https://api.github.com/users/thes3m/followers","following_url":"https://api.github.com/users/thes3m/following{/other_user}","gists_url":"https://api.github.com/users/thes3m/gists{/gist_id}","starred_url":"https://api.github.com/users/thes3m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thes3m/subscriptions","organizations_url":"https://api.github.com/users/thes3m/orgs","repos_url":"https://api.github.com/users/thes3m/repos","events_url":"https://api.github.com/users/thes3m/events{/privacy}","received_events_url":"https://api.github.com/users/thes3m/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-09T20:44:02Z","updated_at":"2015-04-01T23:36:56Z","closed_at":"2015-04-01T23:36:56Z","body":"Hi, our game sometimes crashes when setting data to RenderTexture2D in SharpDX.Toolkit (2.6.3). The issue is non repeatable and occurrs at random time mostly when pressing power button on WindowsPhone 8.0, and WinRT. \r\nHere is the stack trace:\r\n```C#\r\n$exception\t{System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.}\tSystem.Exception {System.AccessViolationException}\r\n\r\n \t[Managed to Native Transition]\t\r\n \tSharpDX.Direct3D11.DLL!SharpDX.Direct3D11.DeviceContext.UpdateSubresource(SharpDX.Direct3D11.Resource dstResourceRef, int dstSubresource, SharpDX.Direct3D11.ResourceRegion? dstBoxRef, System.IntPtr srcDataRef, int srcRowPitch, int srcDepthPitch)\tUnknown\r\n \tSharpDX.Direct3D11.DLL!SharpDX.Direct3D11.DeviceContext.UpdateSubresource(SharpDX.DataBox source, SharpDX.Direct3D11.Resource resource, int subresource)\tUnknown\r\n \tSharpDX.Toolkit.Graphics.DLL!SharpDX.Toolkit.Graphics.Texture.SetData(SharpDX.Toolkit.Graphics.GraphicsDevice device, SharpDX.DataPointer fromData, int arraySlice, int mipSlice, SharpDX.Direct3D11.ResourceRegion? region)\tUnknown\r\n \tSharpDX.Toolkit.Graphics.DLL!SharpDX.Toolkit.Graphics.Texture.SetData<byte>(SharpDX.Toolkit.Graphics.GraphicsDevice device, byte[] fromData, int arraySlice, int mipSlice, SharpDX.Direct3D11.ResourceRegion? region)\tUnknown\r\n \tSharpDX.Toolkit.Graphics.DLL!SharpDX.Toolkit.Graphics.Texture.SetData<byte>(byte[] fromData, int arraySlice, int mipSlice, SharpDX.Direct3D11.ResourceRegion? region)\tUnknown\r\n```"}}