Subversion Repositories spk

Rev

Rev 1 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 109
Line 11... Line 11...
11
{
11
{
12
	System::String ^temp = IO::Path::GetTempPath();
12
	System::String ^temp = IO::Path::GetTempPath();
13
 
13
 
14
	Threading::Mutex ^mutex = nullptr;
14
	Threading::Mutex ^mutex = nullptr;
15
	try {
15
	try {
-
 
16
		bool autoClose = Form1::CheckCommandArguments(args);
-
 
17
 
16
		mutex = gcnew Threading::Mutex(false, "SpkCreator");
18
		mutex = (autoClose) ? nullptr : gcnew Threading::Mutex(false, "SpkCreator");
-
 
19
 
17
		if ( mutex->WaitOne(0, false)) 
20
		if ( !mutex || mutex->WaitOne(0, false)) 
18
		{
21
		{
19
			// Enabling Windows XP visual effects before any controls are created
22
			// Enabling Windows XP visual effects before any controls are created
20
			Application::EnableVisualStyles();
23
			Application::EnableVisualStyles();
21
			Application::SetCompatibleTextRenderingDefault(false); 
24
			Application::SetCompatibleTextRenderingDefault(false); 
22
 
-
 
23
 
25
 
24
			if ( File::Exists(temp + "\\creator_load.dat") )
26
			if ( File::Exists(temp + "\\creator_load.dat") )
25
			{
27
			{
26
				try { File::Delete(temp + "\\creator_load.dat"); }
28
				try { File::Delete(temp + "\\creator_load.dat"); }
27
				catch (System::IO::IOException ^) {}
29
				catch (System::IO::IOException ^) {}