Hi,
In C# (.NET), I got 2 loops ->
A for ... do:
{
B for do:
{ something}
something that evaluates all "for"s in B loop
}
I used Parallel.For for the inner loop but the results of those loops varied every time I ran the application. I think it may be a result of Some asynchrounous work, but I am not sure how to be sure ab...
I know use System.exit(0) can end a java program, for instance, if I have a JFrame window, it will close and end the program, but I wonder how many other ways, can it be closed and the program be ended ? Including when an error occurs, will the program be shut down and the JFrame be closed ?
...
I came across a subtle bug a couple of days ago where the code looked something like this:
ostringstream ss;
int anInt( 7 );
ss << anInt << "HABITS";
ss << ends;
string theWholeLot = ss.str();
The problem was that the ends was sticking a '\0' into the ostringstream so theWholeLot actually looked like "7HABITS\0" (i.e. a null at the e...