Click here to Skip to main content
16,005,141 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: object to interface casting Pin
Christian Graus5-Mar-08 22:08
protectorChristian Graus5-Mar-08 22:08 
JokeRe: object to interface casting Pin
shadow_27-Mar-08 2:55
professionalshadow_27-Mar-08 2:55 
GeneralRe: object to interface casting Pin
Dave Kreskowiak6-Mar-08 7:52
mveDave Kreskowiak6-Mar-08 7:52 
GeneralRe: object to interface casting Pin
shadow_26-Mar-08 22:42
professionalshadow_26-Mar-08 22:42 
GeneralRe: object to interface casting Pin
Dave Kreskowiak7-Mar-08 3:12
mveDave Kreskowiak7-Mar-08 3:12 
GeneralRe: object to interface casting Pin
shadow_27-Mar-08 4:10
professionalshadow_27-Mar-08 4:10 
NewsRe: object to interface casting Pin
shadow_27-Mar-08 2:58
professionalshadow_27-Mar-08 2:58 
GeneralWindowless ActiveX controls are not supported Pin
tjskcp5-Mar-08 15:51
tjskcp5-Mar-08 15:51 
Working in VB.Net, Visual Studio 2000 Standard, Windows XP Pro.

Using a 3rd party video editor ActiveX control.
Have 3 forms in the program using this control. First time one of the forms is opened, the ActiveX control performs correctly. After the form is closed, attempting to open any of the 3 forms with this control throws an exception error:

An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in system.windows.forms.dll
Additional information: Unable to get the window handle for the 'AxVideoEdit' control. Windowless ActiveX controls are not supported.

The line in the program VisualStudio stops at is located in the "Windows Form Designer generated code" section for the details on the form being opened:
CType(Me.vidEdit, System.ComponentModel.ISupportInitialize).EndInit()

(vidEdit is the VideoEdit ActiveX control)

Following is the error message details when running the actual program:
************************************************
************************************************
************************************************

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Reflection.TargetInvocationException: Unable to get the window handle for the 'AxVideoEdit' control. Windowless ActiveX controls are not supported. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at System.Windows.Forms.IOleObject.DoVerb(Int32 iVerb, IntPtr lpmsg, IOleClientSite pActiveSite, Int32 lindex, IntPtr hwndParent, COMRECT lprcPosRect)
at System.Windows.Forms.AxHost.DoVerb(Int32 verb)
at System.Windows.Forms.AxHost.InPlaceActivate()
--- End of inner exception stack trace ---
at System.Windows.Forms.AxHost.InPlaceActivate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.AxHost.EndInit()
at MyProgram.VidEdit.InitializeComponent()
at MyProgram.VidEdit..ctor()
at MyProgram.StartProgram.lblClipEdit_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Label.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.0
CodeBase: file:///c:/windows/microsoft.net/framework/v1.0.3705/mscorlib.dll
----------------------------------------
ActionPlusVideo
Assembly Version: 1.0.2980.30757
Win32 Version: 1.0.2980.30757
CodeBase: file:///C:/Program%20Files/MyProgram/MyProgram.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.0
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.3300.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.0
CodeBase: file:///c:/windows/assembly/gac/system/1.0.3300.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.0
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.3300.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
AxInterop.VIDEOEDITLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/MyProgram/AxInterop.VIDEOEDITLib.DLL
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.3300.0
Win32 Version: 7.00.9466
CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.3300.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------
Interop.VIDEOEDITLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/MyProgram/Interop.VIDEOEDITLib.DLL
----------------------------------------
AxInterop.MOVIEPLAYERLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/MyProgram/AxInterop.MOVIEPLAYERLib.DLL
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.

************************************************
************************************************
************************************************



Have tried using the forms with and without vidEdit.Dispose(), MyBase.Dispose(), etc., but no success.

Any suggestions?
GeneralRe: Windowless ActiveX controls are not supported Pin
Christian Graus5-Mar-08 16:29
protectorChristian Graus5-Mar-08 16:29 
GeneralRe: Windowless ActiveX controls are not supported Pin
tjskcp5-Mar-08 17:08
tjskcp5-Mar-08 17:08 
GeneralRe: Windowless ActiveX controls are not supported Pin
Christian Graus5-Mar-08 21:40
protectorChristian Graus5-Mar-08 21:40 
QuestionHow do I exit a loop early Pin
AAGTHosting5-Mar-08 14:09
AAGTHosting5-Mar-08 14:09 
AnswerRe: How do I exit a loop early Pin
Christian Graus5-Mar-08 14:12
protectorChristian Graus5-Mar-08 14:12 
GeneralRe: How do I exit a loop early Pin
AAGTHosting5-Mar-08 14:26
AAGTHosting5-Mar-08 14:26 
GeneralRe: How do I exit a loop early Pin
Christian Graus5-Mar-08 16:47
protectorChristian Graus5-Mar-08 16:47 
AnswerRe: How do I exit a loop early Pin
Nilesh Hapse5-Mar-08 18:29
Nilesh Hapse5-Mar-08 18:29 
GeneralDisplay table relations in datagridview Pin
regedit5-Mar-08 7:27
regedit5-Mar-08 7:27 
QuestionChallenging Crystal Reports / .NET Windows application question Pin
KreativeKai5-Mar-08 6:19
professionalKreativeKai5-Mar-08 6:19 
AnswerRe: Challenging Crystal Reports / .NET Windows application question [modified] Pin
KreativeKai5-Mar-08 8:17
professionalKreativeKai5-Mar-08 8:17 
GeneralRe: Challenging Crystal Reports / .NET Windows application question Pin
codemunch5-Mar-08 9:28
codemunch5-Mar-08 9:28 
GeneralRe: Challenging Crystal Reports / .NET Windows application question Pin
KreativeKai6-Mar-08 2:45
professionalKreativeKai6-Mar-08 2:45 
GeneralRe: Challenging Crystal Reports / .NET Windows application question Pin
codemunch6-Mar-08 8:44
codemunch6-Mar-08 8:44 
GeneralReading all data from port 80 Pin
stikiweb5-Mar-08 5:43
stikiweb5-Mar-08 5:43 
QuestionReport.Sections.Add gets an error, why? Pin
soporificeffect5-Mar-08 2:03
soporificeffect5-Mar-08 2:03 
GeneralTransparencykey not working Pin
Ahmad Zaidi5-Mar-08 1:12
Ahmad Zaidi5-Mar-08 1:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.