Share your advanced PureBasic knowledge/code with the community.
-
tinman
- PureBasic Expert

- Posts: 1102
- Joined: Sat Apr 26, 2003 4:56 pm
- Location: Level 5 of Robot Hell
-
Contact:
Post
by tinman »
Possibly useful for those who have large amounts of dynamic data.
Code: Select all
Structure String
StructureUnion
String.s
Pointer.l
EndStructureUnion
EndStructure
Procedure FreeString(*free_me.String)
! MOV edx, dword [esp+0]
! MOV edx, dword [edx]
; For PB<3.70
;! CALL PB_FreeString
! CALL SYS_FreeString
*free_me\Pointer = 0
EndProcedure
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
-
idStefke
- User

- Posts: 25
- Joined: Sun May 04, 2003 10:01 pm
- Location: BELGIUM
Post
by idStefke »
Doesn't work with PB V3.70
-
Karbon
- PureBasic Expert

- Posts: 2010
- Joined: Mon Jun 02, 2003 1:42 am
- Location: Ashland, KY
-
Contact:
Post
by Karbon »
heh. Again, post the specific error/problem and maybe someone can help you. The "Doesn't work" posts sometimes don't get much attention..
Good luck!
-
tinman
- PureBasic Expert

- Posts: 1102
- Joined: Sat Apr 26, 2003 4:56 pm
- Location: Level 5 of Robot Hell
-
Contact:
Post
by tinman »
Karbon wrote:heh. Again, post the specific error/problem and maybe someone can help you. The "Doesn't work" posts sometimes don't get much attention.
Yes, especially when it does work with with PB 3.70. Or does here.
Anyway. this topic is a nasty hack. I would recommend that no-one uses it ever.
Really.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)