c++ version 2.11 ,there is a bug on win7 os.

Help
2013-07-03
2013-07-28
  • tingfang-tan

    tingfang-tan - 2013-07-03

    include "everything.h"

    using namespace com_ximpleware;

    the following example code cannot work on win7 system:

    int main(){
    VTDNav vn = NULL;
    FILE
    f = NULL;

    try{
        XMLModifier xm;
        AutoPilot ap;
        ap.selectXPath(L"/root/b");
        VTDGen vg;
        if (vg.parseFile(false,"input.xml")){
            vn = vg.getNav();
            ap.bind(vn);
            xm.bind(vn);
            int i;
            while((i=ap.evalXPath())!=-1){
                xm.insertBeforeElement("<lala/>\n",8);
                xm.insertAfterElement("\n<lala/>",8);
            }
            xm.output("new.xml");
            delete(vn->getXML());
        }
        else
            delete(vg.getXML());
    }catch(...){// handle various types of exceptions here
    }
    delete (vn);
    return 0;
    

    }

    the programme work well on winxp system,but it cannot work on win7 system, it core dump when run "xm.output("new.xml")",can you do me a favor?

     
  • tingfang-tan

    tingfang-tan - 2013-07-03

    does it can noly be used on 32-bit os?

     
    • jimmy zhang

      jimmy zhang - 2013-07-28

      no,it is independent of os version...

       
  • tingfang-tan

    tingfang-tan - 2013-07-03

    Is there any plan to publish a version to fit 64-bit system?

     
  • jimmy zhang

    jimmy zhang - 2013-07-28

    will look into that, i have to admit that it seems like a weir bug

     

Log in to post a comment.