Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums
Members
Pages
Search
Help
Register
Login
Home
Home
»
Community
»
U++ community news and announcements
»
Linux GlCtrl leaks problem fixed, new leaks related functions
Show:
Today's Messages
::
Show Polls
::
Message Navigator
E-mail to friend
Linux GlCtrl leaks problem fixed, new leaks related functions
[
message #57819
]
Sun, 19 December 2021 15:01
mirek
Messages:
13976
Registered:
November 2005
Ultimate Member
This was problem that was hunting us for years: With Linux radeon driver we got memory leaks warning no matter what we have tried.
Today I have finally found out why:
The problem is that those static leaks are allocated in different thread, so our attempts to ignore them using MemoryIgnoreLeaksBlock are not enough.
I have solved problem by adding
static bool Thread::IsUpp()
Calling thread was started using U++ Thread class (for main thread returns false).
void MemoryIgnoreNonMainLeaks()
Makes leaks detector ignore leaks by global constructors.
void MemoryIgnoreNonUppThreadsLeaks()
Makes leaks dectector ignore leaks created by threads that are not launched by U++ Thread class.
These get called from GLCtrl finally initialisation fixing the problem...
Another new function that can help to figure out leaks when leak breakpoints are not usable:
dword MemoryGetCurrentSerial()
In debug mode, returns the serial number of the next allocated block. This number is eventually listed in the log in case there are any leaks.
Returns the serial of NEXT block to be allocated. The idea is to find the leak using bisection (horribly tedious, but probably the option sometimes).
Report message to a moderator
[
Message index
]
Linux GlCtrl leaks problem fixed, new leaks related functions
By:
mirek
on Sun, 19 December 2021 15:01
Re: Linux GlCtrl leaks problem fixed, new leaks related functions
By:
Klugier
on Thu, 30 December 2021 02:13
Previous Topic:
ide: Reformat JSON / XML
Next Topic:
32 bit wchar merged
Goto Forum:
- Community
U++ community news and announcements
PR, media coverage, articles and documentation
U++ Webs: Functioning, Layout , Design, Features and Structure of these forums, homepage etc.
Coffee corner
Newbie corner
U++ based job offers
- Developing U++
U++ Developers corner
External resources
Releasing U++
UppHub
Bugs (& fixes)
Documentation
U++ TheIDE and Library: Releases and ChangeLogs
Mac OS
Android
- U++ Library support
U++ Library : Other (not classified elsewhere)
U++ Core
Look and Chameleon Technology
U++ Libraries and TheIDE: i18n, Unicode and Internationalization
U++ SQL
U++ MT-multithreading and servers
U++ Callbacks and Timers
U++ Widgets - General questions or Mixed problems
TopWindow&PopUp, TrayIcon
Menus&Toolbars
StatusBar&InfoCtrl
Splitter
TabCtrl
Slider&ProgressIndicator
ArrayCtrl, HeaderCtrl & GridCtrl
TreeCtrl
RichText,QTF,RTF...
LineEdit, EditFields, DocEdit
Draw, Display, Images, Bitmaps, Icons
FileSel&FileList, Path
CalendarCtrl
Skylark
ScatterDraw & ScatterCtrl
Archive
- U++ TheIDE
U++ TheIDE: Other Features Wishlist and/or Bugs
U++ TheIDE: Compiling, Linking, Debugging of your packages
U++ TheIDE: Installation, Compiling and Running of theide
U++ TheIDE: CodeEditor, Assist++, Topic++
U++ TheIDE: Packages
U++ TheIDE: Layout (Forms) Designer
U++ TheIDE: Icon designer
- Extra libraries, Code snippets, applications etc.
U++ users applications in progress and useful code snippets, including reference examples!
U++ Esc Interpreter, Esc Macros and templates
C++ language problems and code snippets
Applications created with U++
OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc
-=]
Back to Top
[=-
[
Syndicate this forum (XML)
] [
] [
]
Current Time:
Sat May 11 13:31:41 CEST 2024
Total time taken to generate the page: 0.02637 seconds