Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Heap errors behavior is dependent on target machine. (Heap errors occur on one machine but not on a another.)
Re: Heap errors behavior is dependent on target machine. [message #45553 is a reply to message #45552] |
Mon, 30 November 2015 10:03   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
Getting out of options.
The main hypothesis here is that we are detecting leaks too early.
Still, we can check this:
In the file with those std::string globals, put something like
struct MyInitChecker {
MyInitChecker() { printf("Module initialized"); }
~MyInitChecker() { printf("Module deinitialized"); }
};
static const MyInitChecker myinitchecker;
then at the end of Core/heapdbg.cpp change destructor:
MemDiagCls::~MemDiagCls()
{
if(--sMemDiagInitCount == 0) {
printf("Now checking for leaks");
UPP::MemoryDumpLeaks();
}
}
Also, there are some details not yet provided:
- what is that "compatible" CPU?
- is the system updated to current version and it is exactly the same?
- are there any peripherals using serial communication that are not on Dell?
- what is that shared library?
Last but not least, it is entirely possible that the library leaks by design. In that case, it can be just bad luck and not really fixable. Well, in reality, leaving some global leaks is still considered "normal" in mainstream C++.
[Updated on: Mon, 30 November 2015 10:57] Report message to a moderator
|
|
|
 |
|
Heap errors behavior is dependent on target machine.
By: jfranks on Sat, 28 November 2015 14:03
|
 |
|
Re: Heap errors behavior is dependent on target machine.
By: mirek on Sat, 28 November 2015 18:43
|
 |
|
Re: Heap errors behavior is dependent on target machine.
By: jfranks on Sat, 28 November 2015 22:37
|
 |
|
Re: Heap errors behavior is dependent on target machine.
By: mirek on Sun, 29 November 2015 07:07
|
 |
|
Re: Heap errors behavior is dependent on target machine.
By: mirek on Sun, 29 November 2015 12:53
|
 |
|
Re: Heap errors behavior is dependent on target machine.
By: jfranks on Sun, 29 November 2015 18:34
|
 |
|
Re: Heap errors behavior is dependent on target machine.
By: mirek on Sun, 29 November 2015 18:48
|
 |
|
Re: Heap errors behavior is dependent on target machine.
By: jfranks on Mon, 30 November 2015 02:50
|
 |
|
Re: Heap errors behavior is dependent on target machine.
By: mirek on Mon, 30 November 2015 10:03
|
 |
|
Re: Heap errors behavior is dependent on target machine.
By: mirek on Mon, 30 November 2015 10:05
|
 |
|
Re: Heap errors behavior is dependent on target machine.
By: mirek on Mon, 30 November 2015 10:45
|
 |
|
Re: Heap errors behavior is dependent on target machine.
By: jfranks on Tue, 01 December 2015 05:58
|
 |
|
Re: Heap errors behavior is dependent on target machine.
By: mirek on Tue, 01 December 2015 19:48
|
 |
|
Re: Heap errors behavior is dependent on target machine.
By: jfranks on Wed, 02 December 2015 16:44
|
 |
|
[RESOLVED] Re: Heap errors behavior is dependent on target machine.
By: jfranks on Fri, 04 December 2015 15:29
|
 |
|
Re: [RESOLVED] Re: Heap errors behavior is dependent on target machine.
By: mirek on Fri, 04 December 2015 17:09
|
 |
|
Re: [RESOLVED] Re: Heap errors behavior is dependent on target machine.
|
Goto Forum:
Current Time: Tue Apr 29 15:13:02 CEST 2025
Total time taken to generate the page: 0.05014 seconds
|