I had (have) a similiar problem of running low on resources in delphi with a biggish
project under Win95. In an effort to fix the problem I added a heap of RAM. I can
confirm this doesn't help (but does speed things up nicely). I was getting a range of
problems including your Win32 API error and Interbase connection problems.
The only things I find help are to have as few units open at a time as possible and
don't run any other apps concurrently including background apps. On someones advice
(from this list) I also played around with Memproof to check for memory leaks in my
app (got it from the DSP I think). Despite tightening up my app there must still be
some leaks in Win95/Delphi ?? I think as eventually things grind to a halt. Run the
resource meter always and preempt any problems by rebooting OR move to NT which I
believe doesn't have this problem.
Regards
Andrew Masters
Clinical Solutions Ltd
Auckland, NZ
Ph: +64-9-476-0106
Fax: +64-9-476-0108
e: [EMAIL PROTECTED]
-----Original Message-----
From: Aaron Scott-Boddendijk [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, October 28, 1999 1:58 PM
To: Multiple recipients of list delphi
Subject: Re: [DUG]: WIN32 API Function Failed
> I keep getting this error when opening a particular form. Is there any way
> of fixing this?
We're getting this a lot with one particular machine. The cause appears to be
exhausting system resources in some way and delphi is not providing a more
specific error message.
delete the *.dsk for the project (and for delphi itself) so that not all of your units
are opening on project loads and remember to 'close' your units before a project save
or delphi shutdown.
If anyone else has a clear reason where the resources are being chewed up then
please indicate how to increase resource availability as memory size past 48mb seems
to have no effect on Win95b. Note this phenomena does not occur on similar sized
WinNT machines.
--
Aaron Scott-Boddendijk
Jump Productions
(07) 838-3371 Voice
(07) 838-3372 Fax
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
application/ms-tnef