Search found 75 matches: allocate

Return to advanced search

Error : Calendar Control

... oCal:bOnGetState = { | oCal | OnGetState( oCal, aDates ) } SetDayState() results in an unrecoverable error 9023: hb_xgrab requested to allocate zero bytes. There are 23 elements in the array aDates, and at least two are for the month being displayed. Looking at the code for OnGetState( ...
by TimStone
Fri May 14, 2010 11:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error : Calendar Control
Replies: 16
Views: 3308

Re: Find first free number

... with item numbers that are not current. That raises the question why don't you just accept "holes" in the item number allocation and allocate a primary key. Obviously I don't know any of the issues surrounding this design but the re-use of item numbers is potentially risky and the ...
by xProgrammer
Thu Mar 11, 2010 10:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Find first free number
Replies: 12
Views: 2437

Re: Problems with memory allocation

Linares, you know some function to reserve a specific address in memory and allocate a variable at this address?
by sambomb
Mon Oct 05, 2009 6:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problems with memory allocation
Replies: 6
Views: 1059

Re: Drawing PNG from Resources !!!

... omf); DLL_API void DLL_CALLCONV FreeImage_OutputMessageProc(int fif, const char *fmt, ...); // Allocate / Clone / Unload routines --------------------------------------- DLL_API FIBITMAP *DLL_CALLCONV FreeImage_Allocate(int width, int height, ...
by ukoenig
Sat May 16, 2009 8:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing PNG from Resources !!!
Replies: 7
Views: 7136

Re: Adjust a Bmp to a xBrowse-Cell-Grid ?

... to build the array for xbrowse. Do you intend to rename the <Picture-Number>? What about date the picture was taken - cameras automatically allocate a number to the next picture taken. Maybe the picture directory name will contain the year. An option is to index on the data file - Student ...
by Jonathan Hodder
Thu Mar 12, 2009 2:06 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Adjust a Bmp to a xBrowse-Cell-Grid ?
Replies: 8
Views: 1732

Re: SMS question

... receive the message size. The size received is not necessarily the exact size of the message. Instead, it’s an upper bound that can be used to allocate the buffer that receives the message. With a buffer allocated, the message can be read using SmsReadMessage, prototyped as: HRESULT SmsReadMessage ...
by jlcapel
Sat Jan 10, 2009 7:52 pm
 
Forum: FiveWin for Pocket PC
Topic: SMS question
Replies: 51
Views: 22252

Re: hb_xgrab can't allocate memory.

perhaps you are using a combo with images ?
and there are not in resource the images ?

I saw this error ....
by Silvio
Wed Jan 07, 2009 12:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: hb_xgrab can't allocate memory.
Replies: 2
Views: 12752

Re: hb_xgrab can't allocate memory.

Byron,

Are you managing a large string from your code ?

Usually you get that error, when you try to create a string larger than 2 GB. Sometimes your application may have a bug that creates such a large string.

http://www.microsoft.com/whdc/system/pl ... AEmem.mspx
by Antonio Linares
Tue Jan 06, 2009 11:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: hb_xgrab can't allocate memory.
Replies: 2
Views: 12752

hb_xgrab can't allocate memory.

I am receiving this message "hb_xgrab can't allocate memory.", any body know how to eliminate.

Byron...
by byron.hopp
Tue Jan 06, 2009 10:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: hb_xgrab can't allocate memory.
Replies: 2
Views: 12752

Maurizio,

You can dynamically allocate it:
Code: Select all  Expand view
LPSTR pW = hb_parc( 1 ) ;
int len = hb_parclen( 1 );
TCHAR * wName = ( TCHAR * ) hb_xgrab( len * sizeof( TCHAR ) );

...

hb_xfree( wName );
by Antonio Linares
Mon Oct 27, 2008 11:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Convert hb_parc() in LPTSTR
Replies: 25
Views: 5720

... works . If I try your way I have this error : stampa.prg(148) : error C2057: expected constant expression stampa.prg(148) : error C2466: cannot allocate an array of constant size 0 stampa.prg(148) : error C2133: 'wName' : unknown size Where : 147 - LPSTR pW = hb_parc( 1 ) ; 148 - int len = hb_parclen( ...
by Maurizio
Tue Oct 21, 2008 12:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Convert hb_parc() in LPTSTR
Replies: 25
Views: 5720

Stefan, > pText = HB_FUN_WIDETOANSI (pAdapterInfo->Description); on runtime I get Unrecoverable error 9023: hb_xgrab requested to allocate zero bytes > That means that pAdapterInfo->Description contains a zero length string, thats why hb_xgrab() fails when it is requested to allocate ...
by Antonio Linares
Fri Jul 25, 2008 12:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: mac address
Replies: 38
Views: 9064

puntero de variable

... una variable para pasarla como parametro a una funcion externa. Existe alguna funcion para esto??? ej. cBuffer := SPACE(50) // VARIABLE nD1 := ALLOCATE(cBuffer) // Devuelva direccion de memoria ej. hEF821 De ya muchas gracias.
by pacosoriano
Tue Jul 22, 2008 7:40 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: puntero de variable
Replies: 3
Views: 651

... 1, hb_itemPutC(pItem, pText)); hb_xfree (pText); on runtime I get Unrecoverable error 9023: hb_xgrab requested to allocate zero bytes Did I forget something ?
by StefanHaupt
Tue Jul 22, 2008 7:39 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: mac address
Replies: 38
Views: 9064

Re: BRW Error "Could not allocate memory"

Can you send the offending resource file to my private email?

EMG
by Enrico Maria Giordano
Wed May 07, 2008 7:03 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: BRW Error "Could not allocate memory"
Replies: 7
Views: 1523
PreviousNext

Return to advanced search