🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.multimedia
1 messages
1 total messages Started by Jim Davis Wed, 04 Apr 2001 04:40
EMCIDeviceError...MMSYSTEM296 - Midi file corrupt
#1324
Author: Jim Davis
Date: Wed, 04 Apr 2001 04:40
22 lines
1768 bytes
I have a 257===TMediaPlayer::Error problem .

First funny thing is that  -12===TMediaPlayer::Mode  !
Well, bcb4vcl.hlp implies 0 thru 6 .
But we can live with that .

Second funny thing (and apparently my real problem)
is that , after the error , it seems TMediaPlayer::OnNotify
gets triggered again and again and again ..... ?
Resulting in the cascading "No MCI device open" messageboxes ?

Perhaps I need (MPlayer->Notify = false) more places ?

> In Win98, with BCB4, I'm using TMediaPlayer to play midi files.
> In debug mode ,
> all is well until I happen upon a corrupt midi file ,
> then Message Box "EMCIDeviceError...MMSYSTEM296...file...corrupt",
> then an Exception , which brings up the debugger
> at the line after Mplayer->Open() ...
> 
> Running the app outside of BCB4 ,
> I get a never ending cascade of "MCI device not open" Message Boxes .
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads