Windows Phone Thoughts - Daily News, Views, Rants and Raves

Check out the hottest Windows Mobile devices at our Expansys store!


Digital Home Thoughts

Loading feed...

Laptop Thoughts

Loading feed...

Android Thoughts

Loading feed...




Go Back   Thoughts Media Forums > WINDOWS PHONE THOUGHTS > Windows Phone Customizations & Content

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-26-2007, 01:00 PM
inquisitive2
Neophyte
Join Date: Feb 2007
Posts: 1
Default directshow fitler development on windows mobile 5.0 pocket pc. failure at DECLARE_IUNKNOWN

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/micro...end&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/mic...de5059b33ec9c3 <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/mic...cec3d790c3e69c <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.
 
Reply With Quote
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:59 PM.