Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TMediaPlayer crash

0 views
Skip to first unread message

Nicolas Frank

unread,
Oct 28, 1998, 3:00:00 AM10/28/98
to
I am playing a video in a form using a TMediaPlayer object.

The first time I create the form from an other form and start the video
using MP->Play() in the OnShow() function everything is all right.

Then when the user press a key, I delete the Form, (My FormDestroy
function contains MP->Close();)

Then if later I need to create the same form with the video, I get the
folowing error message :


the project has generated a EMCIDeviceError with the message :
'MMSYSTEM265 This alias is already in use by this program. Use a unique
alias rather than the device name'.


I don't really understand what that means. Can any body help me ?

Thank's.

--

Nicolas FRANK

/////////////////////////////////////////////////////////////////////
E-mail : Nicola...@supaero.fr - valable jusqu'au 1er aout 1999
E-mail : Nicola...@capway.com - consultÅ uniquement le week end
////////////////////////////////////////////////////////////////////

Matt Mello

unread,
Oct 28, 1998, 3:00:00 AM10/28/98
to
I don't know anything about TMediaPlayer objects, but can you just use
Show() and Hide() in the form so that you don't have to recreate it?

Nicolas Frank wrote in message <3636E7...@supaero.fr>...

Nicolas Frank

unread,
Oct 28, 1998, 3:00:00 AM10/28/98
to
I have already thougth about that, but I really need to be able to
destroy and recreate this form (I use some very high memory cost stuf on
it).

Does anybody has another idea ?

Thank's.

Jeff Garrett

unread,
Oct 28, 1998, 3:00:00 AM10/28/98
to Nicolas Frank
Just a guess - but maybe the problem is that you are closing it
in the destroy, and maybe you need to use OnClose or something...
0 new messages