Search found 2372 matches

by TI-994A
Wed Mar 31, 2021 3:58 pm
Forum: Off Topic
Topic: Today is the Fred's birthdate!, the PB father
Replies: 15
Views: 3198

Re: Today is the Fred's birthdate!, the PB father

I believe it's tomorrow. But happy birthday, Psychophanta. :wink:

Image
by TI-994A
Wed Mar 31, 2021 12:18 pm
Forum: Off Topic
Topic: A Decade of PureBasic!
Replies: 21
Views: 5338

Re: A Decade of PureBasic!

plouf wrote:PureBasic has, as i see it, Fanatic users, we use it for decades, still love it still helpus !, and seems like TI-994A , becoming one of these :)
It has proven to be a powerful programming tool, and a great foundational gateway to other languages as well.
by TI-994A
Wed Mar 31, 2021 11:52 am
Forum: Coding Questions
Topic: Named enumeration
Replies: 5
Views: 844

Re: Named enumeration

...what the point of a 'Named enumeration' is exactly? Enumeration windows #window1 ;starts a new enumeration from 0 #window2 #window3 EndEnumeration Enumeration gadgets #gadget1 ;starts a new enumeration from 0 #gadget2 #gadget3 EndEnumeration Enumeration images #image1 = 3 ;starts this enumeratio...
by TI-994A
Mon Mar 29, 2021 1:08 pm
Forum: Coding Questions
Topic: Freeing PureBasic Objects
Replies: 19
Views: 2180

Re: Freeing PureBasic Objects

...if you created a PureBasic object with #PB_Any you probably should free it with the respective Free procedure. The following syntax creates an image object dynamically and assigns the identifier to the variable named image. The dynamically assigned identifier corresponds with the memory address ...
by TI-994A
Mon Mar 29, 2021 8:22 am
Forum: Coding Questions
Topic: Freeing PureBasic Objects
Replies: 19
Views: 2180

Re: Freeing PureBasic Objects

The conclusion is that dynamic objects should be freed when they are no longer needed. Most of the time this will be through the use of a specific command for that purpose from the same library the create object command was in. Sometimes it will be the by product of another event such as closing a ...
by TI-994A
Sun Mar 28, 2021 10:49 am
Forum: Coding Questions
Topic: Freeing PureBasic Objects
Replies: 19
Views: 2180

Re: Freeing PureBasic Objects

Purebasic has no garbage collection. Thanks for the examples; although I'd thought that orphaned objects would eventually be released. So, it might appear that the third line of @freak's post is simply a general GC-description, and not referring to PureBasic specifically. Nevertheless, dereferencin...
by TI-994A
Sun Mar 28, 2021 6:15 am
Forum: Coding Questions
Topic: Freeing PureBasic Objects
Replies: 19
Views: 2180

Re: Freeing PureBasic Objects

If you would be willing to throw a little more light on the subject or be able to direct me to a source to learn more about this aspect of things in PureBasic I would be most appreciative. Your guess is as good as mine, but from this post , I had always assumed that PureBasic maintains some version...
by TI-994A
Sun Mar 28, 2021 1:54 am
Forum: Coding Questions
Topic: Freeing PureBasic Objects
Replies: 19
Views: 2180

Re: Freeing PureBasic Objects

@TI-994A: What do you mean by 'that will eventually release the previous object? Your code sample looses track of the object that was created and the program would have to end before that object would ever be released. Am I missing something? Not exactly. Once there are no more references to a crea...
by TI-994A
Sun Mar 28, 2021 1:27 am
Forum: Coding Questions
Topic: Freeing PureBasic Objects
Replies: 19
Views: 2180

Re: Freeing PureBasic Objects

When reading the documentation about PureBasic objects, I read this: "- An object that is associated with an index is automatically freed when reusing that index." II. Dynamic Numbering To create a dynamic object, you just have to specify the #PB_Any constant instead of the indexed number...
by TI-994A
Sat Mar 27, 2021 1:11 pm
Forum: Mac OSX
Topic: [Not a bug] CloseWindow/Canvas - Invalid Memory Access PB573
Replies: 8
Views: 3026

Re: CloseWindow/Canvas - Invalid Memory Access PB573

TI-994A wrote:...it appears to work on all three platforms without the need of freeing up the menu or canvas gadget.
Saki wrote:Please report it.
:?:
by TI-994A
Sat Mar 27, 2021 12:00 pm
Forum: Mac OSX
Topic: [Not a bug] CloseWindow/Canvas - Invalid Memory Access PB573
Replies: 8
Views: 3026

Re: CloseWindow/Canvas - Invalid Memory Access PB573

...the drop down menus are also not released under Linux either, which also leads to an gtk error... Here's a reduced version of the code, and it appears to work on all three platforms without the need of freeing up the menu or canvas gadget: Global window_ID, canvas_ID, menu Procedure CreateWindow...
by TI-994A
Sat Mar 27, 2021 7:20 am
Forum: Mac OSX
Topic: [Not a bug] CloseWindow/Canvas - Invalid Memory Access PB573
Replies: 8
Views: 3026

Re: CloseWindow/Canvas - Invalid Memory Access PB573

...if I close the windows and don't remove the canvas with FreeGadget first there is a crash. This should not be necessary because all gadgets and resources associated with the window are automatically freed when the window is closed. There must be some reference to some resource of the closed wind...
by TI-994A
Sat Mar 27, 2021 7:08 am
Forum: Coding Questions
Topic: Have a way to limit RAM USAGE and CPU USA of a application ?
Replies: 7
Views: 1441

Re: Have a way to limit RAM USAGE and CPU USA of a applicati

Hello guys, is there any way to limit the RAM usage and CPU usage of an application? In event loops where the WindowEvent() function is used instead of the WaitWindowEvent() function, the Delay() function should be included to prevent CPU hogging. Besides this, blocking-functions could also hog the...
by TI-994A
Fri Mar 26, 2021 5:53 am
Forum: Bugs - IDE
Topic: creation of defective internal form
Replies: 10
Views: 3642

Re: creation of defective internal form

a_carignan wrote:So I have to change my display every time I want to edit a window in PureBasic?
That's not ideal. Here's a small trick that seems to work. By expanding the properties side panel a little, the fields and checkboxes become responsive again; even at 150% scaling. Please do give it a try.
by TI-994A
Fri Mar 26, 2021 5:40 am
Forum: Coding Questions
Topic: Graphics not showing on window
Replies: 15
Views: 1261

Re: Graphics not showing on window

netmaestro wrote:...what is the new movement of fred & co?
More specifically...

> PureBasic and increased varieties of CPU (new blog post)