Problem with profiler or iostream? 
Author Message
 Problem with profiler or iostream?


this short program compiles and runs ok.

#include <iostream>
using namespace std;

int main(int argc, char *argv[])
 cout << "testoutput";


But when i run it under the VS6.0 profiler there is a line
       0,001   0,0        0,001   0,0        1 std::uncaught_exception(void)
in the profiler output for function time.
when i replace line 3 with: cout << "testoutput" << endl;
I get
       0,001   0,0        0,001   0,0        2 std::uncaught_exception(void)
so, apparantly, cout is causing an uncought exception. Or so the profiler
thinks. But the program runs fine otherwise. If I put in a try and catch
clause it never gets activated.
What causes this exception? What can i do about it? Any general hint, tips
how to profile programs that use the MS VS6.0 stl library?

Thanks - KA

Tue, 09 Dec 2003 17:40:33 GMT  
 [ 1 post ] 

 Relevant Pages 

1. iostream vs iostream.h -- VC++5 vs VC++6 problem

2. Fw: <iostream>, <iostream.h>, Visual C++, g++

3. <iostream>, <iostream.h>, Visual C++, g++

4. mixing iostream.h and std::iostream etc...

5. Iostream vs Iostream.h

6. Migration from old iostream to Standard iostream

7. mixing iostream.h and std::iostream etc...

8. Problem with PROF profiler on sun unix and cc compiler

9. Watcom v 10 sampler/profiler problem

10. Problems with profiler

11. Link problem with Profiler in VC++ 6.0

12. Profiler Problem in VC6


Powered by phpBB® Forum Software