Playing MPEG videos hangs up my app

Hi

I'm writing an application that plays video & other media files in a loop,
one after other. I'm trying to change from using Windows media player to
DirectX 8. I use Win98 SE, D5, and DSPack component from www.progdigy.com to
access DirectShow.

Problem is that after a few hours the application hangs up. According to
SysProbe component (www.jazarsoft.com/vcl) this happens because system &
user resources get used up. MP3 files that use the same interface, except
for IVideoWindow, work fine.

I remember seeing here (or perhaps in multimedia newsgroup) something about
a similar problem with playing video files... anyone?

Mika