Search found 871 matches
- Thu Mar 14, 2024 1:02 pm
- Forum: Coding Questions
- Topic: XML Memory leak
- Replies: 1
- Views: 137
XML Memory leak
Hello everyone, A small XML example coming from the Help file when compiled with the ASM backend and run with valgrind we have 50 allocs but only 48 frees. With the C backend we also have 50 allocs but only 47 frees. A typical valgrind report : valgrind --leak-check=full --show-leak-kinds=all ./XMLT...
- Thu Mar 14, 2024 11:00 am
- Forum: General Discussion
- Topic: Running program with valgrind
- Replies: 4
- Views: 206
Re: Running program with valgrind
Without Linux code we can't say much. Do you use the GTK API? If so, you have to make sure that you release the results correctly. Yes, I'm using GTK API and I'm also using cairo, pango and pangocairo API to create a custom widget that work like Trello board with cards. I will review the code one m...
- Thu Mar 14, 2024 4:14 am
- Forum: General Discussion
- Topic: Running program with valgrind
- Replies: 4
- Views: 206
Running program with valgrind
Hello everyone, My question today is about running a program compiled with PureBasic with valgrind to check if the program as memory leaks among other problems. ==25059== HEAP SUMMARY: ==25059== in use at exit: 4,272,043 bytes in 58,826 blocks ==25059== total heap usage: 981,301 allocs, 922,475 free...
- Fri Mar 01, 2024 1:50 pm
- Forum: Coding Questions
- Topic: Solve 1 Equation with 2 Unknowns
- Replies: 23
- Views: 761
Re: Solve 1 Equation with 2 Unknowns
It's impossible to solve 1 equation with 2 unknowns. You need 2 equations and 2 unknowns in order to solve for a unique solution if it exist.
Best regards
StarBootics
Best regards
StarBootics
- Tue Jan 23, 2024 1:30 am
- Forum: Announcement
- Topic: PureBasic 6.10 LTS is out !
- Replies: 325
- Views: 40422
Re: PureBasic 6.10 beta 3 is out !
Hello everyone, I'm experiencing an Invalid Memory Access error with the ASM backend and no error with the C backend inside a super large program (around 77 000 lines of codes). Quite frankly I don't know how I can track down this problem. EDIT : Got It, I will post a bug report about this problem. ...
- Mon Jan 22, 2024 10:30 am
- Forum: Game Programming
- Topic: SGL (Simple GL)
- Replies: 39
- Views: 7143
Re: SGL (Simple GL)
No, a BatchRenderer need to be integrated into OGRE engine in order to work. As far as I know the OGRE implementation used in PureBasic don't support that.skinkairewalker wrote: ↑Mon Jan 22, 2024 5:07 am So the problem with purebasic not supporting modules like this is because it currently doesn't support opengl?
Best regards
StarBootics
- Sat Jan 06, 2024 11:29 pm
- Forum: Game Programming
- Topic: SGL (Simple GL)
- Replies: 39
- Views: 7143
Re: SGL (Simple GL)
Probably not, simply because the luis's module uses a BatchRenderer to render the GUI. As far as I know the Ogre implementation used in PureBasic don't have that.skinkairewalker wrote: ↑Sat Jan 06, 2024 10:55 pm Wouldn't it be possible to use your imgui module with the current ogre3d in purebasic?
Best regards
StarBootics
- Sun Nov 12, 2023 10:16 am
- Forum: Applications - Feedback and Discussion
- Topic: Dev-Object
- Replies: 100
- Views: 49674
Re: Dev-Object
Hello everyone, I'm posting the following message just to let you know that I have discovered some issues writing code with an OOP approach with PureBasic. When your program has to deal with a large amount of heap memory you are ending up with a highly fragmented memory and your program run slower a...
- Mon Nov 06, 2023 5:41 pm
- Forum: Linux
- Topic: Install on Chromebook
- Replies: 6
- Views: 910
Re: Install on Chromebook
My computer is running under Debian 12 x64 and I'm using purebasic for Ubuntu 18.04 x64 if I recall correctly without any issues.
You should be able to do the same with your Chromebook.
Best regards
StarBootics
You should be able to do the same with your Chromebook.
Best regards
StarBootics
- Sun Oct 29, 2023 9:37 am
- Forum: Coding Questions
- Topic: DLL function returning C string (pointer to char)
- Replies: 1
- Views: 246
Re: DLL function returning C string (pointer to char)
In your code you have to use PeekS() to retrieve the string returned by the SDL instructions.
Best regards
StarBootics
Code: Select all
*Ptr = SDL_GameControllerMapping(*GameController)
If *Ptr <> #Null
Output.s = PeekS(*Ptr, -1, #PB_UTF8)
EndIf
Best regards
StarBootics
- Tue Oct 17, 2023 9:59 pm
- Forum: Coding Questions
- Topic: Problem sorting the map, but not the linked list
- Replies: 3
- Views: 283
Re: Problem sorting the map, but not the linked list
Hello Sergey,
As I can see you are new here on the forum. First of all a Map can't be sorted due to it's internal working mechanism. Secondly when are not sure if it's a bug or not you should ask some question in the Coding Questions before posting a bug report.
Best regards
StarBootics
As I can see you are new here on the forum. First of all a Map can't be sorted due to it's internal working mechanism. Secondly when are not sure if it's a bug or not you should ask some question in the Coding Questions before posting a bug report.
Best regards
StarBootics
- Mon Oct 16, 2023 5:37 pm
- Forum: Tricks 'n' Tips
- Topic: utf16 string module StrCmp full case folding
- Replies: 28
- Views: 2956
Re: utf16 string module StrCmp full case folding
Hello Idle,
Apparently your code is no longer working with PB 6.03 LTS. I got an error on line 4749 (Function : StrChr(v.i))
StarBootics
Apparently your code is no longer working with PB 6.03 LTS. I got an error on line 4749 (Function : StrChr(v.i))
Best regardsChr(): Invalid value for Chr(), should be between 0 and $D7FF or between $E000 and $FFFF.
StarBootics
- Fri Oct 13, 2023 3:52 am
- Forum: The PureBasic Editor
- Topic: Telling the IDE to load source code using RunProgram()
- Replies: 5
- Views: 733
Re: Telling the IDE to load source code using RunProgram()
I see. So I just tried it as a tool and it works as expected: a new PureBasic instance was run with "MySourceCode.pb" as a blank source. You don't have "only one instance" enabled in PureBasic's prefs by mistake? I was meant to load the source code in the running IDE instance. A...
- Fri Oct 13, 2023 3:21 am
- Forum: The PureBasic Editor
- Topic: Telling the IDE to load source code using RunProgram()
- Replies: 5
- Views: 733
Re: Telling the IDE to load source code using RunProgram()
This returns an empty string for me with 6.03: Debug GetEnvironmentVariable("PB_TOOL_IDE") ; Nothing shown. Are you saying it shows something for you? If you run the program just by launching it directly it will show nothing. You really need to launch it form the Tool menu. So you need to...
- Thu Oct 12, 2023 9:58 pm
- Forum: The PureBasic Editor
- Topic: Telling the IDE to load source code using RunProgram()
- Replies: 5
- Views: 733
Telling the IDE to load source code using RunProgram()
Hello everyone, While using my ToolBoxFile manager I have discovered that loading source code to the IDE using RunProgram() don't work anymore. I have used this technique for years without issues and I don't know when it became broken. Do I need to do something differently ? Something broken in the ...