View Full Version : Difficulty debugging Xvid core library
ReferenceDivx
19th October 2002, 21:50
What is the best way to debug problems that arise when i write functions in xvidcore? Would it be possible to make a project using the library and the example ex1, and debug some of the functions in the library. Or any other suggestions would be great!
Thanks
-h
20th October 2002, 02:26
The easiset way I can think of is to use the example programs (xvidcore/examples or something), and adapt the project settings so that instead of linking against core.lib, they compile all of the c/h/asm files in xvidcore at compile time, letting you step through the command-line encoder/decoder in debug mode.
I might try setting up a project file for this next week, I'm away from home at the moment.
-h
ReferenceDivx
20th October 2002, 05:03
Ya thats what i was thinking. I tried to compile both examples and get them to work. However, both times i ran into a problem with
pEnc = (Encoder *) xvid_malloc(sizeof(Encoder), CACHE_LINE);
in the encoder_create function. It gives me a memory access violation. Maybe the sizeof(Encoder) was setup wrong? It was 616 if that helps.
My functions are going to need to be asm-ed. :)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.