[Solved] Unterminating c++ Program [closed]

You are calling the MathContext constructor-methods directly, change that to to the below by dropping the first part of MathContext::MathContext to just MathContext int main(int argc, _TCHAR* argv[]) { MathContext context[8]; context[0] = MathContext(); context[1] = MathContext((unsigned short) 46); context[2] = MathContext((unsigned int) 20); context[3] = MathContext(MathContext::UP); context[4] = MathContext((unsigned short) 36, (unsigned int) 30); … Read more

[Solved] Why does this code hang on reaching the first ReadLine from a StreamReader?

I think you should return to basics: public static string SendXMLFile(string xmlFilepath, string uri, int timeout) { using (var client = new WebClient()) { client.Headers.Add(“Content-Type”, “application/xml”); byte[] response = client.UploadFile(uri, “POST”, xmlFilepath); return Encoding.ASCII.GetString(response); } } and see what works and what the server thinks of your file. When you really need a TimeOut then … Read more

[Solved] While (true) loop lagg [closed]

while(true) is an infinite loop, the only way of getting out of it is using break. Or changing while(true) to some condition that alternatively ends. In this code, the while(true) part makes no real sense to me, you should probably add something else to that part as well, e.g. some connection stuff etc. 6 solved … Read more