Page 1 of 1

problem with some asm

Posted: Sun Oct 26, 2008 3:40 pm
by gnasen
Hi, I'm very glad that I got my VM (Ubuntu7.04) running.
I need to use it to compile a server application.
First curious thing was, that the debugger just gave the errormessage:
Purebasic.asm[1926]. I was totally depressed and started checking every part of my application until I found this line:

Code: Select all

!CALL  _SYS_FreeStructureStrings@8 
It is part of an include which makes it possible to use embed LL's. I asked the programmer of it (StarGate) who cant help me in Linux specific issues.

I hope you can give me a possibility to get it running. The include is the following:

http://www.nordgoetter.de/GuttGame/Code ... edList.pbi

After some searching I found this. Is this maybe a better way?

Code: Select all

;The following function frees the string pointed to by *Address. 
;Used for structures which are created using AllocateMemory(). 
Procedure FreeStructureString(*Address) 
  Protected String.String 
  PokeL(@String, *Address) 
EndProcedure
I hope you can help me,
greets gnasen


Edit: I just saw that i posted it in the false subforum. Would be to nice if anyone can move it to the normal "i have some trouble with programming in linux" subforum.

Posted: Fri Oct 31, 2008 12:05 pm
by Fred
Yes, it's a better way to use the PureBasic procedure. If you really want to go with the asm, you could use:

Code: Select all

 !CALL  SYS_FreeStructureStrings
on linux.