unosquare / ffmediaelement

FFME: The Advanced WPF MediaElement (based on FFmpeg)
https://unosquare.github.io/ffmediaelement/
Other
1.17k stars 238 forks source link

Winforms Compatibility #589

Open tsoos99dev opened 2 years ago

tsoos99dev commented 2 years ago

Winforms Compatibility

I couldn't run a WinForms app after installing the latest version from NuGet. Got

Exception thrown: 'System.NullReferenceException' in ffme.win.dll
Object reference not set to an instance of an object.

Issue Categories

Version Information

Steps to Reproduce

  1. Create a new WinFormsApp with target .NET Framework 4.6.1
  2. Install latest FFME.Windows NuGet package
  3. Build/Run

Sample Code

C

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace FFMETest2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            var player = new Unosquare.FFME.MediaElement();
        }
    }
}
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.