Access Violation in WSOCK32.DLL
Posted on 1998-11-23
I'm getting dozens of these trace messages in the debug frame of Microsoft Visual C++ 5.0 when I run my program:
"First-chance exception in MyShow.exe (WSOCK32.DLL): 0xC0000005: Access Violation."
What does this mean and what can I do to eliminate these exceptions from happening?
This is a very simple MFC dialog application that has two ActiveX controls, Microsoft MediaPlayer and Macromedia Shockwave Flash, both of which access winsock. The MediaPlayer is used to play the audio track (an ASF file). The Shockwave Flash is used to play, what else, a Shockwave Flash animation file (a SWF file). Both of these files are streamed from the Internet.
This message starts appearing as soon as I start playing the ASF file and continues every two to three seconds. What is this message telling me?
Am I using the MediaPlayer ActiveX control properly?
In OnInitDialog() I do this:
Then I have a separate Play button that starts the audio playing:
I've isolated out the Shockwave Flash player (just using the MediaPlayer) and it still happens. I also tried setting "Access violation" to "Stop always" while debugging. I traced it back as far as a call from the KERNEL32.
Has anyone run into this problem before?
Thanks in advance,