i had an error in this line. may i know how to correct it..
threadField.Join(
new System.TimeSpan(MiliSeconds * 10000));i had an error in this line. may i know how to correct it..
threadField.Join(
new System.TimeSpan(MiliSeconds * 10000));Error 1 The best overloaded method match for 'System.Threading.Thread.Join(int)' has some invalid arguments C:\Documents and Settings\itcu\My Documents\Visual Studio 2005\Projects\DeviceApplication1\DeviceApplication1\SupportClass.cs 256 17 CHHPmax
Error 2 Argument '1': cannot convert from 'System.TimeSpan' to 'int' C:\Documents and Settings\itcu\My Documents\Visual Studio 2005\Projects\DeviceApplication1\DeviceApplication1\SupportClass.cs 256 34 CHHPmax
oh i got it. so for this threadField.Join(new System.TimeSpan(MiliSeconds * 10000)); , i will have to change to
threadField.Join(10000); right..
what if it was nanoseconds
and also it doesnt allow + sign..
threadField.Join(new System.TimeSpan(MiliSeconds * 10000 + NanoSeconds * 100));
threadField.Join(new System.TimeSpan(MiliSeconds * 10000 + NanoSeconds * 100));
it would be:
threadField.Join(MiliSeconds * 10000 + NanoSeconds * 100) This is assuming that your converting everything so that they are in milliseconds.