Click here to Skip to main content
15,914,481 members
Home / Discussions / C#
   

C#

 
GeneralRe: Change ListView SubItem value Pin
pmarfleet17-Jan-08 11:24
pmarfleet17-Jan-08 11:24 
GeneralRe: Change ListView SubItem value Pin
Kayess Tech17-Jan-08 12:03
professionalKayess Tech17-Jan-08 12:03 
GeneralRe: Change ListView SubItem value Pin
Kayess Tech17-Jan-08 12:09
professionalKayess Tech17-Jan-08 12:09 
GeneralRe: Change ListView SubItem value Pin
Gareth H17-Jan-08 13:08
Gareth H17-Jan-08 13:08 
GeneralRe: Change ListView SubItem value Pin
Kayess Tech17-Jan-08 13:16
professionalKayess Tech17-Jan-08 13:16 
GeneralRe: Change ListView SubItem value [modified] Pin
DaveyM6917-Jan-08 23:44
professionalDaveyM6917-Jan-08 23:44 
GeneralRe: Change ListView SubItem value Pin
Kayess Tech20-Jan-08 9:00
professionalKayess Tech20-Jan-08 9:00 
GeneralThreaded library design Pin
invictus317-Jan-08 11:13
invictus317-Jan-08 11:13 
Hi
I am writing a small network protocol library for an internal project and I got one question I have been wondering whether is possible or not.

Lets assume I have a button for starting the network service (or heavy file IO for that matter) with a .start() method. Now, the object representing the service should just start and run in the background (threading), but at certain points it should signal events (delegates). How can I make sure these delegates are run NOT in the background thread, but in the same thread as started the service with the .start() method? I know I inside the callback can run BeginInvoke after the delegate has been signaled, but I was wondering if there was a more transparent solution where the initiator dont have to even bother to handle the thread issue? It would be so sweet if the delegate automatically was run within the main thread.

Any ideas?

These concurrency issues are my last huge obstacle to overcome before I consider myself confident with the .NET framework and C#, so I would be eternal grateful for any hints on this topic. Thanks a lot Smile | :)
GeneralRe: Threaded library design Pin
Luc Pattyn17-Jan-08 11:23
sitebuilderLuc Pattyn17-Jan-08 11:23 
GeneralRe: Threaded library design Pin
invictus317-Jan-08 11:34
invictus317-Jan-08 11:34 
GeneralRe: Threaded library design Pin
Ed.Poore17-Jan-08 11:41
Ed.Poore17-Jan-08 11:41 
JokeRe: Threaded library design Pin
Luc Pattyn17-Jan-08 11:52
sitebuilderLuc Pattyn17-Jan-08 11:52 
GeneralRe: Threaded library design Pin
invictus317-Jan-08 20:54
invictus317-Jan-08 20:54 
GeneralRe: Threaded library design Pin
Luc Pattyn18-Jan-08 1:52
sitebuilderLuc Pattyn18-Jan-08 1:52 
GeneralRe: Threaded library design Pin
invictus320-Jan-08 7:01
invictus320-Jan-08 7:01 
GeneralRe: Threaded library design Pin
Luc Pattyn20-Jan-08 10:21
sitebuilderLuc Pattyn20-Jan-08 10:21 
GeneralRe: Threaded library design Pin
invictus320-Jan-08 10:38
invictus320-Jan-08 10:38 
GeneralRe: Threaded library design Pin
GuyThiebaut17-Jan-08 11:42
professionalGuyThiebaut17-Jan-08 11:42 
QuestionExcel Chart from Office 2002 Pin
springtime5417-Jan-08 10:39
springtime5417-Jan-08 10:39 
GeneralRe: Excel Chart from Office 2002 Pin
Paul Conrad17-Jan-08 13:30
professionalPaul Conrad17-Jan-08 13:30 
QuestionProblem with .Net-Remoting Pin
Opa Knack17-Jan-08 9:48
Opa Knack17-Jan-08 9:48 
GeneralDate Pin
simworld17-Jan-08 8:20
simworld17-Jan-08 8:20 
GeneralRe: Date Pin
Luc Pattyn17-Jan-08 8:53
sitebuilderLuc Pattyn17-Jan-08 8:53 
GeneralRe: Date Pin
PIEBALDconsult17-Jan-08 12:21
mvePIEBALDconsult17-Jan-08 12:21 
GeneralBitBlt Problem Pin
Richard Blythe17-Jan-08 7:56
Richard Blythe17-Jan-08 7:56 

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.