Click to See Complete Forum and Search --> : Two questions in DirectShow


endether
July 25th, 2005, 09:06 AM
I don't know if it is appropriate to ask this question here. It seems that many people here talk more about graphics programming, But I can't find the section for MultiMedia development. As DirectShow is part of DirectX, I beleive someone can help me here. so there are my questions:

1:
PlayWnd is a sample program in DirectShow(DirectX 9.0c SDK). I tried to compile and debuged it in MS VS.Net 2002. When I use it to open an video file, a dialog titled"Protection Error" pops up and says that:
"Debuger detected - please close it down and restart!"

"Windows NT users: Please note that having the WinICE/SoftIce service installed means
that you are running a debugger!"

when I close this dialog, the program aborted.
I set many break point and found that errors occur in
member function of IMediaControl ---- Run()

But in fact, I've never install softwares which are like WinICE/SoftIce.
Why the error ocuurs?

When I run the exe file in Debug directory, no error ocuurs.
And debugging in another computer, there is no error too.
Why!?

2:
I use VMR implement a program to play video file in Windowless mode.
The program run correctly in my computer, but when it run on another compter.
the DShow create a new window to display video file but not in Windowless mode.
Why it create a new window???

Please help...

_david
July 25th, 2005, 12:11 PM
Just check microsoft's directx documentation (doc u men - tation ha ha)

_david

endether
July 26th, 2005, 01:25 AM
Thank you, david

I've solved the first problem, when I check the debug output, it shows that it loads a filter from C:\Program Files\Common Files\Ahead\DSFilter, after I renamed DSFilter directory, there is no error occured. How can I stop my program loading filter from nero without changing or deleting nero's filter?
The second problem still unsolved could you give me some hints?
Thanks in advance...