| | |
mediaplayer crash in Windows 2000
Please support our VB.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: May 2006
Posts: 4
Reputation:
Solved Threads: 0
I wrote a VB6 application for automatic or manual playing of mp3 files from a play list. This application can run forever in Windows 98, but crashes after around 128 songs in Windows 2000. I decided to replicate the basic routine that causes the crash in VB2005 on my Windows 2000 machine. Sure enough, it does the same thing. Using axmediaplayer, I load a song for playing. When played, a timer is enabled which repeatly loads and plays the same song at approximately 1 second intervals. I did this so I can quickly get to the 128 song limit which causes the crash. Here is the Timer routine:
At song 128 I get an "AccessViolationException was unhandled. Attempted to read or write protected memory. This is often an indication that other memory is corrupt." I figure this has something to do with an overflow, but cannot figure out what the media player is counting or why, nor can I find out how to clear it. I have found numerous references to this error in similar code (crashes after periodic accesses) but no answers. If anyone has found a work-around, please let me know!
Thanks in advance,
Crim1969
VB.NET Syntax (Toggle Plain Text)
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick AxMediaPlayer1.Stop() AxMediaPlayer1.FileName = OpenFileDialog1.FileName AxMediaPlayer1.Play() lblTimesPlayed.Text = lblTimesPlayed.Text + 1 End Sub
Thanks in advance,
Crim1969
![]() |
Similar Threads
- What's better? Windows 2000 Server or Linux Server? (Windows Servers and IIS)
- Windows 2000 Adv Server and "Printing Subsystem" (Windows NT / 2000 / XP)
- Windows 2000 SP3 (Windows NT / 2000 / XP)
Other Threads in the VB.NET Forum
- Previous Thread: HTTP POST, GET and SOAP
- Next Thread: Input Validation
| Thread Tools | Search this Thread |
.net .net2008 2005 2008 access account application array basic beginner browser button buttons center check click code combo crystalreport cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic dropdownlist excel exists fade file-dialog filter forms ftp generatetags hardcopy html images input insert intel listview module monitor net networking number open output panel passingparameters picturebox picturebox2 port print printing problem project regex right-to-left searchvb.net select serial settings shutdown socket sqldatbase sqlserver survey tcp temperature text textbox timespan toolbox transparency trim txttoxmlconverter user usercontol vb vb.net vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic.net visualstudio.net visualstudio2008 web winforms wpf wrapingcode xml year






