access-violation Questions
9
I am working on a C# application that would display live images from a camera.
The problem I am facing with the following code snippet is that, I get AccessViolationException in Marshal.Copy when r...
Beyrouth asked 24/3, 2009 at 10:29
3
I'm looking for common causes of Access Violation errors under .NET.
Things I have checked so far -
Call Dispose on all objects implementing IDisposable
Check for valid arguments in calls to COM...
Sheer asked 8/2, 2009 at 23:27
2
I found some code from another StackOverflow answer for discovering a file's MIME type based on what's read from the first few bytes of the file. The code refers to an unmanaged method in an extern...
Bole asked 19/6, 2014 at 22:16
2
I have a huge problem and I actaully thought that I solved it. I have an application that uses the QNetworkAccessManager. This QNAM is located in a class. When I perform requests on this QNAM all o...
Gallipot asked 3/5, 2012 at 22:54
14
Solved
I've started seeing an AccessViolationException being thrown in my application a several different spots. It never occured on my development pc, our test server. It also only manifested itself on 1...
Sidecar asked 27/2, 2009 at 20:7
2
Am working on VC++ Console Application.
This application sends a file from Appdata\Roaming folder for a period of time.
What happens is am getting this Crash error :
Problem signature:
Problem E...
Cuman asked 18/6, 2013 at 12:33
4
Solved
I'm working on a C++ application to read some data from an Excel file. I've got it working, but I'm confused about one part. Here's the code (simplified to read only the first cell).
//Mostly copi...
Enceladus asked 16/4, 2010 at 14:44
3
Solved
Related to this question, I would like to force CLR to let my .NET 4.5.2 app catch Corrupted State Exceptions, for the sole purpose of logging them and then terminating the application. What's the ...
Earthward asked 10/10, 2016 at 10:25
5
Our application experiences the odd fatal System.AccessViolationException. We see these as we've configured the AppDomain.CurrentDomain.UnhandledException event to log the exception.
Exception: Sy...
Shirr asked 27/2, 2011 at 15:16
3
Solved
I'm trying to learn Vulkan by following the great tutorials from vulkan-tutorial.com but I'm having some trouble at the point where I must create the swap chain. As stated in the title, the vkCreat...
Mooneyham asked 12/3, 2019 at 22:10
4
Solved
I am developing an application that is supposed to run for long periods and make extensive usage of an Oracle (11g) database via ODP.NET.
It happens, though, that once in a while (every 2 or 3 day...
Sloane asked 1/7, 2011 at 15:50
2
Solved
How to intentionally crash an application with an AccessViolationException in c#?
I have a console application that use an unmanaged DLL that eventually crashes because of access violation excepti...
Strader asked 30/5, 2019 at 21:14
3
Solved
It is said that often (but not always) when you get an AV in a memory location close to zero (like $89) you have an uninitialized pointer.
But I have seen this also in Delphi books... Hm... or they...
Cyclostome asked 7/2, 2019 at 9:39
0
How can I prevent an entire application (process) crash when AccessViolationException (or another Corrupted State Exception) is thrown in an AppDomain in .NET 4.6? My goal is to wrap a 3rd party li...
Fenny asked 16/10, 2018 at 19:58
3
Solved
I am getting this weird error while trying to marshal data to my DLL function and back to the C# code. I don't see where I am passing null or reading invalid memory and this error is so vague. Any ...
Lanna asked 27/2, 2010 at 1:57
5
I have a simple program and I get access violation at *(str + start). Why? I should be able to change it. Right?
void fn()
{
char *str = "Hello wordl!";
int end = strlen(str);
int start = 0;
e...
Selfservice asked 16/3, 2009 at 21:7
4
Solved
What tips can you share to help locate and fix access violations when writing applications in Delphi?
I believe access violations are usually caused by trying to access something in memory that ha...
Contraption asked 2/6, 2011 at 12:24
2
Solved
I'm investigating a dump, caused by an access violation.
On that particular line of code, there is the following line:
if (internal_map.find(uiElemKey) == internal_map.end() ||
internal_map[uiEl...
Automatic asked 25/7, 2018 at 8:35
2
I'm encountering a realy strange behaviour when using Linq in my .Net Core 2.0, ASP.Net react project:
When accessing a field of an object which gets instantiated inside an Linq "Select" selector,...
Kwangtung asked 9/7, 2018 at 20:41
3
Solved
I'm having a very strange issue with a space invaders game I'm working on. Basically I get an access violation error:
Unhandled exception at 0x5edad442 (msvcr100d.dll) in
SpaceInvaders.exe: 0xC...
Hiram asked 7/5, 2012 at 8:28
1
Solved
This is a little complex, but I'll try and explain clearly.
I have a class library for common code components; and I tried to make some common ConfigurationHandler base classes, to simplify creati...
Meris asked 16/2, 2018 at 10:14
6
My client wanted to have a textbox in the Customer form of the application, which offers the applicable endings to a started street name. He starts to type a street name and the textbox offers a li...
Varrian asked 8/1, 2012 at 17:22
2
I am using COM interop for creating a managed plugin into an unmanaged application using VS2012/.NET 4.5/Win8.1. All the interop stuff seems to be going ok, but when I close the app I get an MDA ex...
Monkhood asked 4/12, 2013 at 9:37
3
Solved
Specifically, is the following code, the line below the marker, OK?
struct S{
int a;
};
#include <stdlib.h>
int main(){
struct S *p;
p = malloc(sizeof(struct S) + 1000);
// This line:
...
Reid asked 10/11, 2017 at 13:41
8
Solved
Can accessing (for read only) memory freed cause an access violation, and, if so, under what circumstances?
Leicestershire asked 18/10, 2009 at 8:48
1 Next >
© 2022 - 2024 — McMap. All rights reserved.