Alf P. Steinbach wrote in message <4r************@mid.individual.net>...
>* rupert:
>Sorry correction;
- #include <map>
- #include <iostream>
- using std::cout;
- int main(int argc, char *argv[]){
- try{
- throw 1;
- }
- catch(int){
- cout<<"Catch\n";
- //std::flush;
-
-
OP: That should be 'std::cout<<std::flush;'.
-
-
-
-
> }
- return 0;
- }
-
-
-
-
>>
sorry try again. seems even with std::flush i still get a memory leak
It's unclear what you mean by "memory leak".
Fool, Alf! (<G>) Can't you see, it's right in front of you. He said, " **i**
still get a memory leak" [1]. Didn't say anything about the program!
(....or the std::map use.)
[1] - I get that all the time with CRS and Sometimers disease! (....in fact,
I think it's happening right now!)
--
Bob <GR
POVrookie