[Closed] The strangest .Net error o_O
Hey guys,
I’m calling to you cause I’m kind of frustrated, confused, and a little bit angry but I’ve encountered an error which I can’t explain.
Preface:
I have written a script-prototype that makes heavy use of .Net connecting via TCP / IP to a Server and Stream some data. I have to say that I have written two methods, one for UDP and one for TCP. The UDP method works perfectly. When it came to TCP/IP the struggle began. Lately I discovered that I have to write a class in C# and thought it was getting better with this but in the final stages my confusion was raised to Double.PositiveInfinity.
Headache:
The method in my class from C# returns a Byte Array, passes it to some Maxscript-functions so the Bytearray is getting converted to the specific values (float, int, etc.), I can see that these bytes are correct when I print that command like:
print(blabber.doSomethingwithByteArray())
The method produces correct results in my scene controlling some objects but here’s what makes me crazy:
When I remove the “print” command so there is just
blabber.doSomethingwithByteArray()
Nothing works anymore, no data is sent to the objects. If I re-integrate that command, everything is fine.
Has anybody encountered such an error? Am I doing something completely wrong? I can’t explain that stuff. The only thing I know is when my father told me about such an error they had in the 70’s (!) when they were programming in Fortran and some registers got messed up because of bitshifting caused by the new command. But come on, this can’t be true nowadays?!
Thanks for reading through my problem.