HeapAgent






HeapAgent trial frequently asked questions

Here are the most frequently asked questions about the HeapAgent free trial.

Why didn't HeapAgent start automatically when I started my app?

Here are some possible causes:

  • You haven't told HeapAgent which applications you want it to automatically check. Run HeapAgent setup (HASETUP.EXE), and choose the EXEs for which you want HeapAgent to load automatically.
  • After you ran HeapAgent Setup, you didn't restart your machine. You only need to do this the first time you run HeapAgent setup, but you must do it.
  • Your application is a 16-bit Windows application. HA Trial works only with 32-bit Windows applications.
  • Your application is a console application. The auto-load feature works only with GUI applications.

I'm getting the message "HeapAgent is unable to find memory allocation symbols in [filename]" when I start my app. What does this mean?

The named EXE or DLL isn't linked with Microsoft Visual C++ PDB debugging information, and it is statically linked instead of dynamically linked with the C Runtime Library. You must either link with debugging information or link with the C Runtime DLL.

To specify PDB debugging information:

  1. Choose Settings from the Project menu, choose the C/C++ tab, change Category to "General" and change the value of Debug Info to "Program Database".
  2. Select the Link tab, change Category to "General", and check "Generate Debug Info".

To specify the C Runtime DLL in Microsoft C++:

  • Choose Settings from the Project menu, choose the C/C++ tab, change Category to "Code Generation", and change the value of Use Run-Time Library to "Multithreaded using DLL".

To use the Microsoft Foundation Class as a DLL:

  • Choose Settings from the Project menu, choose the General tab, and change the value of Microsoft Foundation Classes to "Use MFC in a Shared DLL (mfcX0(d).dll)", where X is 3 or 4, corresponding to the version of Visual C++ you're using.

Why isn't HeapAgent giving me file and line information?

The application you're debugging must be compiled with Microsoft Visual C++ debugging information. For information on setting up your application, see HeapAgent Help. Choose "Setting up and running your application," and then choose "Setting up your application for HeapAgent."

Why isn't HeapAgent reporting stack errors?

HeapAgent reports errors only in functions that are compiled with the Visual C++ /Ge flag. Also check the Stack Checking setting in HeapAgent's Debug Settings dialog box.

How do I remove the HeapAgent free trial from my system?

See "Removing the HeapAgent free trial from your system."