Page 1 of 1
BRW Error "Could not allocate memory"
Posted: Wed May 07, 2008 5:10 am
by dutch
I used BRW and the show error message when I duplicate Dialog as follow;
1st Error Message from BRW.
----------------------------------
"New field instance fail"
2nd Error Message from BRW.
----------------------------------
"Could not allocate memory"
The size file of DLL is 910Kb and when save to RC format is 2216Kb.
Regards,
Dutch
Re: BRW Error "Could not allocate memory"
Posted: Wed May 07, 2008 7:03 am
by Enrico Maria Giordano
Can you send the offending resource file to my private email?
EMG
Posted: Mon May 12, 2008 2:14 pm
by dutch
I've got the problem with .RC file. It has the limitation size of file. When I create a DLL file almost 1 Mb, it will alway show error.
I will try to split for 2 RC files but when I use xBuild and add 2 RC. The second file has not used when I refer from second RC file.
Can I add 2 RC in xBuilder (xHb.com)? If so, how?
Regards,
Dutch
Posted: Mon May 12, 2008 2:39 pm
by Enrico Maria Giordano
I think not. If I remember correctly, it is a limitation of the C tools used with xBuilder. But please ask to xHarbour.com.
EMG
Posted: Mon May 12, 2008 2:51 pm
by Richard Chidiak
Dutch
it is very easy,
if you have 2 or more rc files example rc1.rc and rc2.rc
create a rc file example myrc.rc
in this file add
#include rc1.rc
#include rc2.rc
and you are done
i use 7 rc files with my app, no problem with Xharbour or Borland (note i use borland now)
HTH
Richard
Posted: Mon May 12, 2008 3:11 pm
by RAMESHBABU
Mr.Richard
Good tip.
- Ramesh Babu P
Posted: Thu Jun 05, 2008 5:31 pm
by dutch
Dear Richard,
I've used xHb.com + FWH 8.04.
I'm not successful with 2 rc files as your recommendation. I try by copy screen32.dll from fwh\dll and save to rc file and add 2 lines as following. It doesn't work.
What I did wrong?
Regards,
Dutch
Code: Select all
/***********************************************************
ez4fo5.rc
produced by Borland Resource Workshop
************************************************************/
#include 'ez4fo.rc'
#include 'ez4bmp.rc'
DVCLAL RCDATA
{
'23 78 5D 23 B6 A5 F3 19 43 F3 40 02 26 D1 11 C7'
}
Richard Chidiak wrote:Dutch
it is very easy,
if you have 2 or more rc files example rc1.rc and rc2.rc
create a rc file example myrc.rc
in this file add
#include rc1.rc
#include rc2.rc
and you are done
i use 7 rc files with my app, no problem with Xharbour or Borland (note i use borland now)
HTH
Richard
Posted: Fri Jun 06, 2008 7:32 am
by RAMESHBABU
Hi Mr.Dutch
Code: Select all
Yours :
#include 'ez4fo.rc'
#include 'ez4bmp.rc'
Mr.Richard's
#include rc1.rc
#include rc2.rc
Please check that you have included your rc files in quotes. Mr.Richard
has included the rc files without quotes. This might be reason for your
errors.
- Ramesh Babu P