rebellious
22nd December 2004, 06:20
Hi All, I am trying to compile a simple filter for AVISynth 2.5
I am using BCB 4
everything seems to go fine up to the point my GetFrame function is called.
it crashes and MediaPlayer throws up an "unknown error" message
When I investigate the "this" pointer it turns out it is invalid, pointing to outer space somewhere, rather than to the object I actually created.
So I redid everything this time using Bens "Invert" Sample
same problem.
I have tried using different data alignment schemes etc.. but cannot get it to work. I use __stdcall and __cdecl where required and get no compile time errors, though I noticed __stdcall is not used consistantly in avisynth.h it is assumed in some places.
Either the 'this' pointer is being passed differently from MSV C++ to BCB C++ or some other error is occuring (which alludes me at present).
It was my belief that MS and Borland were binary compatible, which means something else is awry.
I can't recompile AVISynth because BCB seems to lack some of the asm opcodes, and I can't get access to an MS Compiler
I was hoping some one would point me in the right direction.
I am using BCB 4
everything seems to go fine up to the point my GetFrame function is called.
it crashes and MediaPlayer throws up an "unknown error" message
When I investigate the "this" pointer it turns out it is invalid, pointing to outer space somewhere, rather than to the object I actually created.
So I redid everything this time using Bens "Invert" Sample
same problem.
I have tried using different data alignment schemes etc.. but cannot get it to work. I use __stdcall and __cdecl where required and get no compile time errors, though I noticed __stdcall is not used consistantly in avisynth.h it is assumed in some places.
Either the 'this' pointer is being passed differently from MSV C++ to BCB C++ or some other error is occuring (which alludes me at present).
It was my belief that MS and Borland were binary compatible, which means something else is awry.
I can't recompile AVISynth because BCB seems to lack some of the asm opcodes, and I can't get access to an MS Compiler
I was hoping some one would point me in the right direction.