PDA

View Full Version : avisynth & VB6 access


Dark-Cracker
16th August 2007, 20:34
Hi,

I am dealing avisynth access with a vb6 app and i try to check if there is a specific function present (actually i test if the setmtmode() function is present) but i have a little problem when i close my vb6 ide, it crash i think it's because the avisynth dll is not released from memory i call 2 avisynth api with somethink like :

hWnd = avs_create_script_environment()
res = avs_function_exists(hWnd, "setmtmode")

does someone have an idear ? should i need to call the release frame or release clip api ?

If anyone have a tips it's welcome.

Bye.

Inc
21st August 2007, 18:02
You did set the script environment result to a variable reserved in its naming for a window handle! Maybe therefore your issue lays on a variable naming conflict --- just guessing. Exchange hWnd to env

Dark-Cracker
24th August 2007, 10:52
thanks i will try this, but normaly there is not really variable restricted to the OS in vb6.

i will let you know if there is a change.

Bye.