access-violation

Can a stack overflow be sometimes misinterpreted by the compiler as an Access violation?

耗尽温柔 提交于 2019-12-24 15:22:20
问题 I have a fortran code compiled with Intel fortran compiler 2013 and VS2010 under windows 7 that started to give me unhandled exceptions without showing the line in which the code was crashing. Usually an error like this was showing up: Unhandled exception at 0x73e1d3d2 in GRIB2METEOriparto.exe: 0xC0000005: Access violation writing location 0x00240ef4.... and the call stack had only dbghelp.dll or verifies.dll and no source available. I moved my source files under Cygwin, I compiled with

MySQL Zend Framework - SQLSTATE[42000]: Syntax error or access violation: 1064

本秂侑毒 提交于 2019-12-24 08:18:36
问题 I've read every response I could fine on SO before posting this question. Although similar, none addressed my particular problem (or I didn't recognize them doing so). I have a table class that extends Zend_Db_Table_Abstract. In the model, I'm trying to return a single row using a join() method and based on the table ID like this: $getCategoryResults = $this->select(); $getCategoryResults->setIntegrityCheck(false) ->from(array('c'=> 'categories', '*')) ->join(array('e' => 'events'),'c.events

MySQL Zend Framework - SQLSTATE[42000]: Syntax error or access violation: 1064

久未见 提交于 2019-12-24 08:17:14
问题 I've read every response I could fine on SO before posting this question. Although similar, none addressed my particular problem (or I didn't recognize them doing so). I have a table class that extends Zend_Db_Table_Abstract. In the model, I'm trying to return a single row using a join() method and based on the table ID like this: $getCategoryResults = $this->select(); $getCategoryResults->setIntegrityCheck(false) ->from(array('c'=> 'categories', '*')) ->join(array('e' => 'events'),'c.events

How to close an error message from an .exe called from a Excel-VBA script?

旧城冷巷雨未停 提交于 2019-12-24 07:59:37
问题 When calling a external .exe file from vba, like this: Sub RunEXE() Dim wsh As Object SetCurrentDirectory "\\path\" 'Set Directory Set wsh = VBA.CreateObject("program.exe ""\\path\argument""", WindowStyle:=1, waitonreturn:=True) Is it possible to close error windows directly from VBA? The code calls the program and correctly runs the .exe and produces all of the data that is useful to me, but to get the data back to my sheet I have to okay this window (since waitonreturn=true): The violation

How can I tell what DLL started a thread and what address space a DLL owns for an external DLL?

自古美人都是妖i 提交于 2019-12-24 06:49:18
问题 I have a Delph 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. The DLL does not belong to me so I don't have the source code. I have examined the Event Log and I see this relevant excerpt when the Filter Graph is ran : Thread Start: Thread ID: $00000804. Process Test.exe ($CE4) Module Load: QCap.dll. No Debug

Eclipse has randommly stopped loading

妖精的绣舞 提交于 2019-12-24 06:47:12
问题 So, I've gone to open eclipse like I normally do (clicking the icon in my taskbar) after about a month of not working, and... nothing. There is a bit of hard drive activity but no processes actually stay alive, if they start at all. After investigating further I found that the splash screen would come up if I ran the executable as Administrator (I'm running Windows 7 by the way), but before the progress bar appeared it crashed generating a file named hs_err_pid2620.txt containing the

Why try-catch block cannot handle the exception?

馋奶兔 提交于 2019-12-24 05:55:01
问题 FSDKCam.GetVideoFormatList is a method from external .NET dll. As you see the image, it throws an exception in try-catch block. try { FSDKCam.GetVideoFormatList(ref cameraList[0], out formatList, out count); if (count > 0) cmbCameraList.Items.Add(cam); } catch { } Screenshot: 回答1: In .NET 4, AccessViolationException is not catchable by default. See the legacyCorruptedStateExceptionsPolicy configuration element. They did this because people have try {} catch (Exception) {} throughout their

Negative array index

筅森魡賤 提交于 2019-12-24 03:49:11
问题 I have a pointer which is defined as follows: A ***b; What does accessing it as follows do: A** c = b[-1] Is it an access violation because we are using a negative index to an array? Or is it a legal operation similar to *--b ? EDIT Note that negative array indexing has different support in C and C++. Hence, this is not a dupe. 回答1: X[Y] is identical to *(X + Y) as long as one of X and Y is of pointer type and the other has integral type. So b[-1] is the same as *(b - 1) , which is an

Uncatchable AccesViolationException

大兔子大兔子 提交于 2019-12-24 03:32:08
问题 I'm getting close to desperate.. I am developing a field service application for Windows Mobile 6.1 using C# and quite some p/Invoking. (I think I'm referencing about 50 native functions) On normal circumstances this goes without any problem, but when i start stressing the GC i'm getting a nasty 0xC0000005 error witch seems uncatchable. In my test i'm rapidly closing and opening a dialog form (the form did make use of native functions, but for testing i commented these out) and after a while

Access violation where there wasn't one before

a 夏天 提交于 2019-12-23 20:49:05
问题 I'm P/Invoking out to Graphviz as shown here. When I wrote that blog entry, the code worked just fine. Now, I'm putting together an HttpModule that renders Graphviz graphs using that code, but I get an AccessViolationException at agmemread . // Native signature Agraph_t agmemread(char *); // P/Invoke Signature [DllImport(LIB_GRAPH)] private static extern IntPtr agmemread(string data); // Usage IntPtr g = agmemread(data); Like I said, this worked perfectly before. But now, I can't get my code