1st line of function is 
std::cerr<<"sometext"<<std::endlbut it never gets executed, I get stack 
overflow crash before this gets shown. why is this?
20141105 dongsheng daily
lines up to the function call are basically:
            displayMode=SHOW_FILEPATH;
        #if defined(DEBUG)
        std::cerr<<"1";
        #endif
    tempDir=getEnvString(envp, "TEMP");
        #if defined(DEBUG)
        std::cerr<<"2";
        #endif
    sRandom=getEnvString(envp, "RANDOM");
        #if defined(DEBUG)
        std::cerr<<"3";
        #endif
    //check that this file is not being processed by this program as an 
argument!
    tempMatch=tempDir+std::string("\\____EGREPSED_TEMP_FILE____.");
    tempFilepath=tempMatch+sRandom;

    displayMode=SHOW_FILEPATH;
    sSearchPatterns={"libtool","test.cpp"};
    hasSearch=(
        0 != sSearchPatterns.size()  ||
        0 != siSearchPatterns.size() ||
        0 != srSearchPatterns.size() ||
        0 != sriSearchPatterns.size()
    );
    hasReplace=(
        0 != sReplacePatterns.size()  ||
        0 != siReplacePatterns.size() ||
        0 != srReplacePatterns.size() ||
        0 != sriReplacePatterns.size()
    );
    std::cout<<"hasSearch="<<hasSearch<<",hasReplace="<<hasReplace<<std::endl;
    processFilepath("d:\\prj\\_bhist");
and that's where it dies.
bool processFilepath(std::string filepath) {
    //with a file, we can rescan. with cin and cout, we can't.
    //rescan takes only 2x as long for matched filepaths, so it's not like it's 
going to be every file in the computer.
    std::cerr<<"processFilepath("<<filepath<<")"<<std::endl; //never gets here
    std::fstream fo;
    bool matchFound=false;
...

 -------------
Jim Michaels
[email protected]
[email protected]
http:&#x2F;&#x2F;RenewalComputerServices.com
http:&#x2F;&#x2F;JesusnJim.com (computer repair info, programming)

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to