Click here to Skip to main content
15,851,453 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I try to make a AxWindowsMediaPlayer control on form whit MONO on raspian. It work very well on Windows, but on Raspian I have this error:

<pre>"System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Hmi800App.PlayerVideoForm'.
at System.Windows.Forms.Control.CreateHandle () [0x00013] in <28e46de2d20c496895000ef0abfc2106>:0
at System.Windows.Forms.Form.CreateHandle () [0x00000] in <28e46de2d20c496895000ef0abfc2106>:0
at Hmi800App.PlayerVideoForm.InitializeControl (System.String _url, System.Boolean alredySee, System.String DpiDescription, System.String _dpiType) [0x0011e] in <4c680c0bc03a4b558a55ee653edb38ad>:0

What I have tried:

It same that handle of control is not created.
Can you help me?
Updated 17-Aug-22 22:36pm

1 solution

Windows Media Player is - as the name suggests - a Windows app: it doesn't exist in any flavour of Linux, so you can't use it or any control that expects to contain it in a Raspbian Pi app.
Share this answer
Valentina82 18-Aug-22 3:46am    
VLC is a right alternative solution? Becouse there are many package of vlc and I don't now the better for my solution.

Thank's a lot

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900