View Single Post
Old Jun 26th, 2007, 5:37 AM   #1
rwm
Professional Programmer
 
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2 rwm is on a distinguished road
std::cout problems

heya!

ive been running into very strange bugs that seem to be originating from teh use of std::cout...

basically ive written a series of file parsers (which are used for a plugin using the maya API), and when i run the code independently from maya API the code runs fine, no problems whatsoever, but when I compile with the maya code maya keeps crashing with a fatal error. in the maya code i have put in couts in certain parts of the code, so well being me i put in some debug couts and the code suddenly started running fine so im like wtf! then i think maybe its got to be something to do with flushing the stream, so i simply remove the debug cout calls and replace with a call to cout.flush() and just as i expected the code runs fine...

i know this is not a maya API forum, but maybe someone has insight into why this might be causing problems...

has anyone run into a similar problem?

looking forward to a response!

thanks!
rwm is offline   Reply With Quote