Porting Rogue Wave Program From Solaris to Linux

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steven Backus

    Porting Rogue Wave Program From Solaris to Linux

    I inherited a Solaris c++ program that uses Rogue Wave and am trying to
    port it to linux. It seg faults in this code:

    for (int size = entries() - 1; size 1; --size)
    {
    RWOrderedIterat or vectofclusts_it er(*((RWOrdered *) at(size)));
    CCluster* pc;
    while ((pc = (CCluster*) vectofclusts_it er()) != NIL)
    pc->writeChartTo(f out);
    }
    }

    Unfortunately I don't know much about c++ or rogue wave. Can
    anyone give me some hints about debugging this?

    TIA,
    Steve
    --
    Steven J. Backus Computer Specialist
    University of Utah E-Mail: steven.backus@u tah.edu
    Genetic Epidemiology Alternate: backus@math.uta h.edu
    391 Chipeta Way -- Suite D Office: 801.587.9308
    Salt Lake City, UT 84108-1266 http://www.math.utah.edu/~backus
  • Paavo Helde

    #2
    Re: Porting Rogue Wave Program From Solaris to Linux

    backus@episun7. med.utah.edu (Steven Backus) kirjutas:
    I inherited a Solaris c++ program that uses Rogue Wave and am trying to
    port it to linux. It seg faults in this code:
    >
    for (int size = entries() - 1; size 1; --size)
    {
    RWOrderedIterat or vectofclusts_it er(*((RWOrdered *) at(size)));
    CCluster* pc;
    while ((pc = (CCluster*) vectofclusts_it er()) != NIL)
    pc->writeChartTo(f out);
    }
    }
    >
    Unfortunately I don't know much about c++ or rogue wave. Can
    anyone give me some hints about debugging this?

    That's by far too less code to say anything. Debugging tools are
    platform-specific and thus off-topic here. I would try valgrind or efence
    first and see if they help to pinpoint the problem. My bet is that the
    code accesses some object which is already deleted or never existed.


    hth
    Paavo

    Comment

    Working...