tfzxyinhao / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

it should be possible to use tcmalloc with 64-bit windows (README_windows.txt ) #390

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Import libtcmalloc_minimal.vcproj to MS VS C++ 2010
2. Made configuration for debug/x64 an genereate DLL und LIB with success
3. Create a new project for debug/x64 an the following code 

#include "stdafx.h"
#include "tcmalloc.h"

class mullerC
{public:
  int Heinz;
  mullerC(){Heinz=1789;}
};

int _tmain(int argc, _TCHAR* argv[])
{mullerC muller;

  void *mem = tc_malloc(50000);
  tc_free(mem); 
  return 0;
} 

What is the expected output? What do you see instead?

If you run this, vc++ stops with an exception in msvcr100d.dll|operator new

What version of the product are you using? On what operating system?
Win7 64-Bit,Visual Studio 2010, perftools 1.9.1

Please provide any additional information below.

Original issue reported on code.google.com by hs.profi...@gmail.com on 10 Jan 2012 at 12:40

GoogleCodeExporter commented 9 years ago

Original comment by `` on 18 Jan 2012 at 10:13

GoogleCodeExporter commented 9 years ago

Original comment by csilv...@gmail.com on 10 Jan 2012 at 3:00