Results 1 to 2 of 2

Thread: boost::filesystem

  1. #1

    Thread Starter
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024

    boost::filesystem

    I am getting a strange error with the boost file system. When I do path my_path("C:\\temp"); I get an unhandled execption in xstring under:
    Code:
    		~basic_string()
    		{	// destroy the string
    		_Tidy(true);
    		}
    It will continue but I get memory leaks. Even with nothing but the path in my code.

    Any ideas?
    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


  2. #2

    Thread Starter
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    Damnit I hate boost's documentation and samples.

    The answer is:
    Code:
    path my_path("C:/temp", native );
    I was getting the error because I did not link in the execption handler for the file system.
    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