LEADTOOLS Support
Multimedia
Multimedia SDK Questions
ConvertCtrl constructor throws on cast to IConnectionPointContainer
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, April 17, 2013 5:04:10 AM(UTC)
Groups: Registered
Posts: 4
ltmm175.dll version 17.5.0.25
LeadTools.Mutlimedia.dll version 17.5.026
The ConvertCtrl is being created on a separate single thread apartment (STA) thread.
This worked prior to using the latest LTMM 17.5 bits.
<BLOCKQUOTE><table width="85%"><tr><td class="quoteTable"><table width="100%"><tr><td width="100%" valign="top" class="txt4">
Message: System.InvalidCastException: Source object does not expose IConnectionPointContainer.
at System.Windows.Forms.AxHost.ConnectionPointCookie..ctor(Object source, Object sink, Type eventInterface, Boolean
hrowException)
at System.Windows.Forms.AxHost.ConnectionPointCookie..ctor(Object source, Object sink, Type eventInterface)
at Leadtools.Multimedia.ConvertCtrl.CreateSink()
at Leadtools.Multimedia.ControlHost.InitHost(String clsid, String intid)
at Leadtools.Multimedia.ControlHost..ctor(String clsid, String intid)
at Leadtools.Multimedia.ConvertCtrl..ctor()
at StarWitness.Interview.DVD.DVDCreator3.StartBurnThread(Object parm) in C:\Users\wta\Documents\Visual Studio 2010\
ojects\Signalscape\Interview\trunk\src\Interview.DVD\DVDCreator3.cs:line 386
</td></tr></table></td></tr></table></BLOCKQUOTE>
PS. I tried to the BBCode 'code' tag to format the stack trace but kept getting an error when I tried to preview it.
#2
Posted
:
Wednesday, April 17, 2013 7:46:55 AM(UTC)
Groups: Registered
Posts: 4
After a little more research we found that the C# Convert sample fails as well starting with LTMM version 17.5.120701.024608 up to present.
The last one that works is 17.5.120405.115044
#3
Posted
:
Thursday, April 18, 2013 7:14:05 AM(UTC)
Groups: Registered, Tech Support
Posts: 179
Bill,
One of my colleagues tested a similar issue and it was subsequently fixed. Please download the latest version of Multimedia 17.5 and test with it. If you don't have download instructions or you still face problems getting the fix, please send an email to
support@leadtools.com and include the following:
1. Your toolkit serial number (do NOT post it here).
2. The build number (file properties version info) of Leadtools.Multimedia.dll. The build format should be 17.5.0.NN, where NN are 2 digits only.
3. A detailed description of the steps and programs needed to reproduce the issue, including the VS version, the Windows version and the .NET framework you're using.
4. A Link to this forum.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.
#4
Posted
:
Friday, October 4, 2013 6:22:37 AM(UTC)
Groups: Registered, Tech Support
Posts: 207
Was thanked: 3 time(s) in 3 post(s)
You must also use the constructor overload allowing you to specify whether you wish to create the control in a windowless environment.
Pass "true" for the parameter and that should get rid of this error.
Travis Montgomery
Senior Sales Engineer
LEADTOOLS Support
Multimedia
Multimedia SDK Questions
ConvertCtrl constructor throws on cast to IConnectionPointContainer
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.