Board index » cppbuilder » problems with opendialog and savedialog within the ide

problems with opendialog and savedialog within the ide


2004-01-21 09:12:54 PM
cppbuilder34
When I execute the program using run, it appears the cpu registers in a
window and stop its execution, but when I build it and run it as a
separated program everything is ok, any idea of how to solve this {*word*193}
problem?
void __fastcall TForm1::LoadProjectClick(TObject *Sender)
{
if (OpenDialog1->Execute())
{
try
{
TreeProject->LoadFromFile(OpenDialog1->FileName);
}
catch(...)
{
Application->MessageBox("Can't perform one of the following file
operations: Open, Seek, Read, Close.", "File Error", IDOK);
}
}
}
 
 

Re:problems with opendialog and savedialog within the ide

Hi,
if I understand you right, you start your program from the ide it occurs a
window with the title "CPU".
This is the window from the internal de{*word*81}. Have a look into the menu
"view/ debug window".
Detlef
"Juan Ignacio Videla" < XXXX@XXXXX.COM >schrieb im Newsbeitrag
Quote
When I execute the program using run, it appears the cpu registers in a
window and stop its execution, but when I build it and run it as a
separated program everything is ok, any idea of how to solve this {*word*193}
problem?


void __fastcall TForm1::LoadProjectClick(TObject *Sender)
{
if (OpenDialog1->Execute())
{
try
{
TreeProject->LoadFromFile(OpenDialog1->FileName);
}
catch(...)
{
Application->MessageBox("Can't perform one of the following file
operations: Open, Seek, Read, Close.", "File Error", IDOK);
}
}
}

 

Re:problems with opendialog and savedialog within the ide

Yes I know, but it appears because of some kind of debuging and stop the
execution of the program. Do you know how to avoid this?
Detlef wrote:
Quote
Hi,
if I understand you right, you start your program from the ide it occurs a
window with the title "CPU".
This is the window from the internal de{*word*81}. Have a look into the menu
"view/ debug window".
Detlef

"Juan Ignacio Videla" < XXXX@XXXXX.COM >schrieb im Newsbeitrag
news:400e7ad7$ XXXX@XXXXX.COM ...

>When I execute the program using run, it appears the cpu registers in a
>window and stop its execution, but when I build it and run it as a
>separated program everything is ok, any idea of how to solve this {*word*193}
>problem?
>
>
>void __fastcall TForm1::LoadProjectClick(TObject *Sender)
>{
>if (OpenDialog1->Execute())
>{
>try
>{
>TreeProject->LoadFromFile(OpenDialog1->FileName);
>}
>catch(...)
>{
>Application->MessageBox("Can't perform one of the following file
>operations: Open, Seek, Read, Close.", "File Error", IDOK);
>}
>}
>}
>



 

{smallsort}

Re:problems with opendialog and savedialog within the ide

I think you disabled the debug information from the project. Enable it
again:
Project/Options/Compiler
Press the button "Full debug" lower left corner on the tab.
Without the debug information, the integrated de{*word*81} ( startet with run)
knows nothing about the program, so it shows the assember code.
Hope this will help.
Detlef
"Juan Ignacio Videla" < XXXX@XXXXX.COM >schrieb im Newsbeitrag
Quote
Yes I know, but it appears because of some kind of debuging and stop the
execution of the program. Do you know how to avoid this?

Detlef wrote:

>Hi,
>if I understand you right, you start your program from the ide it occurs
a
>window with the title "CPU".
>This is the window from the internal de{*word*81}. Have a look into the menu
>"view/ debug window".
>Detlef
>
>"Juan Ignacio Videla" < XXXX@XXXXX.COM >schrieb im Newsbeitrag
>news:400e7ad7$ XXXX@XXXXX.COM ...
>
>>When I execute the program using run, it appears the cpu registers in a
>>window and stop its execution, but when I build it and run it as a
>>separated program everything is ok, any idea of how to solve this {*word*193}
>>problem?
>>
>>
>>void __fastcall TForm1::LoadProjectClick(TObject *Sender)
>>{
>>if (OpenDialog1->Execute())
>>{
>>try
>>{
>>TreeProject->LoadFromFile(OpenDialog1->FileName);
>>}
>>catch(...)
>>{
>>Application->MessageBox("Can't perform one of the following file
>>operations: Open, Seek, Read, Close.", "File Error", IDOK);
>>}
>>}
>>}
>>
>
>
>

 

Re:problems with opendialog and savedialog within the ide

Juan Ignacio Videla < XXXX@XXXXX.COM >wrote:
Quote

Please trim your posts.
~ JD
 

Re:problems with opendialog and savedialog within the ide

The full debug option is enabled, after the cpu window appears I keep
pressing the F9 key for sometime and the opendialog modal window finally
appear...
I am working in windows 2000 is there any incompatibility reported?
Detlef wrote:
Quote
I think you disabled the debug information from the project. Enable it
again:
Project/Options/Compiler
Press the button "Full debug" lower left corner on the tab.
Without the debug information, the integrated de{*word*81} ( startet with run)
knows nothing about the program, so it shows the assember code.

Hope this will help.
Detlef
"Juan Ignacio Videla" < XXXX@XXXXX.COM >schrieb im Newsbeitrag
news:400e7f56$ XXXX@XXXXX.COM ...

>Yes I know, but it appears because of some kind of debuging and stop the
>execution of the program. Do you know how to avoid this?
>
>Detlef wrote:
>
>
>>Hi,
>>if I understand you right, you start your program from the ide it occurs

a

>>window with the title "CPU".
>>This is the window from the internal de{*word*81}. Have a look into the menu
>>"view/ debug window".
>>Detlef
>>
>>"Juan Ignacio Videla" < XXXX@XXXXX.COM >schrieb im Newsbeitrag
>>news:400e7ad7$ XXXX@XXXXX.COM ...
>>
>>
>>>When I execute the program using run, it appears the cpu registers in a
>>>window and stop its execution, but when I build it and run it as a
>>>separated program everything is ok, any idea of how to solve this {*word*193}
>>>problem?
>>>
>>>
>>>void __fastcall TForm1::LoadProjectClick(TObject *Sender)
>>>{
>>>if (OpenDialog1->Execute())
>>>{
>>>try
>>>{
>>>TreeProject->LoadFromFile(OpenDialog1->FileName);
>>>}
>>>catch(...)
>>>{
>>>Application->MessageBox("Can't perform one of the following file
>>>operations: Open, Seek, Read, Close.", "File Error", IDOK);
>>>}
>>>}
>>>}
>>>
>>
>>
>>