 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
JM Guest
|
Posted: Sat Nov 29, 2003 5:02 am Post subject: Estackoverflow Error when using values between forms |
|
|
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
|
Posted: Sat Nov 29, 2003 5:42 am Post subject: Re: Estackoverflow Error when using values between forms |
|
|
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 |
|
 |
|
|
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
|
|