RichTufty
17-08-2007 10:43:41
Hey there!
Has anyone used C#/MOGRE to create an ActiveX usercontrol so that it can be viewed in a web browser, well... Internet Explorer?
I'm trying to get my projects to run through a webbrowser, using C#. So far i have created an ActiveX control (COM wrapper for .NET), and it works great. Then i try and use MOGRE....
When i call...
... it crashes.
I can see that my AX control calls MOGRE, and MOGRE calls OGRE, but it crashes and raises an SHSException.
Here is the stack:
Any ideas?! Any help, advice or direction from here would be much appreciated!
Many thanks,
Tufty
Has anyone used C#/MOGRE to create an ActiveX usercontrol so that it can be viewed in a web browser, well... Internet Explorer?
I'm trying to get my projects to run through a webbrowser, using C#. So far i have created an ActiveX control (COM wrapper for .NET), and it works great. Then i try and use MOGRE....
When i call...
mRoot = new Root();
... it crashes.
I can see that my AX control calls MOGRE, and MOGRE calls OGRE, but it crashes and raises an SHSException.
Here is the stack:
************** Exception Text **************
System.Runtime.InteropServices.SEHException: External component has thrown an exception.
at Ogre.Root.{ctor}(Root* , basic_string<char\,std::char_traits<char>\,std::allocator<char> >* , basic_string<char\,std::char_traits<char>\,std::allocator<char> >* , basic_string<char\,std::char_traits<char>\,std::allocator<char> >* )
at Mogre.Root..ctor()
at AX.Viewer.Init() in C:\Projects\AX\AX\Viewer.cs:line 36
at AX.myControl.button1_Click_1(Object sender, EventArgs e) in C:\Projects\AX\AX\Class1.cs:line 119
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Any ideas?! Any help, advice or direction from here would be much appreciated!
Many thanks,
Tufty