I had this problem before. It causes by your Dlls. Remove that part of code,
build it, and then type it again. If it doesn't work do this:
if (sCurrentToken == "")
{
doSomething......
}
else
{
lstArrayLine.Add (sCurrentToken);
sCurrentToken = "";
}
hope it helps
sasha
"Michel Racicot" <mi*********************@cgi.com> wrote in message
news:uZ**************@TK2MSFTNGP12.phx.gbl...
I got a REALLY weird behavior...
In the following code,
if (sCurrentToken != "")
{
lstArrayLine.Add (sCurrentToken);
sCurrentToken = "";
}
when sCurrentToken is equal to "" (empty string), the sCurrentToken = "";
line, is EXECUTED!!! (but not the .add ( ) line...)
I traced and I really see the line being executed!!! How can this be
possible!?