Boost logo

Boost Users :

Subject: [Boost-users] std:string to boost::filesystem::path, then, create directories.
From: JIA Pei (jp4work_at_[hidden])
Date: 2012-02-09 20:49:52


Hi, all:

After upgrading to boost 1.48.0, my code seems to stopping working.

The original code is pretty simple:

char* folderName = "./test";
if (!boost::filesystem::is_directory( folderName ) )
    boost::filesystem::create_directories( folderName );

It used to work fine but after upgrading to boost 1.48.0, I got the
following annoying errors always:

Unhandled exception at 0x51d8ee9e (msvcr90d.dll) in myTest.exe: 0xC0000005:
Access violation writing location 0xcdcdcdcd.

The program stops at the line "if
(!boost::filesystem::is_directory( folderName ) )", and the call stack
seems to hint it's an error coming from memcpy.asm

"
TrailUp1:
        mov al,[esi] ;U - get byte from source
                                ;V - spare
        mov [edi],al ;U - put byte in destination
        mov eax,[dst] ;V - return pointer to destination
        pop esi ;U - restore esi
        pop edi ;V - restore edi
        M_EXIT
"

Can anybody help me out?

Thank you very much....

Best Regards
Pei

-- 
Pei JIA
Email: jp4work_at_[hidden]
cell:    +1 604-362-5816
Welcome to Vision Open
http://www.visionopen.com


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net