Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does my program behave differently when built with Memory Advisor in LITE mode?

0
Posted

Why does my program behave differently when built with Memory Advisor in LITE mode?

0

This happens most often when some portion of your application depends on allocated memory being filled with zeros the first time your program accesses it. Memory Advisor intentionally fills newly allocated segments with a nonzero pattern (0xFE by default), which can cause different behavior in your program. In a similar fashion, software that depends on accessing freed data areas will not execute as expected, because Memory Advisor fills freed data areas with a different nonzero pattern (0xFD by default). To test if this is the case, set the MA_MEM_FILL option to none. If this corrects the problem, experiment with the alloc and free values for MA_MEM_FILL to see which type of filling is causing the problem. That information, combined with the way the behavior is changing, should help you identify the cause of the problem.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123