It is currently Mon Jul 06, 2020 2:27 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 87 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6
Author Message
 Post subject: Re: PureBasic 5.71 LTS is out !
PostPosted: Sat Aug 17, 2019 9:46 am 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 13, 2010 3:45 pm
Posts: 1113
skywalk wrote:
I never use #Null$. What is the downside if I continue to let PB manage its internal string buffers? Is there a memory leak or just excess memory use?

#Null$ is needed for some APIs

_________________
sorry for my bad english


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.71 LTS is out !
PostPosted: Sat Aug 17, 2019 10:57 am 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2535
Location: Germany
If you work a lot with Pointers and AllocateMemory it can lead to memory leaks.

With global variables it is not so critical yet, because they are overwritten again and again. But you have to be careful with memory.

With ClearStructure you can completely clean up the memory. But if you want to release only one string in the structure of the memory completely, you can use the following trick.

With the version before PB v5.70 it was enough to assign #Null$ from releasing the resource.

Code:
Macro FreeStructureString(_struct_, _offset_)
  ClearStructure(_struct_ + _offset_, string)
EndMacro

Structure udtFoo
  iVal.i
  sVal.s
EndStructure

*mem.udtFoo = AllocateMemory(SizeOf(udtFoo))
*mem\iVal = 100
*mem\sVal = Space(1000000)
Debug PeekI(*mem + OffsetOf(udtFoo\sVal))
FreeStructureString(*mem, OffsetOf(udtFoo\sVal))
Debug PeekI(*mem + OffsetOf(udtFoo\sVal))

_________________
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: PureBasic 5.71 LTS is out !
PostPosted: Sat Aug 17, 2019 2:37 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 3299
Location: Boston, MA
I will discuss further in your new thread...

_________________
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.71 LTS is out !
PostPosted: Sat Aug 17, 2019 4:33 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat May 05, 2007 5:31 pm
Posts: 737
Location: Linz, Austria
Thank you Fred and Team!

_________________
Et cetera is my worst enemy


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.71 LTS is out !
PostPosted: Tue Aug 20, 2019 6:14 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Jun 11, 2003 9:33 pm
Posts: 4625
Location: Spa, relaxing and thinking, and learning...
Congratulations and many thanks! :!:

_________________
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.71 LTS is out !
PostPosted: Tue Aug 27, 2019 1:49 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Oct 06, 2006 4:41 am
Posts: 717
Location: Canada
Thank you, Fred and other PB tinkerers.

@Fred : it appears you forgot to include the promised constant to indicate whether the DPi option is checked in the Windows version. (see here)

_________________
"That's not a bug..." said the programmer. "...It's a feature! "
"Oh! I see..." replied the blind man.


Last edited by Blue on Thu Aug 29, 2019 3:31 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.71 LTS is out !
PostPosted: Thu Aug 29, 2019 12:29 am 
Offline
Addict
Addict
User avatar

Joined: Wed Mar 24, 2004 11:04 pm
Posts: 902
Location: Seattle, USA
Fred wrote:
Final version is out, thank you a lot for testing !


Does the News page need to be updated with this version? https://www.purebasic.com/news.php
:)


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.71 LTS is out !
PostPosted: Wed Jan 29, 2020 11:26 am 
Offline
User
User
User avatar

Joined: Tue Jan 28, 2020 10:17 am
Posts: 60
No more updates?

_________________
FlatEarth addresses in PB :
Engine3D --> SkyDome
Mesh --> CreatePlane


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.71 LTS is out !
PostPosted: Wed Jan 29, 2020 11:32 am 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 14065
Location: France
In progress.


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.71 LTS is out !
PostPosted: Wed Jan 29, 2020 12:52 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Nov 05, 2006 11:42 pm
Posts: 4692
Location: Lyon - France
Fred wrote:
In progress.

Image

_________________
ImageThe happiness is a road...
Not a destination


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.71 LTS is out !
PostPosted: Thu Jan 30, 2020 2:41 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 558
Location: Near Hamburg
Haha, dogs are so loyal friends.

Sent via mobile phone

_________________
PB 5.72 x64, OS: Windows 7 Pro x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age: 52y
"Happiness is a pet." | "Never run a changing system!"


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.71 LTS is out !
PostPosted: Fri Jan 31, 2020 12:55 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Nov 05, 2006 11:42 pm
Posts: 4692
Location: Lyon - France
Kurzer wrote:
Haha, dogs are so loyal friends.
Yes.....always loyal to my CREATOR MASTER FRED that i love, and for the life 8)
But when even, anxious to never see coming a new dog bowl, of the more and more great part of my life each day :| (With new bones interesting for me :wink: )

I know my MASTER do the maximum, it's why i wait, i wait, each day with a little hope....
But since the birth of a certain spider, sometime i have the feeling to live in the movie "Groundhog Day" :cry:

Image

Time seems a hundred times longer for those who wait, than those who are expected.
And a thousand times more, when he receives no news. :|
As the extraordinary Albert :shock: 8) could have said:

Image

"Here !!!!! is a factual demonstration ....
of the relativity of time" :mrgreen:

_________________
ImageThe happiness is a road...
Not a destination


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 8 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