Hi All,
Just got this suggestion to help resolve possible start-up issues of GameGuru, but I don't have any systems that exhibit any issues. I am posting this code in case anyone out there as such a system and this code might help. You will need to use this code with the latest version on GitHub to see if it works, but please comment back here if this change to the start-up code is prudent (and more importantly, solves a problem):
Code:
// prepare data for launch
seinfo.fMask = SEE_MASK_DEFAULT;//SEE_MASK_NOCLOSEPROCESS;
seinfo.hwnd = NULL;
seinfo.lpVerb = T ( "open" );
seinfo.lpFile = szExecutable;
seinfo.lpParameters = _T ( theApp.mCommandLineString );
seinfo.lpDirectory = szDirUNI;
seinfo.nShow = SW_SHOW;//SW_HIDE;
// shell execute mapeditor
if ( ShellExecuteEx ( &seinfo ) == TRUE )
{
// wait for 10 seconds before calling SetSecurity info to give time for directx 11 initialization
for (DWORD initTime = timeGetTime(); timeGetTime() - initTime < 10000;);
// set security to allow IDE to terminate the process when it likes (old ones for example)
SetSecurityInfo(seinfo.hProcess, SE_KERNEL_OBJECT, PROCESS_TERMINATE, NULL, NULL, NULL, NULL);
PC SPECS: Windows 8.1 Pro 64-bit, Intel Core i7-5930K (PASSMARK:13645), NVIDIA Geforce GTX 980 GPU (PASSMARK:9762) , 32GB RAM