PDA

View Full Version : DirectShowSource doesn't release the handle.


dvd2svcd
29th July 2004, 14:21
1. Preface
The bug has existed for some time (I have tested it back to version 2.4).

2. What you need:
Get these files/programs:
http://www.sysinternals.com/ntw2k/freeware/handle.shtml
http://www.dvd2dvd.org/testavi.rar

3. How to test
Make a little AVS script file:
DirectShowSource("C:\test.avi",25.000,audio=false)Open the avs file in Virtualdub

open a command prompt and type:
handle.exe -p virtualdub.exeYou'll get something looking like this:

VirtualDub.exe pid: 1988
e8: Section \BaseNamedObjects\__R_0000000000f1_SMem__
194: Section \BaseNamedObjects\WebDriveMemMapFile
1ac: Section \BaseNamedObjects\VIDEOMEMORY
1b0: File C:\Programmer\DVD2SVCD\TEMP
1d0: Section \BaseNamedObjects\AMResourceMapping2-0x0000-0x00000514
1f4: File F:\VIDEOD~1\SECRET~1.XVI\test.avi
1f8: File F:\VIDEOD~1\SECRET~1.XVI\test.avi
26c: Section \BaseNamedObjects\mmGlobalPnpInfo
270: Section \BaseNamedObjects\WDMAUD_Callbacks
2b4: Section \BaseNamedObjects\DirectSound Administrator shared thread array
3d4: Section \BaseNamedObjects\DirectSound Administrator capture focus arrayNow go back to VirtualDUB and selectfile/close video file

Go back to your command prompt and run handle.exe again like before. You'll see that the AVI file is still opened by VirtualDUB.

4. Compare with this
Make an AVS file looking like this:
AVISource("C:\test.avi",audio=false)and do the exact same test and you'll se the AVI is closed properly.

sh0dan
29th July 2004, 20:37
Tell me how your test binary turns out.

dvd2svcd
29th July 2004, 20:46
Perfect :D

If only phone companies were that fast to fix problems my life would be easy :D

Sirber
24th August 2004, 04:49
@dvd2svcd

Do you have an AVISynth 2.55+ version that DirectShowSource is fixed?

dvd2svcd
24th August 2004, 06:55
The version on Avisynth' SourceForge is fixed afaik. Here's the changelog from AVS 2.5.5 RC1(17-08-04):

Changes:
- Added: ImageReader/ImageSource now accepts relative paths in all configurations.
- Fixed: ImageReader now no longer reports errors/info upside-down.
- Added: DirectShowSource now requests interlaced material to avoid internal (crappy) WMV9 deinterlacer. (Thanks to Russel Lang)
- Fix: Huge stability fix by IanB. This should remove a bunch of "Evaluate: Unregnized exception", and crashes on reload in vdub.
- TDPDeliver: Simplification and cleanup. Planar pitches handled more consistently.
- Fix: DirectShowSource properly relasing filters on unload.
- Added: BlankClip now has color_yuv, that allows setting and YUV color for YUV clips.

Sirber
24th August 2004, 13:55
Cool! Gonna try if Helix Producer still leak memory with that.