Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/C++    [ Add a report in this area ]  
Report #:  96969   Status: Need Feedback
Large array debugging broken (compared to CB6)
Project:  C++Builder Build #:  C++Builder? XE
Version:    15.0 Submitted By:   Simon Quin
Report Type:  Basic functionality failure Date Reported:  8/1/2011 6:43:58 AM
Severity:    Commonly encountered problem Last Updated: 8/1/2011 7:09:41 AM
Platform:    All platforms Internal Tracking #:  
Resolution: Need More Info (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
If you define a large array of chars (100K) as part of a structure you cannot see it or any of the other parts of the structure. CBuilder 6 has no such limitations and when you push the array size to preclude inspection the other parts of the structure are displayed in the inspection window.
Steps to Reproduce:
New project. Then add this:

#define ARRAY_SIZE 10000

typedef struct
{

int JustAnInt;

bool JustABool;

unsigned char TxBuffer[ARRAY_SIZE];
}TestStruct;

static TestStruct MyStruct;

.....then initialise the array:

int Count;
time_t seconds;
time(&seconds);
srand((unsigned int) seconds);
MyStruct.JustAnInt = rand();
MyStruct.JustABool = (bool)rand();
for(Count=0;Count<ARRAY_SIZE;Count++)
{
   MyStruct.TxBuffer[Count] = (unsigned char)rand();
}

After initialisation Debug->Inspect the structure. All is visible. Now increase the array size and repeat

#define ARRAY_SIZE 10000

The values are no longer visible. CBuilder 6 does not have this limitation.

XE and CB6 projects to illustrate this are attached.
Workarounds
None so far
Attachment
None
Comments

Tomohiro Takahashi at 8/1/2011 7:08:52 AM -
Could you please attach sample project to reproduce/verify your issue?

Server Response from: ETNACODE01