Andreas Zahnleiter
Andreas Zahnleiter

Reputation: 49

C++ Builder 12: IDE crashes debugging a 32-bit console application

OS: Windows 11 Pro 24H2
IDE: RAD Studio 12.2 Patch 2

New test project, 32-bit console application:

#include <iostream>
#include <tchar.h>

int _tmain(int argc, _TCHAR* argv[])
{
  char txt[100][50];

  printf("Hello World!");
}

If I uncomment the array txt, all is fine. If I switch to 64-bit, all is fine. Does somebody have an idea why this array doesn't work in 32-bit?

Upvotes: 2

Views: 76

Answers (1)

Andreas Zahnleiter
Andreas Zahnleiter

Reputation: 49

This works for me:

Answer from Embarcadero Support:

If you logged a support case about the IDE closing while debugging, (I presume this is on 12.2) I would have told you to do the follow:

  • Shut the IDE down.
  • run regedit
  • goto this key: HKEY_CURRENT_USER\Software\Embarcadero\BDS\23.0\Debugging
  • add a string entry (if it is not there ) called HighlightDebugWindows and then set the value to False
  • now start the IDE and see if the same problem occurs.

Upvotes: 0

Related Questions