140 db
3rd March 2008, 22:58
Hey.
I'm trying to make a program in C# which can open avs files and read the number of frames in the video.
To do so i've downloaded the source for megui and opened the project in Visual Studio 2008 to see how the developers implement the calls to avisynthwrapper.dll.
I've especially looked at two classes. "AvisynthWrapper.cs" and "AvsReader.cs". But when i'm trying to make a build I get an error while opening a avs file. I've tested the files with Virtualdubmod and they work fine.
Using debug mode i've found that the dimzon_avs_init() call from AviSynthClip's constructor throws an exception.
The parameter values are as follows:
_avs = 0.
func = "import"
arg = "E:\\temp\\test.avs"
_vi = with default values.
_colorSpace = unknown
_sampleType = unknown
forceColorspace.ToString() = RGB24
The error message:
"An attempt was made to load a program with incorrect format. (Exception from HRESULT: 0x800700B)"
Also note that the dll is in the exe folder and the version which i'm trying to build is 2.6.1044.
When I use compile.bat it makes a build where opening a avs works perfectly so i'm obviously doing something wrong.
please help a C# rookie ;)
I'm trying to make a program in C# which can open avs files and read the number of frames in the video.
To do so i've downloaded the source for megui and opened the project in Visual Studio 2008 to see how the developers implement the calls to avisynthwrapper.dll.
I've especially looked at two classes. "AvisynthWrapper.cs" and "AvsReader.cs". But when i'm trying to make a build I get an error while opening a avs file. I've tested the files with Virtualdubmod and they work fine.
Using debug mode i've found that the dimzon_avs_init() call from AviSynthClip's constructor throws an exception.
The parameter values are as follows:
_avs = 0.
func = "import"
arg = "E:\\temp\\test.avs"
_vi = with default values.
_colorSpace = unknown
_sampleType = unknown
forceColorspace.ToString() = RGB24
The error message:
"An attempt was made to load a program with incorrect format. (Exception from HRESULT: 0x800700B)"
Also note that the dll is in the exe folder and the version which i'm trying to build is 2.6.1044.
When I use compile.bat it makes a build where opening a avs works perfectly so i'm obviously doing something wrong.
please help a C# rookie ;)