All Forums
 Microsoft Windows CE
 eVC Application Development
 BitsyXb and ADS WinCE 5 SDK problem
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

apopov

2 Posts

Posted - 09 Mar 2011 :  03:32:16  Show Profile
I have faced with a problem today. It looks like CTimeSpan works wrong. I tried the code below with VS2008 + ADS SDK for Debug and Release and it works wrong in Debug, but is correct in Release. I also tried that with Standard WinCE 5 SDK from MS web site and it works correct.

If you take a glance at the code below you will see that I expect ts1 = 1, but I got ts1 = 513770420 in VS2008 Debug.

CTime start1 = CTime::GetCurrentTime();
Sleep(1000);
CTime end1 = CTime::GetCurrentTime();
CTimeSpan ts1 = end1 - start1;

You can see Debug screenshots for ADS and Standard SDKs:



and VS2008 solution
Test.zip


Are there any ideas why it does not work with ADS SDK?
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000