access-violation

Why uninitialized pointers cause mem access violations close to 0?

给你一囗甜甜゛ 提交于 2019-12-12 11:00:18
问题 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 have been all written by the same author(s)??? Update: Quote from "C++ builder 6 developers guide" by Bob Swart et all, page 71: When the memory address ZZZZZZZZZ is close to zero, the cause is often an uninitialized pointer that has been accessed. Why is it so? Why uninitialized pointers contain

Access Violation Exception in SqlCeConnection dispose

為{幸葍}努か 提交于 2019-12-12 10:45:07
问题 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 introduced till this version. the only change in this version was changing the .net framework to 4.5.2. I'm getting access violation exception on the dispose of an SqlCeConnection with the following error: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Access violation at address 00822135 in module 'GUI.exe'.Read of address 00000040 [closed]

做~自己de王妃 提交于 2019-12-12 06:55:38
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . There is sqlite a database - a descriptor, containing the list of tables, the list of domains, the list of fields, the list of restrictions (primary and

Python: WindowsError: exception: access violation reading 0x00000000

老子叫甜甜 提交于 2019-12-12 06:10:10
问题 This short function is simply getting the available free space of a storage device, however I am getting the above error when running the code. The function is: def disk_space1(drive): freespace = ctypes.c_ulonglong() calcspace = ctypes.windll.kernel32.GetDiskFreeSpaceExA calcspace(drive, ctypes.byref(freespace)) disk_size = freespace.value return disk_size This function worked perfectly until today when it has stopped working for no reason, I haven't changed anything. What's baffling me the

How to debug an access violation in the Microsoft Audio Compression Manager in a DirectShow application?

狂风中的少年 提交于 2019-12-12 03:14:58
问题 I have a Delphi 6 DirectShow application that exchanges audio with Skype via sockets. I am getting an intermittent access violation in one of the threads started by one of the DLLs loaded by the Filter Graph when the DirectShow filter chain is ran. As I discovered in a previous SO post with the help of another SO member, the thread that faults appears to be started by the Microsoft Audio Compression Manager (msacm32.dll): How can I tell what DLL started a thread and what address space a DLL

savefiledialog “sometimes” throws an System.AccessViolationException

青春壹個敷衍的年華 提交于 2019-12-12 02:24:23
问题 I'm using Win7 with Visual Studio 2013 My Application is a webbrowser-component with GeckoFx. At the download-call I trigger to open the SaveFileDialog. On some cases (not on every call) I got the following error, when I call SaveFileDialog in line 822 (see also code below): System.AccessViolationException wurde nicht behandelt. HResult=-2147467261 Message=Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher

What is the correct way to “stop / shutdown” a QNetworkAccessManager?

独自空忆成欢 提交于 2019-12-11 14:15:10
问题 I have a QNetworkAccessManager . Let's assume I have a pending request: QNetworkRequest request(url); this->m_networkManager->get(request) Can I shutdown the QNetworkAccessManager at any time? I am asking because I see a write access violation when I destruct my object m_networkManager during a pending get request. Or how can I safely destroy the manager, there seems to be no stop or shutdown functionality. 回答1: The root cause is that our QNetworkAccessManager is used in a threaded worker (1)

ExecuteNonQuery() exception not caught by try-catch

雨燕双飞 提交于 2019-12-11 13:11:17
问题 I am having a problem with a database call that throws an AccessViolationException when I call ExecuteNonQuery() . The call is enclosed in a try-catch block but the exception is never caught. Instead, I get an entry about it in the Windows Event log. Is there a way of catching this exception in code? IDbCommand cmd = ... cmd.CommandText = "..."; try { var results = command.ExecuteNonQuery(); } catch (Exception ex) { Console.Writeline("Caught exception: " + ex.Message); } 回答1: ExecuteNonQuery(

dll works fine in a VS2010 project but gives access violations in a VS6 Application

蹲街弑〆低调 提交于 2019-12-11 12:09:59
问题 I have been creating a dll for a usb device over the past few weeks, the device came with its own dll which i used to create my own dll in VS2010, I then created a test application which uses said dll in 2010 to get it working. It works well, however I now need to use it in a VS6 project, when i use it I get access violations, I recreated the dll in VS6 to see if that would help, it allowed me to step into the code, as soon as it gets to a line in my dll that calls the 3rd party dll, it

AccessViolationException in C# multithreaded form

别等时光非礼了梦想. 提交于 2019-12-11 09:29:54
问题 First off this is my first C# project. I have been working on this project for about 6 months. We have a winforms program and it contains a logging GUI. In order to keep the rest of the program responsive I wanted to create the logging gui on a separate thread since it can be quite intensive when lots of stuff is going on. This is how I attempted to open the the form on a new GUI thread. In general it works and keeps the main gui responsive. However we now randomly get a