Failed to Create Main Window


After restarting your computer, the Safecode Defencecure tray icon fails to load, and you see a Safecode Defencecure dialog box with the error “Failed to create the main window.

Cause and Solution:

Starting with Windows 7, Microsoft started using GUID to identify system tray icons instead of ID in the earlier version of Windows.

If Safecode Defencecure had been uninstalled and reinstalled on the same system, the GUID for the tray icon executable file (shdtray.exe) had been cached by the system.

When the shdtray.exe runs again, Windows explorer wants to cache the icon GUID and store its information into the Windows registry, but the same information already exists.

So this process won’t complete. As a result, the tray icon won’t load, and the error message is displayed.

There are two ways to fix this problem:

Option 1:

Open Windows registry to: HKEY_CURRENT_USER\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\CurrentVersion\\TrayNotify

Delete “IconStreams” and “PastIconsStream” under TrayNotify

AND then got to Windows Task Manager, kill explorer.exe process, restart the computer (important step!!!)

Option 2:

Find the shdtray.exe file in the Safecode Defencecure installation folder, right-click the file, and select Properties.

Select the Register Compatibility and set the compatibility mode to “Vista.”

Now the tray icon should show up, and the error message should disappear.

Powered by BetterDocs

Leave a Reply

Your email address will not be published.Required fields are marked *