View previous topic :: View next topic |
Author |
Message |
LastExceed Expert Cheater
Reputation: 1
Joined: 05 Nov 2014 Posts: 130
|
Posted: Wed Mar 18, 2015 6:16 pm Post subject: '<name>' expected near '<eof>' |
|
|
i am trying to sync addresses of 2 different processes, but when i try creating a shared memory block
Code: | allocateSharedMemory(testblock, 4096): |
i get this error
Code: | Script Error:[string "allocateSharedMemory(testblock, 4096):..."]:2: '<name>' expected near '<eof>'
|
couldn't find anything about this in the CE forums, anyone know whats wrong?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25788 Location: The netherlands
|
Posted: Wed Mar 18, 2015 6:35 pm Post subject: |
|
|
is testblock a valid string?
also, why is there a :?
and it doesn't seem you're assigning the result to a variable
one example would be:
x=allocateSharedMemory("abc", 4096)
|
|
Back to top |
|
 |
LastExceed Expert Cheater
Reputation: 1
Joined: 05 Nov 2014 Posts: 130
|
Posted: Wed Mar 18, 2015 6:49 pm Post subject: |
|
|
Dark Byte wrote: | is testblock a valid string?
also, why is there a
and it doesn't seem you're assigning the result to a variable
one example would be:
x=allocateSharedMemory("abc", 4096) |
thanks, seems like it worked now.
I am trying to sync addresses of 2 different processes (as asked a few weeks ago /viewtopic.php?p=5579113#5579113)
Now that i have created this memory block, what do i have to do next?
|
|
Back to top |
|
 |
|