Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: Many memory leaks with MFC based application

$
0
0

problem

Please give me hints to fix memory leaks.
Here's step by step procedure to reproduce problem.

Environment

Visual Studio 2013 Update 4

Create new application

  • MFC based application
  • Dialog base
  • Use MFC Shared library
  • Unicode chaset

Add latest "C++ REST SDK" from NuGet console.

Install-Package cpprestsdk.v120.windesktop.msvcstl.dyn.rt-dyn
Added package is "cpprestsdk.v120.windesktop.msvcstl.dyn.rt-dyn.2.6.0"

Add 3 files to project.

  • ClientInfo.h
  • ServerClientPackets.h
  • ServerClientPackets.cpp
These files are in ChatClientServer.zip attached at below page.
http://blogs.msdn.com/b/vcblog/archive/2014/06/25/c-rest-sdk-websocket-client.aspx

Then build and run with DEBUG configration,

Dialog will appear, so close it.

We found so many memory leaks on output pane.

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>