By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,887 Members | 1,442 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,887 IT Pros & Developers. It's quick & easy.

Porting Rogue Wave Program From Solaris to Linux

P: n/a
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)
{
RWOrderedIterator vectofclusts_iter(*((RWOrdered*) at(size)));
CCluster* pc;
while ((pc = (CCluster*) vectofclusts_iter()) != NIL)
pc->writeChartTo(fout);
}
}

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: st***********@utah.edu
Genetic Epidemiology Alternate: ba****@math.utah.edu
391 Chipeta Way -- Suite D Office: 801.587.9308
Salt Lake City, UT 84108-1266 http://www.math.utah.edu/~backus
Aug 15 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
ba****@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)
{
RWOrderedIterator vectofclusts_iter(*((RWOrdered*) at(size)));
CCluster* pc;
while ((pc = (CCluster*) vectofclusts_iter()) != NIL)
pc->writeChartTo(fout);
}
}

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

Aug 15 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.