access-violation Questions
1
I have a Microsoft visual studio application that is grabbing frames from cameras and I am trying to display those frames in a Qt application. I am doing some processing with the frames using OpenC...
Persimmon asked 10/7, 2017 at 13:21
2
Solved
I'm in c# for quite a long time, but I never got this kind of error. First of all, do you see anything wrong(possibly wrong) about this single code block (except it's logic of course, I know it alw...
Agustin asked 3/12, 2014 at 21:7
1
Solved
I have a .NET 4 Application written as a Windows Service, that includes unmanaged components, and is printing an AccessViolationException to my log4net logs, but is not crashing the application. Ev...
Antigua asked 7/9, 2016 at 20:55
2
Not always but now and then i keep getting the below error, it doesn't effect me much "I think" but i would like to know the reason behind this and how i can solve it. i have tried disposing the co...
Scroggins asked 17/3, 2017 at 14:13
2
In C++, is there a standard way (or any other way, for that matter) to catch an exception triggered by a memory access violation?
For example, if something went wrong and the program tried to acce...
Firenew asked 17/5, 2013 at 15:10
3
Solved
I have a C++ client to a C++/CLI DLL, which initializes a series of C# dlls.
This used to work. The code that is failing has not changed. The code that has changed is not called before the excepti...
Mulder asked 2/12, 2016 at 22:12
1
Solved
On AMD64 compliant architectures, addresses need to be in canonical form before being dereferenced.
From the Intel manual, section 3.3.7.1:
In 64-bit mode, an address is considered to be in can...
Descent asked 16/8, 2016 at 14:35
5
Solved
I'm attempting to call the following trivial C function from C#:
SIMPLEDLL_API const char* ReturnString()
{
return "Returning a static string!";
}
With the following P/Invoke declaration (with ...
Evvy asked 9/6, 2011 at 22:33
2
Solved
It is really interesting that the following C# code will crash on .NET4.0 but work fine on .NET2.0.
C# code
class Program
{
static void Main(string[] args)
{
try
{
ExceptionTest();
Console....
When asked 25/9, 2012 at 10:38
2
Solved
I am trying to catch all unhandled exceptions in my application so I can save a log file when they occurr. This is a 64-bit Windows application compiled using Visual Studio 2013, written in C++. Fo...
Sangsanger asked 9/10, 2015 at 11:30
1
Solved
Application/Code description:
My application is based on c# and uses SQL Server CE and iv'e got this exception only twice at the same code location. the crash with this exception was not introduce...
Turner asked 31/8, 2015 at 8:47
2
Solved
I have an issue I am having trouble with and hope somebody here can help.
We use somewhat modified code from this OutlookDataObject project to handle files dropped from various mail clients like o...
Adductor asked 27/11, 2014 at 15:14
1
I'm attempting to use Steve Sanderson's blog post in order to edit a variable length list in my ASP MVC 3 view. The project builds fine, however whenever the partial view is rendered the program bl...
Penguin asked 2/5, 2014 at 22:16
1
Solved
I have a C++ DLL for use from C#. I have a function which takes a string passed to it, and I have those set on the C++ function parameters as const char * like so:
int __stdcall extract_all_frames...
Cyst asked 9/12, 2014 at 19:11
1
a bit confused as to why I'm having an issue. It's taken me sometime but having broken the issue down to it's simplest case I get the following strange (to my eyes anyway) behaviour.
I have a base...
Beforetime asked 27/10, 2014 at 11:28
2
Solved
I'm trying to load an image with DevIL and then create a texture. I have a class named Texture, and I'm doing all this stuff in the constructor. A valid context has been created. I'm getting an acc...
Civic asked 27/10, 2014 at 14:23
1
Solved
Using: MSVS2012
Code
elemalg.h
#include <vector>
#include <string>
#include <fstream>
class ElemAlg
{
private:
std::string difficultlyLevel, question, answerToRead;
std::vecto...
Mammillary asked 20/10, 2014 at 14:45
7
Solved
I have a c# (.net 4.0) winforms application that runs pretty much every week day, 8 hours a day, on an XP SP 3. It works fine most of the time, sometimes for months. Then it seems to get in a bad s...
Rosa asked 18/9, 2011 at 1:22
1
I have a std::weak_ptr. Before attempting to use the underlying object, I lock it in order to get a shared_ptr:
auto foo_sharedptr = foo_weakptr.lock();
if (foo_sharedptr != nullptr)
{
// do stuf...
Personality asked 13/8, 2014 at 17:31
1
Solved
I'm puzzled with an occurance of AccessViolationException. It's quite impossible (see answer) to have a clean reproduction but here goes the general idea:
class MyClass
{
public List<SomeType...
Runstadler asked 1/7, 2014 at 14:56
2
We've got the problem that sometimes an AccessViolationException occurs and a simple group box gets drawn with white background and a red cross on top of it. We can't reproducable this bug reliably...
Bidwell asked 1/4, 2011 at 7:1
2
Solved
In our Delphi XE4 application we are using an OmniThreadPool with MaxExecuting=4 to improve the efficiency of a certain calculation. Unfortunately we are having trouble with intermittent access vio...
Radiogram asked 28/5, 2014 at 9:1
1
Solved
I'm trying to read a png file using libpng 1.2.10 in vs2013. I downloaded the latest zlib and compiled pnglib, which worked fine. Now I'm trying to load a file:
int *w = &width;
int *h = &...
Scrimshaw asked 31/3, 2014 at 23:41
1
Solved
To put in a nutshell, I have a C# application doing lots of mciSendString calls ( via dllimport ) to control wav files playback ( essentially open, play, pause, stop, status, close ). And after run...
Faint asked 18/4, 2014 at 13:21
2
Solved
Our application (written in C++, VS 2010 project) has been running fine on all operating systems prior to Windows 8 (and still does). On Windows 8, however, when orderly exiting the application, an...
Chromatophore asked 10/4, 2014 at 7:28
© 2022 - 2024 — McMap. All rights reserved.