Page 1 of 1

Problems with AllocateMemory function

Posted: Mon Aug 09, 2004 8:55 am
by Stefke28
Dear Support

I try run an few examples that used the AllocateMemory but it display the next errors always "AllocateMemory" Incorrect number of parameters

This are the lines:
Buffer=AllocateMemory(0,512,0)
memory=AllocateMemory(1,lang+1)

I'm used the PureBASIC Professional version 3.90

Can you please help me with this errors

Thank you

Stephane

Posted: Mon Aug 09, 2004 8:58 am
by Edwin Knoppert
Syntax

*MemoryID = AllocateMemory(Size)

Posted: Mon Aug 09, 2004 9:26 am
by Stefke28
Edwin

How can I this translated into one parameter?

Buffer=AllocateMemory(0,512,0)
memory=AllocateMemory(1,lang+1)

Explean me?

Thanks

Re: Problems with AllocateMemory function

Posted: Mon Aug 09, 2004 9:26 am
by PB
> Can you please help me with this errors

The format of the command has changed, as Edwin showed you. See here:

viewtopic.php?t=11766