Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Dangling pointer
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Dangling pointer

 Post Reply Post Reply
Author
Message
andreypir View Drop Down
Groupie
Groupie
Avatar

Joined: 20 August 2015
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote andreypir Quote  Post ReplyReply Direct Link To This Post Topic: Dangling pointer
    Posted: 26 March 2020 at 3:29pm
This code in 19.1 returns a pointer to a deleted heap block:

LPCTSTR CXTPFrameThemeVisualStudio2012::GetStyleResourceName() const
{
CString retVal("XTP_IDR_VS2012_STYLE");
return retVal;
}

In 17.3 it was correct, I am not sure what this bug was introduced for:

LPCTSTR CXTPFrameThemeVisualStudio2012::GetStyleResourceName() const
{
return _T("XTP_IDR_VS2012_STYLE");
}

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.102 seconds.