最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c++builder - C++ Builder 12: IDE crashes debugging a 32-bit console application - Stack Overflow

programmeradmin4浏览0评论

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?

Share Improve this question edited Feb 17 at 17:31 Remy Lebeau 597k36 gold badges500 silver badges844 bronze badges asked Feb 17 at 9:56 Andreas ZahnleiterAndreas Zahnleiter 491 silver badge2 bronze badges New contributor Andreas Zahnleiter is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. 4
  • 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
Add a comment  | 

1 Answer 1

Reset to default 0

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.
发布评论

评论列表(0)

  1. 暂无评论