problem with some asm

Linux specific forum
gnasen
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 24, 2008 12:21 am

problem with some asm

Post 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.
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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