Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
Expand all | Collapse all

Cant use the CRT Multithreaded-Debug-DLL (/MDd) Option

  • 1.  Cant use the CRT Multithreaded-Debug-DLL (/MDd) Option

    Posted Wed February 09, 2011 12:01 PM

    Originally posted by: Frank_da


    Hi,

    what I use:
    • CPLEX 12.2 Acad. Init. + Fixpack 12.2.2
    • Concert Technology AND Opl Libs
    • VS C++ 2008

    my problem:
    I can not use the Multithreaded-Debug-DLL (/MDd) Option with OPL / CPLEX. For debugging purposes I want to use the /MDd Option with my project, but when I create:

    IloOplSettings MySettings(MyEnv , MyErrhandler);
    
    there is a buffer overflow.

    Instantiating the following objects befor the IloOplSettings works fine:
    IloOplErrorHandler MyErrhandler(MyEnv, cout);
    IloOplModelSource MyModelSource(MyEnv, My_modFile);
    


    Any chance that I can use the /MDd Option with my OPL integration?

    Thanks in advance!
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Cant use the CRT Multithreaded-Debug-DLL (/MDd) Option

    Posted Wed February 09, 2011 04:01 PM

    Originally posted by: SystemAdmin


    CRT Multithreaded-Debug-DLL linking will not work and is not supported. However, this doesn't prevent from creating a debug configuration for your project. It just prevents usage of APIs that are available only in debug CRT.

    You may want to have a look at this technote:
    http://www-01.ibm.com/support/docview.wss?uid=swg21439926

    which is for CPLEX but configuration will be similar for debug configuration of your OPL project

    Regards,
    Faisal
    #DecisionOptimization
    #OPLusingCPLEXOptimizer