🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.pl.comp.lang.csharp
1 messages
1 total messages Started by Homar Fri, 12 Mar 2010 08:43
AsyncResultw Compact Framework
#21404
Author: Homar
Date: Fri, 12 Mar 2010 08:43
32 lines
1499 bytes
Witam,
portuje fragment 'desktopowej' aplikacji do Compact Framework.
Mam funkcje

[code]

protected static void GeneralCompletionCallback(IAsyncResult asyncResult)
{
	AsyncResult resultObj = (AsyncResult)asyncResult;
	ActionHandler d = (ActionHandler)resultObj.AsyncDelegate;
	
	try
	{
		d.EndInvoke(asyncResult);
	}
	catch (Exception e)
	{
		WriteErrorException(e);
		throw;
	}
}

[/code]

W CF niestety nie ma AsyncResult.
Jak to najprosciej zrobic?
Znalazlem cos tutaj:
http://objectmix.com/dotnet/98840-does-compact-framework-v2-0-support-asynchronous-delegates.html
Chyba nalezaloby uzyc ThreadPool, ale w tym zakresie mam malo wiedzy i 
bede wdzieczny za wszelka pomoc.

Pozdrawiam
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads