Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: MrViggy

Search: Search took 0.15 seconds.

  1. Replies
    4
    Views
    5,408

    Re: Memory leaks at c_str() of std::string

    That's what I suspected. The return value is a copy of the string, and is temporary. After the line of code is executed, 'p_RecordSummaryImp->OperValue' is invalid.

    Either make the return value...
  2. Replies
    4
    Views
    5,408

    Re: Memory leaks at c_str() of std::string

    What is 'GetFormattedValue()' returning exactly? A string? Or a reference to a string? The only reason I ask is that if it's returning a string object, that object is temporary, and is destroyed...
Results 1 to 2 of 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


On-Demand Webinars (sponsored)