PDA

View Full Version : Filter debugging tools?


foxyshadis
12th February 2006, 01:02
I'm writing a filter that's a mod of TIVTC's FrameDiff, which is pretty complex and some would even say brain-warping :p, and it compiles and links fine after including or eliminating the dependencies and renaming the classes. Problem is, when I load it up I get a runtime error about "an attempt to load the C runtime library incorrectly" [edit: lack of manifest caused it], then a normal can't load message. In debug mode it's only the normal can't load, no crash. This is with VS2005.

Simpler plugins worked just fine, and I've checked all the arguments and names and new variables, so I'm at a loss.

Does anyone know why this might be happening, or if there's a way I can debug it to find out why it might be failing? I don't know anything about debugging dll modules, especially in as complex a framework as avisynth.

neuron2
12th February 2006, 01:58
Debugging Avisynth filter DLLs is easy; don't be scared by it. I can tell you how in VC++ 6. :)

foxyshadis
12th February 2006, 02:08
I'd appreciate that, I'm sure it isn't that different.

neuron2
12th February 2006, 02:24
1. Build/Active configuration -> Debug.

2. Project/Settings/Debug/General/Executable for debug session -> browse to a version of VirtualDub.exe and specify that.

3. Project/Settings/Debug/Additional DLLs -- browse to the filter DLL in the Debug directory.

4. Make an AVS script that loads and uses your filter -- be sure to load the Debug version!

5. Build the code. Set breakpoints as required.

6. Build/Start debug/Go. VirtualDub will execute. Open the AVS script in that VirtualDub instance.

billou2k
12th April 2006, 17:23
Thanks so much:) you made my day:)