 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Raúl Lorenzo Guest
|
Posted: Tue Feb 07, 2006 9:00 am Post subject: EResNotFound Exception |
|
|
Hi,
I compile my project successfully, but when i load a form by clicking in
a button or other method, raises the next exception: Project GCVA.exe
raised exception class EResNotFound with message 'Resource Tfrm_bds not
found'
The question is that this project worked well until now (I upgrade to
BDS2006 from BCB6), but now crashes when i want to load new forms.
The code with raises the exception is:
void __stdcall Invoke_BDS(void)
{
->> frm_bds=new Tfrm_bds(NULL);
frm_bds->ShowModal();
delete frm_bds;
frm_bds=NULL;
}
This method (Invoke_BDS) is within a DLL which is loaded dynamically
from main APP through LoadLibrary and GetProcAddress functions.
After a lot of tests, I remove from project the source code which
crashes an added again later. I build all, run and work. Magic!!!!
What´s happens? I don´t know. The best is that suddenly appear another
exception like that in other form which never crashes before, (it
crashes at =new TForm with the same exception); so I repeat this
operation (remove the file and add it) but don´t work. :(
I am using C++Builder 2006.
Later, I deleted temp files, like .obj, *.tds, pre-compiler hearders and
others temp files, I reinserted the files into project too.
Anyway, i did it and first time works without problem but at third or
fourth time when I change some trivial things it crashes with the same
exception at the first point I told you
If I have to reinsert continuously files in project and without
guarantee I will become crazy, my project is about 10 Dlls and main exe
is about 30 files.
I think it could be a IDE bug.
Any Idea? |
|
| Back to top |
|
 |
Raul Lorenzo Guest
|
Posted: Wed Feb 08, 2006 10:05 pm Post subject: Re: EResNotFound Exception |
|
|
I created all the project group from scratch, after 2 hours adding files
and setting a basic configuration to compile the project it works.
So the known issue about project importer from previous versions.
Raúl Lorenzo escribió:
| Quote: | Hi,
I compile my project successfully, but when i load a form by clicking in
a button or other method, raises the next exception: Project GCVA.exe
raised exception class EResNotFound with message 'Resource Tfrm_bds not
found'
The question is that this project worked well until now (I upgrade to
BDS2006 from BCB6), but now crashes when i want to load new forms.
The code with raises the exception is:
void __stdcall Invoke_BDS(void)
{
->> frm_bds=new Tfrm_bds(NULL);
frm_bds->ShowModal();
delete frm_bds;
frm_bds=NULL;
}
This method (Invoke_BDS) is within a DLL which is loaded dynamically
from main APP through LoadLibrary and GetProcAddress functions.
After a lot of tests, I remove from project the source code which
crashes an added again later. I build all, run and work. Magic!!!!
What´s happens? I don´t know. The best is that suddenly appear another
exception like that in other form which never crashes before, (it
crashes at =new TForm with the same exception); so I repeat this
operation (remove the file and add it) but don´t work. :(
I am using C++Builder 2006.
Later, I deleted temp files, like .obj, *.tds, pre-compiler hearders and
others temp files, I reinserted the files into project too.
Anyway, i did it and first time works without problem but at third or
fourth time when I change some trivial things it crashes with the same
exception at the first point I told you
If I have to reinsert continuously files in project and without
guarantee I will become crazy, my project is about 10 Dlls and main exe
is about 30 files.
I think it could be a IDE bug.
Any Idea? |
|
|
| Back to top |
|
 |
Raul Lorenzo Guest
|
Posted: Sat Feb 11, 2006 1:03 am Post subject: Re: EResNotFound Exception (AGAIN The nightmare returns) |
|
|
After thinking the problem was solved creating the project from scratch,
this night when I executed the application it raised me this exception.
I don´t understand it, I am frustrated
Application->Initialize();
EXCEPTION HERE ---->frm_logo = new Tfrm_logo(Application);
frm_logo->ShowModal();
Application->ProcessMessages();
Application->Title = "";
Application->CreateForm(__classid(Tfrm_principal), &frm_principal);
Which´s compiles .dfm? brcc32?
Raul Lorenzo escribió:
| Quote: | I created all the project group from scratch, after 2 hours adding files
and setting a basic configuration to compile the project it works.
So the known issue about project importer from previous versions.
Raúl Lorenzo escribió:
Hi,
I compile my project successfully, but when i load a form by clicking in
a button or other method, raises the next exception: Project GCVA.exe
raised exception class EResNotFound with message 'Resource Tfrm_bds not
found'
The question is that this project worked well until now (I upgrade to
BDS2006 from BCB6), but now crashes when i want to load new forms.
The code with raises the exception is:
void __stdcall Invoke_BDS(void)
{
->> frm_bds=new Tfrm_bds(NULL);
frm_bds->ShowModal();
delete frm_bds;
frm_bds=NULL;
}
This method (Invoke_BDS) is within a DLL which is loaded dynamically
from main APP through LoadLibrary and GetProcAddress functions.
After a lot of tests, I remove from project the source code which
crashes an added again later. I build all, run and work. Magic!!!!
What´s happens? I don´t know. The best is that suddenly appear another
exception like that in other form which never crashes before, (it
crashes at =new TForm with the same exception); so I repeat this
operation (remove the file and add it) but don´t work. :(
I am using C++Builder 2006.
Later, I deleted temp files, like .obj, *.tds, pre-compiler hearders and
others temp files, I reinserted the files into project too.
Anyway, i did it and first time works without problem but at third or
fourth time when I change some trivial things it crashes with the same
exception at the first point I told you
If I have to reinsert continuously files in project and without
guarantee I will become crazy, my project is about 10 Dlls and main exe
is about 30 files.
I think it could be a IDE bug.
Any Idea? |
|
|
| Back to top |
|
 |
Raul Lorenzo Guest
|
Posted: Wed Feb 15, 2006 9:03 pm Post subject: Re: EResNotFound Exception (AGAIN The nightmare returns) -> |
|
|
One more time, I solved this estrange problem after a days. The causes,
I concluded, were various invalid path in all the project files which
contains the project group. This was grayed, so I had to check all the
options to eliminate the invalid paths, I rebuilt all, and worked.
I hope this problem doesn´t appear anymore.
Raul Lorenzo escribió:
| Quote: | After thinking the problem was solved creating the project from scratch,
this night when I executed the application it raised me this exception.
I don´t understand it, I am frustrated
Application->Initialize();
EXCEPTION HERE ---->frm_logo = new Tfrm_logo(Application);
frm_logo->ShowModal();
Application->ProcessMessages();
Application->Title = "";
Application->CreateForm(__classid(Tfrm_principal), &frm_principal);
Which´s compiles .dfm? brcc32?
Raul Lorenzo escribió:
I created all the project group from scratch, after 2 hours adding files
and setting a basic configuration to compile the project it works.
So the known issue about project importer from previous versions.
Raúl Lorenzo escribió:
Hi,
I compile my project successfully, but when i load a form by clicking in
a button or other method, raises the next exception: Project GCVA.exe
raised exception class EResNotFound with message 'Resource Tfrm_bds not
found'
The question is that this project worked well until now (I upgrade to
BDS2006 from BCB6), but now crashes when i want to load new forms.
The code with raises the exception is:
void __stdcall Invoke_BDS(void)
{
->> frm_bds=new Tfrm_bds(NULL);
frm_bds->ShowModal();
delete frm_bds;
frm_bds=NULL;
}
This method (Invoke_BDS) is within a DLL which is loaded dynamically
from main APP through LoadLibrary and GetProcAddress functions.
After a lot of tests, I remove from project the source code which
crashes an added again later. I build all, run and work. Magic!!!!
What´s happens? I don´t know. The best is that suddenly appear another
exception like that in other form which never crashes before, (it
crashes at =new TForm with the same exception); so I repeat this
operation (remove the file and add it) but don´t work. :(
I am using C++Builder 2006.
Later, I deleted temp files, like .obj, *.tds, pre-compiler hearders and
others temp files, I reinserted the files into project too.
Anyway, i did it and first time works without problem but at third or
fourth time when I change some trivial things it crashes with the same
exception at the first point I told you
If I have to reinsert continuously files in project and without
guarantee I will become crazy, my project is about 10 Dlls and main exe
is about 30 files.
I think it could be a IDE bug.
Any Idea? |
|
|
| 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
|
|