Board index » cppbuilder » problem with Packages turned off, please help

problem with Packages turned off, please help

Ok this suddenly started happening. I never have the problem before. For
some strange reason, if I try to run an app with packages turned off (in the
project properties), the following example code gives me a 'win32 error':

void __fastcall TForm1::Button1Click(TObject *Sender)
{
   ShowMessage("Hello");

Quote
}

When I click the button to execute this code, I receive the following
exception: "...raised exception class EWin32Error with message: 'A Win32 API
function failed'. Process stopped"
The app consists of just a form with a button on it, with the OnClick event
being handled. Therefore I dont think its a resource issue (not ot mention
it runs just fine if I turn Packages back on. And I've tryed closing all
other programs and also rebooting. But like I said, this didnt used to
happen, so it doesnt seem like a resource problem. And to boot, I can run
programs that I've created with BCB -before- this started happing with
Packages -off- with out any problem, so I also suspect its got something to
do with the default project file and with the Packages I have installed.

-----Also-----
I  noticed that if I drop a couple TEdit's on the form and hit run with
Packages turned off, I get
a similar exception:
"...raised exception class EWin32Error with message: 'Win32 Error.  Code: 2
The system cannot find the file specified'"

If I drop other controls such as ComboBoxes and such I get similar
exceptions as well. If I just place a couple of comboboxes I get "code 32".
The "code 32" seems to vary depending on what exactly I drop on the form and
hit run with Packages turned off (TEdit's, TComboBox'es, etc).

---And---
When these strange exceptions occur, its always stops on the line after
Application->Run(); (in the WinMain function.)

--So--
If anyone has any idea of what is going on and has any remedy at all please
share it with me! I suspect it could have something to do with my packages
(sice the problem only rears its ungly head when Packages is turned off).

I appreciate any help! Thanks.
     Stan

 

Re:problem with Packages turned off, please help


Hi Stan -

I wasted a lot of time on a problem like this...

Try deleting C:\Program Files\Borland\CBuilder5\Bin\default.bpr
and see if that helps.

--
Grace + peace,
Peter N Roth
Engineering Objects International
http://engineeringobjects.com

Quote
"Stan" <s...@hmrprint.com> wrote in message

news:96f63n$61i9@bornews.inprise.com...
Quote
> Ok this suddenly started happening. I never have the problem before. For
> some strange reason, if I try to run an app with packages turned off (in

the

Re:problem with Packages turned off, please help


I did whta you said and....
[The envalope please....]
IT WORKED LIKE A CHARM!!!
Ok thanks a lot. So it seems my suspictions were correct, that it was
something to do with the packages (the listing in the project file). I guess
one of the packages in the list was doing something screwy. For some of my
newer projects I'll have to do some trial and error to fish out the
trobblesome code in their project files.

Thanks again, Peter!
Take care.

HAPPY Valentine's Day everyone!!!

Stan

Peter N Roth <refusing.s...@mycompany.com> wrote in message
news:96fds1$5p612@bornews.inprise.com...

Quote
> Hi Stan -

> I wasted a lot of time on a problem like this...

> Try deleting C:\Program Files\Borland\CBuilder5\Bin\default.bpr
> and see if that helps.

> --
> Grace + peace,
> Peter N Roth
> Engineering Objects International
> http://engineeringobjects.com

> "Stan" <s...@hmrprint.com> wrote in message
> news:96f63n$61i9@bornews.inprise.com...
> > Ok this suddenly started happening. I never have the problem before. For
> > some strange reason, if I try to run an app with packages turned off (in
> the

Re:problem with Packages turned off, please help


Glad that worked - it has something to do with
saving the defaults in the Project | options dialog,
so it seems like one of the housekeeping chores is
cleaning out default.bpr before a new project
starts.

--
Grace + peace,
Peter N Roth
Engineering Objects International
http://engineeringobjects.com

Quote
"Stan" <s...@hmrprint.com> wrote in message

news:96fuj8$nr16@bornews.inprise.com...
Quote
> I did whta you said and....
> [The envalope please....]
> IT WORKED LIKE A CHARM!!!

Other Threads