PDA

View Full Version : Access Violation Error


asma
4th September 2007, 12:31
I get this error:

First-chance exception in VirtualDub.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.

First-chance exception in VirtualDub.exe (MYFUNCTION.DLL): 0xC0000005: Access Violation.
The thread 0xC28 has exited with code 0 (0x0).

First-chance exception in VirtualDub.exe: 0xC0000005: Access Violation.

I did debug my plugin and it seems that the problem raises once VirtualDub tries to fetch the first frame..

this is where exactly the program craches in the assembly code:
10014A85 call dword ptr [ecx+24h]

Please any hint?

foxyshadis
4th September 2007, 20:34
Your plugin? Did you try recompiling it in debug mode so that you have the source available?

The report doesn't have enough information to help, the name of the plugin (if it's not yours) and the full faulting script are needed, and sometimes a snippet of the source video.

IanB
5th September 2007, 02:18
Recent versions of Avisynth now ship with an avisynth.map! You can uses this accurately get routine addresses. Avisynth preferably loads at 0x10000000, use the debugger loaded module display to check this. In all the recent versions of Avisynth the cache module is around the 0x14xxx mark.

call dword ptr [ecx+24h] is possibly a child->GetFrame() call.

If all this is the case then the memory for your filter object has been spewed apon and corrupted.

Build your plugin in debug mode. If you can, build yourself a Debug or Relsym avisynth.dll and debug it, if not the use the .map file provided to interprete the Call stack addresses.