Workaround for Windows 11 crashing TD 5.x, 6.x and 7.x

Discussion forum about all things Team Developer 5.x and 6.x
Dave Rabelink
Founder/Site Admin
Founder/Site Admin
Netherlands
Posts: 3384
Joined: 24 Feb 2017, 09:12
Location: Gouda, The Netherlands

Workaround for Windows 11 crashing TD 5.x, 6.x and 7.x

Post by Dave Rabelink » 28 Mar 2022, 12:11

BEWARE: THIS FIX IS ON OWN RISK. MAKE SURE WHAT YOU ARE DOING BEFORE APPLYING THE FIX

Issue description
On Windows 11, these Team Developer IDE versions are unable to start:
  • TD 5.x
  • TD 6.x
  • TD 7.x, except TD 7.3.6 (and higher), except TD 7.4.2 (and higher)
When starting, the TD IDE shows the splash screen but will crash (with or without a Windows error).

The issue is discussed in this forum thread:
viewtopic.php?f=26&t=73436

The crash occurs when TD is reading the list of registered COM components while starting up.
Investigation found that a particular registry entry causes it:

Computer\HKEY_CLASSES_ROOT\PackagedCom\ClassIndex\{D3E34B21-9D75-101A-8C3D-00AA001A1652}

Looking at this key it is linked to MsPaint.

This is the content of the key:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\PackagedCom\ClassIndex\{D3E34B21-9D75-101A-8C3D-00AA001A1652}]

[HKEY_CLASSES_ROOT\PackagedCom\ClassIndex\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Microsoft.Paint_11.2110.0.0_x64__8wekyb3d8bbwe]
When this key is present in that location in the registry, TD will encounter an issue and will crash.


Workaround
The idea of this workaround is to rename or delete the key from registry before TD is started.
MsPaint will still work but it is at this moment unclear what functionality will be unavailable when the key is deleted.
You can always revert by adding the key back to the registry.

There are several ways to apply the workaround.

1) Manually rename or delete the key using regedt32.
Go to the key and delete it.
Computer\HKEY_CLASSES_ROOT\PackagedCom\ClassIndex\{D3E34B21-9D75-101A-8C3D-00AA001A1652}

2) Using a batch file or command prompt
Execute this line:
reg delete HKEY_CLASSES_ROOT\PackagedCom\ClassIndex\{D3E34B21-9D75-101A-8C3D-00AA001A1652}

You may need to start cmd or the batch file as administrator.

A working batch file is available in the archive:
UsingBatchFiles\Win11_DeleteMsPaint.bat

3) Using a reg file
A reg file contains actions to be performed. See sample file in the archive:
UsingRegFiles\Win11_DeleteMsPaint.reg

Double click (or run as admin) the reg file to execute.



To revert the deletion of the key you can:

1) Manually add the key information using regedt32.

2) Using a batch file or command prompt.
Execute this line:
reg add HKEY_CLASSES_ROOT\PackagedCom\ClassIndex\{D3E34B21-9D75-101A-8C3D-00AA001A1652}\Microsoft.Paint_11.2110.0.0_x64__8wekyb3d8bbwe

You may need to start cmd or the batch file as administrator.

A working batch file is available in the archive:
UsingBatchFiles\Win11_AddMsPaint.bat

3) Using a reg file.
See sample file in the archive:
UsingRegFiles\Win11_AddMsPaint.reg

Double click (or run as admin) the reg file to execute.

Here the ZIP containing batch and registry files and a README.
Win11_FixRegistryMsPaint.zip
You do not have the required permissions to view the files attached to this post.
Regards,
Dave Rabelink

Image
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel

Rémi
France
Posts: 3
Joined: 17 Sep 2021, 09:42
Location: France

Re: Workaround for Windows 11 crashing TD 5.x, 6.x and 7.x

Post by Rémi » 01 Jun 2022, 12:24

Seams works fine for me so far, I did not tries all functions yet. Debug and code edition are OK.
Thanks a lot
TD 6.3 on windows 11, 21h2 build 22000.675

Return to “General Discussion”

Who is online

Users browsing this forum: [Bing], [Ccbot] and 1 guest