HandBrakeInterop when run in .NET 4.5 Crashing

Archive of historical development discussions
Discussions / Development has moved to GitHub
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
Alkrun
Posts: 1
Joined: Sun Feb 17, 2013 2:15 pm

HandBrakeInterop when run in .NET 4.5 Crashing

Post by Alkrun » Sun Feb 17, 2013 2:24 pm

I'm working on writing a .NET app that uses HandBrake. The HandBrakeInterop project looks like the best candidate to do what I need so I downloaded the code from Subversion and built it, where the tests run fine. But running in my app which is built targeting .NET 4.5, HandBrakeInstance crashes when I call StartScan(). Same behavior can be seen if I open the HandBrakeInterop solution in Visual Studio 2012, switch the Test Project's Build to target .NET 4.5. The tests begin to fail. Switch back to .NET 4.0 and they succeed.

I'm going to start digging into this, but was curious if anyone had seen this and has ideas or was already working on it. A few quick searches turned up http://social.msdn.microsoft.com/Forums ... 1b9d04419/ as a possible issue.

RandomEngy
Posts: 49
Joined: Thu Mar 29, 2007 2:56 am

Re: HandBrakeInterop when run in .NET 4.5 Crashing

Post by RandomEngy » Wed Apr 24, 2013 9:59 pm

That MSDN thread refers to use of an incorrect type in a p-invoke signature. Do you think that any of the current p-invoke signatures we have are wrong? (By the way I'm the main dev on HandBrakeInterop and was not aware of the problem until now)

Post Reply