It is currently Mon Sep 23, 2019 2:55 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Function Space does not free memory
PostPosted: Sat Jun 22, 2019 10:44 am 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1915
Location: Germany
ASM PB v5.61
Quote:
; a.s = #Null$
XOR rsi,rsi
LEA rdi,[v_a]
CALL _SYS_FastAllocateStringFree4


ASM PB v5.71
Quote:
; a.s = #Null$
MOV rsi,qword _S1
LEA rdi,[v_a]
CALL _SYS_FastAllocateStringFree4

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: Function Space does not free memory
PostPosted: Fri Aug 16, 2019 8:08 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Sep 11, 2016 2:17 pm
Posts: 520
Can someone pls rename the thread title?
[PB.5.71] String Memory Bug - ALL OS - x86 & x64


Top
 Profile  
Reply with quote  
 Post subject: Re: [Done] Function Space does not free memory
PostPosted: Wed Aug 28, 2019 10:37 am 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 13, 2010 3:45 pm
Posts: 892
User_Russian wrote:
Constant #Null$ must to free string and to zero pointer, otherwise constant #Null$ does not make sense.
Code:
s.s
Debug @s
s = "12345678"
Debug @s
s = #Null$
Debug @s ; <- Must be 0.


This is what I found out when I tried to write #Null$ to a file. I can't say if this does everything right internally. So just consider the following code as a hint.

Code:
s.s
Debug @s
s = "12345678"
Debug @s
s = #Null$
Debug @s ; <- Must be 0.

s = "!_PB_NullConstant_!"
Debug @s ; <- Must be 0.

_________________
sorry for my bad english


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye