Re: Pocket PC Windows Media Player control causes Assert in Wcesock.cpp
From: David Gonzales [MS] (dgonzal_at_online.microsoft.com)
Date: 04/23/04
- Next message: David Gonzales [MS]: "Re: Lost my "Graphics Toolbar" in IDE of EVC4"
- Previous message: David Gonzales [MS]: "Re: RAS issue with Windows Mobile"
- In reply to: Jeroen de Bekker: "Pocket PC Windows Media Player control causes Assert in Wcesock.cpp"
- Next in thread: Jeroen de Bekker: "Re: Pocket PC Windows Media Player control causes Assert in Wcesock.cpp"
- Reply: Jeroen de Bekker: "Re: Pocket PC Windows Media Player control causes Assert in Wcesock.cpp"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 23 Apr 2004 13:07:53 -0700
Not sure that this will answer your question or not, but the "Windows Media
Player for Pocket PC SDK" was for Pocket PC 2002, and not for Pocket PC
2003. I'm surprised that you have gotten it to work partially.
David
------
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jeroen de Bekker" <jeroen@maasnet.nl> wrote in message
news:84077B58-EA2A-4FC3-BFEF-BA7C052D0F24@microsoft.com...
> I am programming an application for a Pocket PC 2003 in eVC++ . This
Pocket PC (iPaq) has integrated WLAN available, and is part of a LAN.
> The goal is to embed the Windows Media Player Control for Pocket PC in a
dialog, and to play a movie in it. The movie is streamed from a webserver in
the LAN.
>
> Well, this has succeeded. I have installed the Windows Media Player for
Pocket PC SDK (which is hard to find on the internet btw) and created a CWnd
derived class which hosts the WMP ActiveX control. Any movie file can be
displayed, whether it is locally stored on the iPaq or streamed from a
webserver in the network by using a Url.
>
> However, the application needs to communicate with a Server Application.
To that purpose, I created a CCeSocket instance. After making the instance,
one should call Create() to physically create the socket.
>
> But, I encountered this strange behaviour (bug?):
>
> Whenever a CCeSocket instance has been made and created and a movie clip
is streamed by using a Url, an ASSERT wil fire in wcesock.cpp on line 732
when the movie playback stops. This does *not* happen when a local movie
file is played instead of a Url movie file.
> It seems like the Windows Media Player Control does some cleanup after a
movie playback from a Url has been finished, and that this cleanup causes an
error in the socket implementation.
>
> When I look in the wcesock.cpp file, I see that the ASSERT is caused by an
error identified by WSAENOTSOCK:
>
> // MessageId: WSAENOTSOCK
> //
> // MessageText:
> //
> // An operation was attempted on something that is not a socket.
> //
> #define WSAENOTSOCK
>
> I will mail my (stripped) source and the Windows Media Player for Pocket
PC SDK on request, so you can reproduce the problem.
> Do not forget to alter the movie file name and the IP Address of the
Webserver to your own needs. All important code is in the OnInitDialog()
method of the CWMPSocketTestDlg.cpp file.
>
>
> Does anyone know why this happens, or does anyone have a workaround?
- Next message: David Gonzales [MS]: "Re: Lost my "Graphics Toolbar" in IDE of EVC4"
- Previous message: David Gonzales [MS]: "Re: RAS issue with Windows Mobile"
- In reply to: Jeroen de Bekker: "Pocket PC Windows Media Player control causes Assert in Wcesock.cpp"
- Next in thread: Jeroen de Bekker: "Re: Pocket PC Windows Media Player control causes Assert in Wcesock.cpp"
- Reply: Jeroen de Bekker: "Re: Pocket PC Windows Media Player control causes Assert in Wcesock.cpp"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|