Problems with AllocateMemory function

Just starting out? Need help? Post your questions and find answers here.
Stefke28
User
User
Posts: 11
Joined: Thu Jul 15, 2004 9:06 am
Location: BELGIUM

Problems with AllocateMemory function

Post 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
Edwin Knoppert
Addict
Addict
Posts: 1073
Joined: Fri Apr 25, 2003 11:13 pm
Location: Netherlands
Contact:

Post by Edwin Knoppert »

Syntax

*MemoryID = AllocateMemory(Size)
Stefke28
User
User
Posts: 11
Joined: Thu Jul 15, 2004 9:06 am
Location: BELGIUM

Post by Stefke28 »

Edwin

How can I this translated into one parameter?

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

Explean me?

Thanks
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Problems with AllocateMemory function

Post 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
Post Reply