Ok, what do I have to do to thread my Pocket PC app using VS 2005 Pro?

I know it is not wise to threat a PPC app, but I also know it can be done!

Typically, the first step is to include a reference to System.Thread, but
that is not part of the PPC (WCE?) subset.

What now, brown cow?

RE: vb.net thread by srhartone

srhartone
Wed Mar 12 16:35:04 CDT 2008

You need a reference to System.Threading. Not sure why you say it is not wise
to thread a device application?? We always thread our apps, sometimes it's
the only way to get a job done.

Some code is as follows:

Thread myThread = new Thread(new ThreadStart(DoStuff));
myThread.Start();

public void DoStuff()
{
//Do long running process...
}


--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


"jp2msft" wrote:

> Ok, what do I have to do to thread my Pocket PC app using VS 2005 Pro?
>
> I know it is not wise to threat a PPC app, but I also know it can be done!
>
> Typically, the first step is to include a reference to System.Thread, but
> that is not part of the PPC (WCE?) subset.
>
> What now, brown cow?

RE: vb.net thread by jp2msft

jp2msft
Thu Mar 13 08:12:01 CDT 2008

Referencing System.Threading at the top of my VB app was the *first* think I
did, but Visual Studio balked that this was not defined in the current
context.

If I recall correctly, the Pocket PC (or WCE) will only run something like 6
different threads at one time. Sure, you can thread, but it has to be done in
moderation.

"Simon Hart [MVP]" wrote:

> You need a reference to System.Threading. Not sure why you say it is not wise
> to thread a device application?? We always thread our apps, sometimes it's
> the only way to get a job done.
>
> Some code is as follows:
>
> Thread myThread = new Thread(new ThreadStart(DoStuff));
> myThread.Start();
>
> public void DoStuff()
> {
> //Do long running process...
> }
>
>
> --
> Simon Hart
> Visual Developer - Device Application Development MVP
> http://simonrhart.blogspot.com
>
>
> "jp2msft" wrote:
>
> > Ok, what do I have to do to thread my Pocket PC app using VS 2005 Pro?
> >
> > I know it is not wise to threat a PPC app, but I also know it can be done!
> >
> > Typically, the first step is to include a reference to System.Thread, but
> > that is not part of the PPC (WCE?) subset.
> >
> > What now, brown cow?

Re: vb.net thread by James

James
Tue Mar 18 23:13:40 CDT 2008

Hi,
Be sure to add a reference to the right dll and use something like:
Private MyTread as system.threading.thread


"jp2msft" <jp2msft@discussions.microsoft.com> wrote in message
news:791BD7C0-BCE0-423D-B78F-214F3D5782E4@microsoft.com...
> Ok, what do I have to do to thread my Pocket PC app using VS 2005 Pro?
>
> I know it is not wise to threat a PPC app, but I also know it can be done!
>
> Typically, the first step is to include a reference to System.Thread, but
> that is not part of the PPC (WCE?) subset.
>
> What now, brown cow?