Thread Scheduling Problem ( WinCE 6.0)



I have:
Visual Studio 2005 SP1,
WinCE 6.0 R2 with all updates up to november 2008,
Cirrus Logic's BSP for EP9302 (ep93xx).

To test my newly created OSDesign I tried to run a dummy application of the
"infinite loop" type. It have to be run once a second . Regardless of the
loading and executing method its normal work terminates in 30-35 seconds.

1. The application is loaded to my device as a part of OS (subproject). It
contains Sleep(1000). It's working for approximately 30 sec and then
everything hangs.
1-А. The same (subproject), but Sleep(1000) is replaced by permanent calls of
GetTickCount () (I know it's a bad practice!). It's working for an unlimited
time, but it's not what I need.

2. OS is downloaded to my device, the application is run by VS 2005,
connection through TCP Connect Transport and specific IP address.
2-A. If it contains Sleep(1000) it runs for the same ~30 sec.
2-B. If it contains GetTickCount () calls its working OK. But when I try to
debug it, i.e. set a breakpoint, watch registers, step over, etc. the remote
connection to the device is lost in about 30 sec.
2-C. I've added to the main thread containing Sleep(1000) the second
background thread of lowered priority (THREAD_PRIORITY_BELOW_NORMAL)
containing GetTickCount () calls. I've tried to trace its performance by LED
blinking from the main thread and by debugging messages (RETAILMSG) from both
threads. In 28-35 seconds the execution of the main thread stops, the
background thread is still working.

In addition, if I stop sending debugging messages or try to send them more
rarely (e.g. in 10 sec), again the connection is lost in the same ~30 sec.

I'd like to know, where can I found the thread scheduler in WinCE 6.0 R2?

Or maybe the problem lays somewhere else:
- In my OSDesign?
- In Cirrus's BSP (I've found there several insignificant errors)?
- or elsewhere?

Thanks in advice.

--
Message posted via http://www.pocketpcjunkies.com

.



Relevant Pages

  • Re: Some broad questions
    ... that for wince, the SDK content varies depending on what you have into your ... BSP stands for Board Support Package. ... embeded application using a reference board which can support a WCE image. ... Q4-When vendors sell their reference boards, do they also sell you their ...
    (microsoft.public.windowsce.embedded)
  • VS 2005, WinCE 5.0, debug ethernet, activesync - explosion mix!
    ... Activesync or use ethernet lan card. ... WinCE lan card is working propelly, I can ping, copy data over network, ... connection state is always ESTABLISHED. ... device I get that IP associated to "VMINI1" adapter. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Addendum: Socket drops out between desktop and Emulator
    ... I found by expermentation that by placing a slight delay "Thread.Sleep;" ... connection to be maintained without error. ... Any ideas as to why a slight delay on the WinCe end (this solution works ... >>> Paul T. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: How to Autodial using RNAApp.exe?
    ... functions around this you can easily check if the connection is still going ... In the ICS for WINCE 3.0 it shows the following kesy (but the ... I see in the Compatible Dialer documentation that a queue needs to be ... How can I tell the Compatible Dialer is working and creating the queue? ...
    (microsoft.public.windowsce.embedded)
  • Re: platform manager does not connect after installing second network card
    ... Assume you have a corporate network with all servers like a DHCP server. ... Each time you decide to connect to an WinCE device in the LAN that is not ... You only establish an TCP connection. ...
    (microsoft.public.windowsce.embedded.vc)

Loading