 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Daniel Stevenson Guest
|
Posted: Fri Mar 05, 2004 12:10 am Post subject: Weird Builder Problem with Applications and DLLs |
|
|
I'm facing the weirdest problem i have ever seen with Builder.
let me start by describing the ground work.
I have an application and a number of DLLs (all built with Builder6) which
all compile without any problems and work great. The application looks into
a set directory to find all DLL files and interogates the DLLs to determine
certain characters about each DLL. Each DLL has a form but these forms are
NOT constructed until the user specifically chooses to load the 'module'
(module = DLL).
I have developed a new DLL which also started off well, it compiled
everytime without any problems and the application would run without any
problems and also close down without any problems.
After a while of developing this DLL I noticed that my application wouldn't
close down after loading this DLL (eg. would hang), even stepping through
the code the debugger would hang and therefore wouldn't cause an exception.
I started to do some testing and found that the error was associated with a
certain form in my DLL, but the weird thing is that this error remained even
if I DIDN'T load the DLL (which means the suspect form was never constructed
in the DLL).
I went ever further and removed the form from the DLL and re-built the DLL,
I had to remove all references to the form in order to do this so that there
were no errors, after doing this I would run the application and close it
down and it would close down without hanging.
I then added the form to the project through the Project Manager without
changing any code or doing anything with the form so that the form was never
referenced, never constructed (it just sat there in the Project Manager). I
rebuilt the DLL and ran my application, and without loading the DLL my
application would hang when I attempted to close the application. This
tells me that my code is not the problem but it is Builder itself which is
causing the problem. if I removed the form from the Project Manager and
recompiled it it would run perfectly????
How is it that a form that is never referenced or does anything can cause an
application to hang in this way????
Have I reached the size limits of a form? or something similar that is
causing Builder to act this way?
Any help would be appreciated.
|
|
| 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
|
|