String Comparing in Debug\Release modes

  • Thread starter Thread starter Jared
  • Start date Start date
J

Jared

Hi,

I have some code wich looks like so..

s1= "1.1.4"
s2="1.1.4"

if s1<>s2 then
myfunc
end if

Problem, is myfunc is being called in "Release" mode on one particular
developers machine, but above code work as expected in Debug mode or even in
Release mode on entire different machine.

So what the hell cause illogical code flow, and I have tried string.copare
and string.equal. I have also deleted \din and \obj folder and also
"cleaned" project but that did nothing as well.

TIA
Jared
 
Jared said:
I have some code wich looks like so..

s1= "1.1.4"
s2="1.1.4"

if s1<>s2 then
myfunc
end if

Problem, is myfunc is being called in "Release" mode on one particular
developers machine, but above code work as expected in Debug mode or even in
Release mode on entire different machine.

So what the hell cause illogical code flow, and I have tried string.copare
and string.equal. I have also deleted \din and \obj folder and also
"cleaned" project but that did nothing as well.

Is that *actually* what the code looks like, or is it really getting
the strings from elsewhere?

Could you post a short but complete program which demonstrates the
problem on the box in question?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.
 
Back
Top