inquisitive2
02-26-2007, 01:00 PM
Hi,
Is there anybody who is able to successfully run a custom filter on Windows Mobile 5.0?
I have certain directshow filters on Win2000, which I have to port to Windows Mobile 5.0. I created a "Smart Device Win32 Dll application" (Windows Mobile 5.0 PPC) on VS2005. I created an empty project and added a .cpp and a .def file and added the filter code. The code I used is similar to the one given by Gary Daniels at:
http://groups.google.com/group/microsoft.public.smartphone.developer/browse_thread/thread/c9a4b3a393d4aa8a/9a025c9c22b01105?lnk=st&q=CNullRend&rnum=1
When I try to register it (using regsvrce), it fails at DECLARE_IUNKNOWN insided CNullRend Class definition. When I replaced the DECLARE_IUNKNOWN macro with the expansion:
STDMETHODIMP QueryInterface(REFIID riid, void **ppv) {
return GetOwner()->QueryInterface(riid,ppv);
};
STDMETHODIMP_(ULONG) AddRef() {
return GetOwner()->AddRef();
};
STDMETHODIMP_(ULONG) Release() {
return GetOwner()->Release();
};
I found that it fails at return GetOwner()->AddRef(); with the error:
"Unhandled exception at 0x013c12e0 in regsvrce.exe: 0xC0000005: Access violation reading location 0x00000001."
The same is the case with any directshow filter I try to register on WM5.0.
Many people have faced a similar problem:
1.<http://www.itpost.cn/en/1951/posts/195130814.shtml>
2.http://groups.google.co.in/group/microsoft.public.pocketpc.developer/browse_thread/thread/73d9baf31bf9f877/18de5059b33ec9c3?lnk=st&q=Sample+Grabber+windows+mobile&rnum=2&hl=en#18de5059b33ec9c3 <http://groups.google.co.in/group/microsoft.public.pocketpc.developer/browse_thread/thread/73d9baf31bf9f877/18de5059b33ec9c3?lnk=st&q=Sample+Grabber+windows+mobile&rnum=2&hl=en>
3.http://groups.google.co.in/group/microsoft.public.windowsce.app.development/browse_thread/thread/7f9b633076e74d10/4ccec3d790c3e69c?hl=en#4ccec3d790c3e69c <http://groups.google.co.in/group/microsoft.public.windowsce.app.development/browse_thread/thread/7f9b633076e74d10/4ccec3d790c3e69c?hl=en>
4.<http://groups.google.co.in/group/microsoft.public.multimedia.directx.dshow.programming/browse_thread/thread/f26cc032d3e216c5/d8a1ba84232f4288?lnk=st&q=GetOwner+AddRef()&rnum=16&hl=en>#
5.<http://www.eggheadcafe.com/forumarchives/win32programmerdirectxaudio/sep2005/post23723142.asp>
6. <http://groups.google.co.in/group/microsoft.public.win32.programmer.directx.audio/browse_thread/thread/4f8a885178bc09a5/4c45d8f2100108d7?lnk=st&q=GetOwner+AddRef()&rnum=7&hl=en>#
But I have not found any solution so far.
Please help me resolve this issue.
Regards,
Teja.
Is there anybody who is able to successfully run a custom filter on Windows Mobile 5.0?
I have certain directshow filters on Win2000, which I have to port to Windows Mobile 5.0. I created a "Smart Device Win32 Dll application" (Windows Mobile 5.0 PPC) on VS2005. I created an empty project and added a .cpp and a .def file and added the filter code. The code I used is similar to the one given by Gary Daniels at:
http://groups.google.com/group/microsoft.public.smartphone.developer/browse_thread/thread/c9a4b3a393d4aa8a/9a025c9c22b01105?lnk=st&q=CNullRend&rnum=1
When I try to register it (using regsvrce), it fails at DECLARE_IUNKNOWN insided CNullRend Class definition. When I replaced the DECLARE_IUNKNOWN macro with the expansion:
STDMETHODIMP QueryInterface(REFIID riid, void **ppv) {
return GetOwner()->QueryInterface(riid,ppv);
};
STDMETHODIMP_(ULONG) AddRef() {
return GetOwner()->AddRef();
};
STDMETHODIMP_(ULONG) Release() {
return GetOwner()->Release();
};
I found that it fails at return GetOwner()->AddRef(); with the error:
"Unhandled exception at 0x013c12e0 in regsvrce.exe: 0xC0000005: Access violation reading location 0x00000001."
The same is the case with any directshow filter I try to register on WM5.0.
Many people have faced a similar problem:
1.<http://www.itpost.cn/en/1951/posts/195130814.shtml>
2.http://groups.google.co.in/group/microsoft.public.pocketpc.developer/browse_thread/thread/73d9baf31bf9f877/18de5059b33ec9c3?lnk=st&q=Sample+Grabber+windows+mobile&rnum=2&hl=en#18de5059b33ec9c3 <http://groups.google.co.in/group/microsoft.public.pocketpc.developer/browse_thread/thread/73d9baf31bf9f877/18de5059b33ec9c3?lnk=st&q=Sample+Grabber+windows+mobile&rnum=2&hl=en>
3.http://groups.google.co.in/group/microsoft.public.windowsce.app.development/browse_thread/thread/7f9b633076e74d10/4ccec3d790c3e69c?hl=en#4ccec3d790c3e69c <http://groups.google.co.in/group/microsoft.public.windowsce.app.development/browse_thread/thread/7f9b633076e74d10/4ccec3d790c3e69c?hl=en>
4.<http://groups.google.co.in/group/microsoft.public.multimedia.directx.dshow.programming/browse_thread/thread/f26cc032d3e216c5/d8a1ba84232f4288?lnk=st&q=GetOwner+AddRef()&rnum=16&hl=en>#
5.<http://www.eggheadcafe.com/forumarchives/win32programmerdirectxaudio/sep2005/post23723142.asp>
6. <http://groups.google.co.in/group/microsoft.public.win32.programmer.directx.audio/browse_thread/thread/4f8a885178bc09a5/4c45d8f2100108d7?lnk=st&q=GetOwner+AddRef()&rnum=7&hl=en>#
But I have not found any solution so far.
Please help me resolve this issue.
Regards,
Teja.