Search found 1255 matches

by Thorium
Sun Oct 19, 2025 9:01 am
Forum: Bugs - Windows
Topic: [Done] Memory Leak in GetFileDate
Replies: 7
Views: 1181

Re: Memory Leak in GetFileDate

BarryG wrote: Sun Oct 19, 2025 1:24 am Which memory type are you monitoring? There's several in Task Manager so maybe I'm looking at the wrong type?

Image
I guess "working set" should show it.
by Thorium
Sun Oct 19, 2025 8:59 am
Forum: Bugs - Windows
Topic: [Done] Memory Leak in GetFileDate
Replies: 7
Views: 1181

Re: Memory Leak in GetFileDate

skywalk wrote: Sat Oct 18, 2025 4:38 pm Ouch, does it matter which compiler options?
I have reproduced it with the default options, didnt try anything else.
My guess is that the function simply does not free a handle.
by Thorium
Sat Oct 18, 2025 2:35 pm
Forum: Bugs - Windows
Topic: [Done] Memory Leak in GetFileDate
Replies: 7
Views: 1181

[Done] Memory Leak in GetFileDate

Reproduced on: Windows 11, PureBasic 6.21 x64 and 6.30 Beta 3 x64

Run following code and open the task manager, watch as memory usage increases indefinitely.

Code: Select all

Repeat
  Delay(1)
  GetFileDate("C:\Windows\notepad.exe", #PB_Date_Modified)
ForEver
by Thorium
Tue Jul 15, 2025 12:24 pm
Forum: Windows
Topic: COM interface: IFileOperation - Example?
Replies: 2
Views: 1504

Re: COM interface: IFileOperation - Example?

Here are some interessting information: https://learn.microsoft.com/en-us/windo ... limitation

It says in Windows 10 most API functions are updated to work with long path but you have to set longPathAware in the manifest of your application.
by Thorium
Sat Jul 12, 2025 10:44 am
Forum: General Discussion
Topic: Build a text editor
Replies: 37
Views: 5142

Re: Build a text editor

HeX0R wrote: Sat Jul 12, 2025 8:57 am Do you know PBEdit from Mr.L?
I didn't knew that. Could have saved me a ton of work. :D
by Thorium
Wed Jul 09, 2025 11:13 am
Forum: General Discussion
Topic: Build a text editor
Replies: 37
Views: 5142

Re: Build a text editor

Here is a screenshot of it.
As you can see i took inspiration from PureBasic for the coloring, etc. But this is not Scintilla, it's made from scratch with PB 2D drawing. And lots of code to handle all basic editing functions.

Image
by Thorium
Wed Jul 09, 2025 11:04 am
Forum: General Discussion
Topic: Build a text editor
Replies: 37
Views: 5142

Re: Build a text editor

A text editor from scratch is actually a side project i work on currently.

It's specifically for coding and even more specifically for G-Code with Sinumerik extension. As many editors struggle with this.
First i wanted to use Scintilla but it was kind of confusing to me and i thought i could write ...
by Thorium
Wed Jul 09, 2025 6:05 am
Forum: Feature Requests and Wishlists
Topic: Packer should return progress
Replies: 13
Views: 1843

Re: Packer should return progress

acreis wrote: Thu Jul 03, 2025 5:00 pm Hi Thorium, what is the alternative to packer lib?
Using the compressions libs directly like XZ Utils for LZMA.
by Thorium
Thu Jul 03, 2025 3:32 pm
Forum: Feature Requests and Wishlists
Topic: Packer should return progress
Replies: 13
Views: 1843

Re: Packer should return progress

The main reason i don't use the packer lib at all anymore.
This is also possible without a separate thread via callback.
by Thorium
Thu Jun 26, 2025 10:28 am
Forum: Bugs - IDE
Topic: PB 6.03 - Win X64 - Stuck highlighting.
Replies: 18
Views: 5781

Re: PB 6.03 - Win X64 - Stuck highlighting.

pjay wrote: Thu Jun 26, 2025 9:05 am Interesting - What IDE version are you using?

I just tried it using the /portable switch (so a vanilla setup) and it still did it.
PB 6.21 Windows x64
by Thorium
Thu Jun 26, 2025 8:47 am
Forum: Feature Requests and Wishlists
Topic: #PB_HTTP_NoSSLCheck for ReceiveHTTPFile
Replies: 1
Views: 916

#PB_HTTP_NoSSLCheck for ReceiveHTTPFile

Not sure if it is a bug report or a feature request.
Seems like #PB_HTTP_NoSSLCheck has been forgotten to add to ReceiveHTTPFile.
It is available for HTTPRequest, so makes sense to have the same option on ReceiveHTTPFile.
by Thorium
Thu Jun 26, 2025 8:33 am
Forum: Bugs - IDE
Topic: PB 6.03 - Win X64 - Stuck highlighting.
Replies: 18
Views: 5781

Re: PB 6.03 - Win X64 - Stuck highlighting.


A reproducable example [Win x64, PB v6+] - this one occurred when porting some C code across - it has been stripped down to bare minimum.

The code needs to be copied & pasted in its entirety into notepad & saved as a .pb file - load the file into the PB IDE and follow the steps shown on lines 17 ...
by Thorium
Thu Jun 26, 2025 12:41 am
Forum: Bugs - IDE
Topic: Weird highlight after select
Replies: 12
Views: 2510

Re: Weird highlight after select

This has happened a few times to me. Could never reproduce it. I suspected it has something to do with highlighting selected words and multiple files open.
by Thorium
Mon Jun 23, 2025 2:08 am
Forum: Off Topic
Topic: Restricted Area
Replies: 6
Views: 4830

Re: Restricted Area


Someone posted on here saying "The creator is on these forums, ask him to update it", but then deleted their post a week or two later. I wonder if the creator saw that and were like "Nah, don't get me involved in this"... If that's the case... Come on, this is like abandoning a child :P (no I'm ...
by Thorium
Sat Jun 14, 2025 3:11 pm
Forum: Coding Questions
Topic: Can GetDatabaseString() be called more than once?
Replies: 5
Views: 846

Re: Can GetDatabaseString() be called more than once?

I use Postgres every time i need a DB with PureBasic.
Works very well. Much better than ODBC.

There are a lot of things that work with Postgres which may be not obvious.
For example you can do UPDATE with QueryDatabase (not UpdateDatabase) and use RETURNS to get data about the modified entries ...