Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 2062 - TeeGrid throws an Access Violation when is tried to set value to cells
Summary: TeeGrid throws an Access Violation when is tried to set value to cells
Status: RESOLVED FIXED
Alias: None
Product: TeeGrid for Delphi
Classification: Unclassified
Component: Grid (show other bugs)
Version: unspecified
Hardware: PC Windows
: High blocker
Target Milestone: ---
Assignee: david berneda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-17 10:05 EDT by sandra pazos
Modified: 2018-07-17 10:05 EDT (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sandra pazos 2018-07-17 10:05:46 EDT
TeeGrid throws an Access Violation when is tried to set value to cells.  The code below reproduce the problem.

void __fastcall TForm1::AddSampleData()
{
//variables
Data = new TStringsData(5,20,70);

  Data->Headers[0] ="C0";
  Data->Headers[1] ="C1";
  Data->Headers[2] ="C2";
  Data->Headers[3] ="C3";
  Data->Headers[4] ="C4";

  for (int col=0; col < Data->Columns; col++) {
	for (int row=0; row < Data->Rows; row++) {
	  Data->Cells[col][row] = FloatToStr(Random(100));
	}
  }
	TeeGrid1->Data = Data;
}