Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
My current issue is, I want to access a remote Web Services through https other than through http. In this case, I want to use server certificate, but not using the client certificate (one-directional authentication). And in my situation, simply accept all server certificate is fine, and I just need the traffic encryption feature of https.
But I can not find such samples both in my books and in the internet. So I come here for help. Do you have any documents or samples to make a reference?
Hi guys! Does anyone out there know how to help me about this issue? I want to have a button at my app where the user can check for a newer version. I already uploaded the app on a server, and in the publish properties everything is setup for checking for newer version, but how should I code a button for checking for updates? Thanks
I would like to know whether the following would be wise or not:
Seeing that 'System.Threading.Thread.Suspend()' is obsolete, I want to create two threads and declare an enumeration to store some thread states (not referring to ThreadState). I.E:
public struct THREAD_STATUS
public int threadWorking;
public int threadSleeping;
When the one thread wants to do some processing, it first check the state of the other thread before proceeding. Should the state be in threadSleeping state the one thread puts the other one in a Suspend state and can continue processing, thus the following can be prevented:
A thread may be performing a system-wide-synchronized operation like locking a range of bytes in a file, writing to those bytes, unlocking those bytes, then closing the file. A thread is suspended before the unlock, that range of bytes will remain locked for an indeterminate amount of time until the thread is resumed or the process terminates
Will this be a good approach?
Many thanks in advance
The only programmers that are better that C programmers are those who code in 1's and 0's