Home > Archive (Community help, from old helpdesk) > Media Player SDK can't let the application exit

Media Player SDK can't let the application exit

Avatar image
Aug 24, 2015
Archive Agent wrote
Media Player SDK .net4 8.1.17.0 version. Some times play a file and wait little bit then close application ,the SDK still don't let the process end.

I'm use WPF test it OnExit event already called, but the application still can't completely exit. I try use Environment.exit(0); and Some times still has this problem. I also find visual studio 2012 output:

“System.InvalidCastException”类型的第一次机会异常在 VisioForge.MediaFramework.dll 中发生
“System.InvalidCastException”类型的第一次机会异常在 VisioForge.MediaFramework.dll 中发生

qakmak on March 16, 2014 19:09
Completed
0
Vote
Reply
6 Answers
Aug 24, 2015
Archive Agent agent wrote
qakmak

Today I still can't exit application one time.

visual studio 2012 output:

System.Runtime.InteropServices.InvalidComObjectException 类型的第一次机会异常在 VisioForge.MediaFramework.dll中发生

on March 25, 2014 09:39
Aug 24, 2015
Archive Agent agent wrote
qakmak

and the CPU used 100%(the application process)

on March 25, 2014 09:40
Aug 24, 2015
Archive Agent agent wrote
qakmak

I found the problem is because a memory leak problem from the a filter. it can display a memory leak message box when exit if use XP and release version app.

on April 12, 2014 20:27
Aug 24, 2015
Archive Agent agent wrote
qakmak

Maybe that's not about the SDK. sorry

on April 12, 2014 20:27
Aug 24, 2015
Archive Agent agent wrote
Frank Hernov

I had exactly the same problem, but solved it by doing a
MeditPlayer1 = Nothing
When closing the form. This should solve your problem.

on June 03, 2014 07:56
Aug 24, 2015
Archive Agent agent wrote
qakmak

Hi Frank, Thank you for reply. I think looks like my problem because of memory leak. some times I exit will get net-broadcasteventwindow error. but I will try the way which you told, thanks.

on June 03, 2014 08:19