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 

Estackoverflow Error when using values between forms

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
JM
Guest





PostPosted: Sat Nov 29, 2003 5:02 am    Post subject: Estackoverflow Error when using values between forms Reply with quote



I have two forms, a MainForm and a Form that brings up an options dialog
called Options Form. I'm attempting to simply assign the Checked
property of some menu items on my main form to some checkboxes on my
options form. Whether the form is auto created or manually using new I
get the EStackOverflow as soon as the assignment statement below is
reached. Both values Evaluate properly within the Watch window of the
debugger. The assign statement occurs when the menu item is selected
before the Show event of the options form. Using BCB 6.0

void __fastcall TMainForm1::Options1Click(TObject *Sender)
{
// This line causes the stackoverflow
OptionsForm->NavigationChkBox->Checked = NavigationBarMI->Checked;

OptionsForm->ShowModal();
}

Back to top
JM
Guest





PostPosted: Sat Nov 29, 2003 5:42 am    Post subject: Re: Estackoverflow Error when using values between forms Reply with quote



Duh, nevermind, I found a little recursive call.

On 11/28/2003 11:02 PM JM spoke thusly

Quote:
I have two forms, a MainForm and a Form that brings up an options dialog
called Options Form. I'm attempting to simply assign the Checked
property of some menu items on my main form to some checkboxes on my
options form. Whether the form is auto created or manually using new I
get the EStackOverflow as soon as the assignment statement below is
reached. Both values Evaluate properly within the Watch window of the
debugger. The assign statement occurs when the menu item is selected
before the Show event of the options form. Using BCB 6.0

void __fastcall TMainForm1::Options1Click(TObject *Sender)
{
// This line causes the stackoverflow
OptionsForm->NavigationChkBox->Checked = NavigationBarMI->Checked;

OptionsForm->ShowModal();
}



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) 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.