Results 1 to 3 of 3

Thread: Class and string

  1. #1

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Strange, try using the string like this:
    PHP Code:
    SERVERINFO_CL::sServerName 
    Also also try changing the string's name to something else because it's same as one the functions you have....not sure if it makes any difference but you can try.
    Baaaaaaaaah

  2. #2
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    Nope to both ideas

    I dont understand either. For the life of me I can't figure it out. I have traced to putting anything in the string causes it, but I can't figure out why. If I rem the line I dont get the leak, I unrem them I get the leak.

    Man this is starting to drive me crazy.
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  3. #3
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    Some on suggested this:

    This shouldn't cause a memory leak. Move the declaration of SI outside of main(). Is there a memory leak? If so, it isn't really a memory leak, it's just that VC++ memory functions collected the memory leak information too soon (before the global object was destroyed).

    I did and I dont get the leak. Think its just bad info from the memory debuger?
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width