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?
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?
- 2 This looks like a bug in C++ Builder 12. I would ask the embarcadero support. – jabaa Commented Feb 17 at 11:40
- The flip side is that I think static analysis tools wouldn't like the size of that array being on the stack. – sweenish Commented Feb 17 at 17:21
- I can't reproduce a crash using 12.2 Patch 2 on Win10, with or without the array present. What are the EXACT steps from beginning to end, including configurations, etc to reproduce the crash? – Remy Lebeau Commented Feb 18 at 17:41
- Just to help: We have compiled this code from RAD Studio 12.2 using clang64x, clang64, clang32, Classic - all done using "debug" settings. Works fine for all four. – Roger Cigol Commented 2 days ago
1 Answer
Reset to default 0This 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.