Click here to Skip to main content
15,922,155 members
Home / Discussions / Mobile
   

Mobile

 
GeneraleVC++ with SP4 Pin
Alper KARS26-Jun-05 21:51
Alper KARS26-Jun-05 21:51 
GeneralRe: eVC++ with SP4 Pin
João Paulo Figueira27-Jun-05 1:34
professionalJoão Paulo Figueira27-Jun-05 1:34 
GeneralRe: eVC++ with SP4 Pin
Alper KARS27-Jun-05 20:21
Alper KARS27-Jun-05 20:21 
GeneralVS2005 Smartphone2003 project Pin
Adnan Siddiqi26-Jun-05 4:41
Adnan Siddiqi26-Jun-05 4:41 
GeneralRe: VS2005 Smartphone2003 project Pin
MKlucher5-Jul-05 6:51
MKlucher5-Jul-05 6:51 
GeneralMobile device ID as a client Pin
Utku KAYA25-Jun-05 2:35
Utku KAYA25-Jun-05 2:35 
GeneralRe: Mobile device ID as a client Pin
Utku KAYA25-Jun-05 2:40
Utku KAYA25-Jun-05 2:40 
GeneralAsynchronous Mystery Pin
DiscoJimmy22-Jun-05 8:57
DiscoJimmy22-Jun-05 8:57 
I'm having a problem I can't explain. I'm trying to create a generic class that asynchronously loads objects in the background for later use. I'm using C#/VS.NET 2003 and programming for an IPAQ 5500 series.
The code is very simple, just a function which loads 3 forms into 3 objects, and releases a mutex after each one is loaded. Then it has 3 properties, one for each object, and in the get accessor it waits on the mutex and returns the object:

private workerThreadProc()
{
mutex1.WaitOne();
mutex2.WaitOne();
mutex3.WaitOne();

frmtest = new frmTesting();
mutex1.ReleaseMutex();
frmload = new frmLoading();
etc.
}

public frmTesting TestingForm
{
get
{
mutex1.WaitOne();
return frmtest;
}
}

Now if i take just that method and run in on a separate thread inside my form, it works. But if I create an instance of this class and the class runs the thread asynchronously in it's constructor, the method starts but then seems to sleep. Any call to the three properties will get to mutex?.WaitOne(); and then hang.
Anyone have any idea why this is? It doesn't happen on the desktop, and if I explicitly set the thread priority to Above Normal, it doesn't happen either, but then my form is unresponsive until it's finished and I may as well have loaded them synchronously.

Any ideas?

Nick



Generalusing ActiveX control Pin
Member 187781622-Jun-05 0:28
Member 187781622-Jun-05 0:28 
GeneralWince Message Queues Opening Error Pin
indianstar21-Jun-05 0:29
indianstar21-Jun-05 0:29 
GeneralProblems controlling CPU frequency on laptops with 533 MHz FSB Pin
Vitaly Kashkarov19-Jun-05 21:34
Vitaly Kashkarov19-Jun-05 21:34 
GeneralC#: Modifying existing dialogs (p/invoke) Pin
ben ogle17-Jun-05 12:54
ben ogle17-Jun-05 12:54 
QuestionScaling JPEG in evc4? Pin
rammle16-Jun-05 20:05
rammle16-Jun-05 20:05 
AnswerRe: Scaling JPEG in evc4? Pin
Anonymous22-Jun-05 9:36
Anonymous22-Jun-05 9:36 
GeneralMerge Replication (SqlCe) - Avoid full replication run Pin
Seraphin16-Jun-05 2:37
Seraphin16-Jun-05 2:37 
GeneralCF listview sort & Arrows Pin
aixin15-Jun-05 12:28
aixin15-Jun-05 12:28 
GeneralWCE_INS WCE_DEL & IrDA Pin
D.J.Deky15-Jun-05 3:35
D.J.Deky15-Jun-05 3:35 
GeneralUploading file using Pocket IE Pin
Bill Ferreira14-Jun-05 2:41
Bill Ferreira14-Jun-05 2:41 
GeneralPocket PC 2002 SDK: how to remove Pin
kgeza713-Jun-05 23:04
kgeza713-Jun-05 23:04 
GeneralAdvanced WinINet - Please HELP! Pin
patrick__b13-Jun-05 2:41
patrick__b13-Jun-05 2:41 
QuestionGet raw data in CBitmap?? Pin
splitend1012-Jun-05 14:04
splitend1012-Jun-05 14:04 
Generalaltering storage mem / program mem, programmaticaly Pin
GDavy9-Jun-05 21:50
GDavy9-Jun-05 21:50 
GeneralRe: altering storage mem / program mem, programmaticaly Pin
João Paulo Figueira10-Jun-05 13:17
professionalJoão Paulo Figueira10-Jun-05 13:17 
GeneralRe: altering storage mem / program mem, programmaticaly Pin
GDavy12-Jun-05 20:17
GDavy12-Jun-05 20:17 
Generalstream embeded vc Pin
_tasleem9-Jun-05 20:35
_tasleem9-Jun-05 20:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.