 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Safwan Guest
|
Posted: Fri Apr 21, 2006 8:03 pm Post subject: DBGrid, Stack overflow |
|
|
HI
Borland C++Builder2006. Interbase 7.5 SP1, IBX 10.10, WinXP.
try this :
create table Data (
Serial integer not null primary key,
AreaID Integer,
AreaName Varchar(40)
);
Create an IBDatabase, IBTranaction, IBDataSet, DataSource
Create DBGrid, and connect them.
I didn't change any default properties of any.
Create OnChange event on AreaID like :
void __fastcall TForm1::IBDataSet1AREAIDChange(TField *Sender)
{
IBDataSet1AREANAME->AsString = "Enter area name here";
}
try to type any number in AreaID column in DBGrid and press enter.
I get this error
---------------------------
Debugger Exception Notification
---------------------------
Project Project1.exe raised exception class EStackOverflow with message
'Stack overflow'.
---------------------------
Break Continue Help
---------------------------
I try it with DBEdit insted of DBGrid, it works fine.
I try the same in Delphi 2006, and get the same result.
any comment.
Another question about C++Builder; When we prospect a new version of
C++Builder that not a preview?
Safwan. |
|
| Back to top |
|
 |
Safwan Guest
|
Posted: Fri Apr 21, 2006 9:03 pm Post subject: Re: DBGrid, Stack overflow |
|
|
I will answer my self !!!!..
This is a bug in DBGrid,, see
http://qc.borland.com/wc/qcmain.aspx?d=23141
to avoid this error, rewrite your event like this :
void __fastcall TForm1::IBDataSet1AREAIDChange(TField *Sender)
{
Sender->OnChange = NULL;
IBDataSet1AREANAME->AsString = "Enter area name here";
Sender->OnChange = IBDataSet1AREAIDChange;
}
Thanks. |
|
| Back to top |
|
 |
Quinn Wildman Guest
|
Posted: Mon Apr 24, 2006 10:03 pm Post subject: Re: DBGrid, Stack overflow |
|
|
It was posted in the registered users area for C++ Builder on 12/12/2005.
Safwan wrote:
| Quote: |
Another question about C++Builder; When we prospect a new version of
C++Builder that not a preview?
Safwan.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|