/[Sims3RigEditor]/trunk/GR2RigEditor/GR2RigEditor.cpp
ViewVC logotype

Diff of /trunk/GR2RigEditor/GR2RigEditor.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/GR2RigEditor/GR2RigEditor.cpp	2010/08/07 02:42:31	48
+++ trunk/GR2RigEditor/GR2RigEditor.cpp	2010/08/08 07:43:37	49
@@ -4,16 +4,24 @@
 #include "..\gr2lib_cpp\guicon.h"
 #include "..\gr2lib_cpp\gr2lib_rigeditor_frm.h"
 
+using namespace System::Diagnostics;
+
 [STAThreadAttribute]
 int main(array<System::String ^> ^args)
 {
 	// Enabling Windows XP visual effects before any controls are created
 	Application::EnableVisualStyles();
 	Application::SetCompatibleTextRenderingDefault(false); 
-
-	AttachConsole_();
-	// Create the main window and run it
-	Application::Run(gcnew gr2lib_rigeditor_frm());
-	FreeConsole_();
+	try
+	{
+		AttachConsole_();
+		// Create the main window and run it
+		Application::Run(gcnew gr2lib_rigeditor_frm());
+		FreeConsole_();
+	}
+	catch(Exception^ ex)
+	{
+		System::Diagnostics::Debug::WriteLine(ex->ToString());
+	}
 	return 0;
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22