Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #812: ObjectDisposedException When Full Screen Windowed
Product:
TV3D SDK 6.5
Language:
C#
Current State:
New
Resolution:
Unconfirmed
Created On:
January 8th, 2008
Last Modified:
January 8th, 2008
Reported By:
Lyrical
When you run any TV Application in windowed mode you can Maximise the window. If you exit the application while the window is maximised you get the following exception in the Main application thread

static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
STAThread
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmCanvas());
}
}

Error on line Application.Run(new frmCanvas());


This causes the application to not close properly

This is the debug from the exception

System.ObjectDisposedException was unhandled
Message="Cannot access a disposed object. Object name: 'frmCanvas'."
Source="System.Windows.Forms"
ObjectName="frmCanvas"
StackTrace:
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Form.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.ContainerControl.FocusActiveControlInternal()
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at TV3D65_Vehicle_Starter_Kit.Program.Main() in D:Truevision3D ProjectsTV3D 6.5 Vehicle Starter Kit v1.0TV3D 6.5 Vehicle Starter Kit v1.0Program.cs:line 18
at System.AppDomain.nExecuteAssembly(Assembly assembly, String args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()


PC Information:

Intel P4 3Ghz
ATI Radeon 9800 Pro
1gb Ram


No virus checkers running or other applications
i have triied this with the least amount of application running for you.

Thank you.
Gary Lehan
Aka. Lyrical

Comments:

No comments available.