BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DBGrid, Stack overflow

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (InterBase Express)
View previous topic :: View next topic  
Author Message
Safwan
Guest





PostPosted: Fri Apr 21, 2006 8:03 pm    Post subject: DBGrid, Stack overflow Reply with quote



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





PostPosted: Fri Apr 21, 2006 9:03 pm    Post subject: Re: DBGrid, Stack overflow Reply with quote



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





PostPosted: Mon Apr 24, 2006 10:03 pm    Post subject: Re: DBGrid, Stack overflow Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (InterBase Express) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.