Questions tagged [access-violation]
An access violation (also known as segmentation fault) is generally an attempt to access memory that the CPU cannot physically address. It is often caused when attempting to access a null reference or a reference to memory that has been freed.
1,515
questions
0
votes
0
answers
22
views
Read Access violation while retaining a dynamic 2d pointer to object array
This is my first time here so I may not convey my problem in efficient way. Sorry for that in advance. So the problem is that I am trying to retain dynamically pointer to object array. As my total no. ...
0
votes
0
answers
93
views
Access violation on component unit on Delphi
Morning ! I got a little probleme here, every time i try to access on apdcomport1 or on timer_com i get a Violation access, on my .exe and at very low adress... i first think of bad declaration of the ...
-1
votes
0
answers
37
views
Buggy behaviour in release (System.AccessViolationException) in C#
I have a multithread code that performs multithreading image processing.
I am using EmguCV (wrapper of OpenCV) as image processing library.
In debug mode, everything works fine and there are no ...
0
votes
0
answers
32
views
Access violation while reading csv file in C
I am writing into a csv file in my code and then reading it from a different function.
Here is the code for writing the file
FILE* fpt1;
errno_t err3;
err3 = fopen_s(&fpt1, "Ay.csv", &...
0
votes
1
answer
104
views
Exception thrown: read access violation. this was nullptr
I'm getting this read access violation error when I try to use one of my functions in my main.cpp file.
Here's my SpriteSheet.cpp file:
#include "SpriteSheet.h"
#include <wincodec.h>
#...
0
votes
0
answers
40
views
Exception thrown when 0x5E25E44B (ucrtbased.dll) in Lampenproblem.exe: 0xC0000005: Access violation when reading at position 0xDDDDDDCD
I tried to create some threads in c++ and while running the program I got a Problem from Visual Studio: Ausnahme ausgelöst bei 0x5E25E44B (ucrtbased.dll) in Lampenproblem.exe: 0xC0000005: ...
1
vote
1
answer
29
views
Scanning data from file into struct resulting in Access Violation Error?
I am writing a basic program that must read and write information from a text file into a structure. The function that dumps all struct information into a text file works, but trying to scan the same ...
3
votes
0
answers
88
views
C# System.AccessviolationException and using GC.Collect
Here is the code sample:
ConcurrentCircularBuffer<byte[]> _cList = new ConcurrentCircularBuffer<byte[]>(10);
private Bitmap getBitmap()
{
byte[] bmpdata = _cList.Dequeue();
if (...
0
votes
0
answers
26
views
In Fortran90, use variable string as file name when opening files for read/write
I am writing code in Fortan90 (Intel fortran in MS Visual Studio 17), where I am trying to use a variable string to open files for read/write. I read a variable length [base name] from an input file, ...
0
votes
0
answers
15
views
Spyder won't start in any environment or standalone
Spyder won't start in any environment or standalone.
In the command window (both conda terminal and cmd ) it doesn't throw any error just silently doesn't work.
When I try to start it by anaconda ...
3
votes
1
answer
29
views
Electron app crashes when storing data to system (app exited with code 3221225477)
I am working on an electron app, and I'm using an the following class implementation to save and retrieve data from the user's disk. Sometimes this functions correctly, however, on occasion the ...
-1
votes
1
answer
46
views
access violation in pointer allocation
I want to put random data into arr (pointer allocation). How can I put data into that dynamic allocation?
typedef unique_ptr<unique_ptr<int[]>[]> uniquePtr;
uniquePtr arr = make_unique<...
0
votes
0
answers
53
views
Access violation when executing ShellCode via CreateThread
I Created an executable that contains a Shell code.
The ShellCode is suppose to execute calc.exe.
I use CreateThread to execute the ShellCode.
The Shellcode is indeed executed and calc.exe spawns.
BUT!...
0
votes
0
answers
20
views
Apparent method call after destruction in olcSoundMaker.h
I couldn't come up with a better title, so feel free to give suggestions.
I tried to follow OneLoneCoder's tutorial on sound synthesizing, I'm only halfway through the first video and my code already ...
0
votes
0
answers
104
views
Handled exception causes an AccessViolationException
I would like to ask for help with a C# API Project, to be more specific, an exception that have been giving issues for some pretty long time now. Currently the projects runs on .NET Core 3.1 and it ...
0
votes
0
answers
38
views
Access violation writing location 0x00DF0024 [duplicate]
Can someone teach me what's the error in my code? The exception is thrown at line ifs >> Acc[i].num_followers;. Am I facing any pointer issues?
#include <iostream>
#include <fstream>
...
0
votes
1
answer
99
views
Delphi 10.3 - Weird DLL behaviour
I have met a really weird behaviour using Delphi and DLL.
I want to learn how to create and use DLL's. To do so, I created two files: one containing the DLL, and the other one calling it.
The DLL ...
1
vote
2
answers
60
views
C++ Lua access violation when table size is above treshold
Recently I became Lua expert in my team due to an issue occurring when we want to send a large table to the following function:
int native_sl_shootlaserpulse(lua_State* L)
{
int iRetVal = 0;
...
1
vote
0
answers
28
views
Visual Stuido C# Access Violation while Using Anviz SDK
I am trying to use "Anviz Original SDK"
i added simple looping to connect multiple devices.
it was running okay if i only run it for 1 times, but in the second (sometimes the third) it keep ...
0
votes
0
answers
82
views
(Firebase) A fatal error has been detected by the Java Runtime Environment: EXCEPTION_ACCESS_VIOLATION (0xc0000005)
I am trying to run jar project that connect to firebase repository. A key file locate in resource dir. The error happens every time when i run it from shell. If I starting in IDEA everything is okay. ...
1
vote
0
answers
51
views
Correctly managing pointers in C++ Quadtree implementation
I'm working on a C++ quadtree implementation for collision detection. I tried to adapt this Java implementation to C++ by using pointers; namely, storing the child nodes of each node as Node pointers (...
0
votes
0
answers
58
views
"Microsoft.Xna.Framework.Graphics.GraphicsDevice.GraphicsDevice" giving me AccessViolationException
So, recently I was following a tutorial on how to make a game with FNA in Visual Studio.
Everything worked fine until I added these four lines of code (in cs):
graphics.PreferredBackBufferWidth = 1280;...
0
votes
0
answers
475
views
How to track down access violation "at address 00000000" in third party software using MadExcept of Sysinternals ProcessMonitor?
Access violation "at address 00000000" started appear to my Delphi 2009 installation. I started ProcessMonitor https://docs.microsoft.com/en-us/sysinternals/downloads/procmon and filtered ...
0
votes
1
answer
146
views
Application.Terminate yields access violation error Delphi 10.3
The Application.Terminate() procedure causes an Access Violation once a dynamic array of TImage has been created.
Array (variable length):
arrImages: array of TImage;
Access violation:
Access ...
0
votes
1
answer
113
views
How To Ignore Access Violation Exception From External Dll - .NET Core 6
I'm using DinkToPDF dll to convert an XML to PDF.
I need to generate 2000 PDF's.
So I try to do put the PDF generation logic inside for loop.
It generates first 2 or 3 PDF's and then in the next ...
-1
votes
1
answer
59
views
how to solve a violation Error using a method
I am getting such a weird violation error by using the getAt() method.
I use the method in this order:
OdDbBlockTablePtr w_kOdBlockTablePtr ;
bool lbCreateDefaults = false;
OdDb::...
0
votes
1
answer
443
views
Access violation writing location 0x00000003
So, I'm writing a DQL Neural network. When I run the code through the debugger, it throws this exception
Exception thrown at 0x00D05DFB in Deep Q-learning Neural
Network.exe: 0xC0000005: Access ...
0
votes
0
answers
110
views
Access violation when calling external DLL function (QPDF library) from C# program
Build environment: Visual Studio 2019, Windows Forms Application, .net 4.7.2
I am attempting to use the QPDF .dll library to read, encrypt, and output a PDF file.
See here for the DLL header file ...
0
votes
2
answers
43
views
Access violation on 2nd iteration of for loop when accessing a 2D array
I have an assignment in C where the user has to populate a 2D grades[3][3] array. Then a function is called that returns a pointer to main() with the address of the max element in that array.
So, I've ...
0
votes
0
answers
298
views
Error: Access Violation at address 00403842 in module 'ezIntf.exe' Read of address 142526C0
I have Server Interface and Server DB, i have an error, where when I remotely or log in to the server interface, an access violation error appears which causes the computer on the server to hang. ...
2
votes
1
answer
65
views
MsiOpenDatabaseW throws access violation when executed within an msi custom action
I have a code that modifies a cached (not the one being installed) msi installer database which works fine when executed within a standalone exe. But when it is run from within an msi Custom Action I ...
-1
votes
1
answer
92
views
Assembly instruction which does not impact code execution
I have a small command line application named "debugger" which acts as a debugger for a process A. Now this application works fine with x86 and x64. Now I have to migrate this "debugger&...
0
votes
1
answer
54
views
Initializing pointer of itself through the function c++
This is a class, and one of the variables of the class is a pointer that points to an object made from the same class. I want to make a reference to a child object(new Point object), but when I call a ...
1
vote
1
answer
567
views
Java 17 JDK Install exe won't run
I am trying to download Java 17, but whenever I run the jdk-java17.exe file, nothing happens, this occurs when run as administrator as well. When I debug the exe in Visual Studio, I get this error ...
0
votes
0
answers
53
views
C# AccessViolationException when call c++
I am trying to call a function of a C++ library. On result there is a AccessViolationException, but i do not have any other details.
How can I get more details on the error?
Here there is my code. ...
2
votes
2
answers
544
views
Catch c++ Access Violation exception
A c++ access violation error gets thrown at some part of my code. I would like to "catch" it and log the faulting line so I can investigate further.
I tried the first answer in this thread:
...
0
votes
1
answer
118
views
How can I resolve an access violation in managed C# code with structs?
Problem: When I attempt to access a derived property of a C# struct, it results in an access violation error and the application exits abruptly (with status 0xC0000005). Unlike this question, it ...
1
vote
0
answers
90
views
When using Yolov5 and Python 3.9.7 I get "Process finished with exit code -1073741819 (0xC0000005)"
I have tried all of the answers that reference "exit code -1073741819 (0xC0000005)" (Which means access violation) but none of them work. I followed the exact instructions on the Ultraytics ...
0
votes
0
answers
48
views
KalmanFilter violation writing location
I've been stuck on this problem for a while. I want to use opencv on a Hololens headset. Marker detection and data retrieval works.
So I have an error on my kalman filter on the "fillmeaseurement&...
1
vote
0
answers
202
views
Equivalent of 0xCC instruction for Windows ARM64
I have a small command line application named "debugger" which acts as a debugger for a process A. Now this application works fine with x86 and x64. Now I have to migrate this "debugger&...
0
votes
0
answers
59
views
Access violation writing location opencv_world (HololensforCv, opencv,aruco)
I need your help. I have this issue in my code and i don't understand why ... Do you have any ideas ? I'm beginner on opencv...
I'm trying to detect aruco gridboard to have its rvec and tvec but when ...
0
votes
1
answer
21
views
Cannot access a VCL component in a procedure called from FormCreate on a modal form (i.e. directly after opening the form)
Running into a runtime error when I open a modal form (Form2) that, on create, calls another procedure that does somehting with a VCL component. The following program demonstrates the issue.
This is ...
0
votes
0
answers
23
views
Dump file shows a single function wWinMainCRTStartup
I have a process which acts like a debugger for process A. After creating the process A with creation flag DEBUG_PROCESS using the API CreateProcessA, I receive EXCEPTION_DEBUG_EVENT for the process A....
0
votes
2
answers
620
views
How to find code from access violation address in a Delphi module?
Let me explain the problem by considering two dlls.
Lets say abc.exe is using xyz.dll. While running abc.exe(Delphi), getting an Access Violation.
Project abc.exe raised exception class ...
1
vote
1
answer
43
views
Extract area from bitmap results in AccessViolationException when using Marshal.Copy
I am trying to extract a specific area from a bitmap for further processing. In rare cases an error occurs when Marshal.Copy is called. This can be reproduced with the following example code:
Bitmap ...
0
votes
0
answers
712
views
How to fix exit code 0xc0000005 (STATUS_ACCESS_VIOLATION) on NtAllocateVirtualMemory?
I am trying to allocate space in memory with ntdll.dll. I am using the NtApi and winapi crates.
When I try to allocate, I get the next error:
exit code: 0xc0000005, STATUS_ACCESS_VIOLATION
How do I ...
0
votes
1
answer
573
views
Issue with Microsoft EDGE and opening links in new tab. Specifically Google search results. Possibly a RendererCodeIntegrity Issue?
Video: https://www.screencast.com/t/nZr2b9KBRSf7
Opening Google Search Results in a new tab results in non functionining pages for me. However if I hit REFRESH on those problematic pages it takes me ...
0
votes
2
answers
102
views
Access Violation with uninitialized variable being passed to method call that initializes it
I need some theoretical explanation of the following memory access violation BEFORE even entering the method:
String testMethod (AnsiString param1);
AnsiString A1 = testMethod(A1);
I am trying to ...
0
votes
0
answers
86
views
Python serial connection - segmentation fault (Windows fatal exception: access violation) Smart metering software
First SO question so bear with me;
I'm trying to connect to a Landis+Gyr electrical meter, using open-source smart metering software written in Python.
The Python code can be found here. I have access ...
1
vote
1
answer
358
views
How to Copy raw U8 | U16 data to LabVIEW Vision Image Buffer using memcpy
I have a frame grabber that acquires 16bit grayscale image data as a 1d array of unsigned short. Now I need to convert this raw U16 data to a LabVIEW Vision Image for further processing.
Before ...