Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
AnswerRe: Regular expressions Pin
snorkie7-Aug-07 3:30
professionalsnorkie7-Aug-07 3:30 
AnswerRe: Regular expressions Pin
Hessam Jalali7-Aug-07 3:35
Hessam Jalali7-Aug-07 3:35 
GeneralRe: Regular expressions Pin
Lutosław7-Aug-07 4:09
Lutosław7-Aug-07 4:09 
AnswerRe: Regular expressions Pin
Malcolm Smart7-Aug-07 3:44
Malcolm Smart7-Aug-07 3:44 
AnswerRe: Regular expressions Pin
PhilDanger7-Aug-07 3:58
PhilDanger7-Aug-07 3:58 
GeneralRe: Regular expressions Pin
Lutosław7-Aug-07 4:13
Lutosław7-Aug-07 4:13 
AnswerThanks, problem solved Pin
Lutosław7-Aug-07 4:24
Lutosław7-Aug-07 4:24 
QuestionMultithreading question Pin
Stevo Z7-Aug-07 2:07
Stevo Z7-Aug-07 2:07 
Hi,

I've a COM object, which can only be accessed from same thread as created. Some of the COM-object operations are time consuming. If I create that COM-object on the application thread, sometimes the UI freezes (of course) while the object is working. I would like to create and use that COM-object on diffrent than application thread, but I don't know how to do that.

Of course I now how to create threads and stuff, but I don't know how to keep those threads "alive" while no COM-object work is needed. I tried to create new Thread , start it, create a new Control object and access that thread by Control.Invoke(), but that is not working, 'cause the control seems to know the main application thread and decides to run on the main thread instead of thread where it is initialized.

I also tried to use background worker, but I doubt that when worker.RunWorkerAsync() method is called, it runs always on same the thread. It does when I have a simple application, but if there were some other multi threading operation's (in the same application) i thing they would probably use the thread used by background worker(when not working) so the background worker would take other not-used thread from thread pool(if needed) and the COM-object won't work on other thread than the one on which it was created.

I hope I made myself clear enough Smile | :)

thanx for help
AnswerRe: Multithreading question Pin
il_masacratore7-Aug-07 2:51
il_masacratore7-Aug-07 2:51 
GeneralRe: Multithreading question Pin
Stevo Z7-Aug-07 2:58
Stevo Z7-Aug-07 2:58 
AnswerRe: Multithreading question Pin
Luc Pattyn7-Aug-07 2:58
sitebuilderLuc Pattyn7-Aug-07 2:58 
GeneralRe: Multithreading question Pin
Stevo Z7-Aug-07 3:16
Stevo Z7-Aug-07 3:16 
QuestionDataBinding changes cached objects Pin
glFrustum7-Aug-07 2:04
glFrustum7-Aug-07 2:04 
AnswerRe: DataBinding changes cached objects Pin
Pete O'Hanlon7-Aug-07 2:09
mvePete O'Hanlon7-Aug-07 2:09 
GeneralRe: DataBinding changes cached objects Pin
glFrustum7-Aug-07 2:26
glFrustum7-Aug-07 2:26 
GeneralRe: DataBinding changes cached objects Pin
Pete O'Hanlon7-Aug-07 2:36
mvePete O'Hanlon7-Aug-07 2:36 
QuestionVisual Studio and .Net Runtime Framework dependency Pin
George_George7-Aug-07 1:56
George_George7-Aug-07 1:56 
AnswerRe: Visual Studio and .Net Runtime Framework dependency Pin
Christian Graus7-Aug-07 2:02
protectorChristian Graus7-Aug-07 2:02 
GeneralRe: Visual Studio and .Net Runtime Framework dependency Pin
George_George7-Aug-07 2:53
George_George7-Aug-07 2:53 
AnswerRe: Visual Studio and .Net Runtime Framework dependency Pin
Hessam Jalali7-Aug-07 3:15
Hessam Jalali7-Aug-07 3:15 
GeneralRe: Visual Studio and .Net Runtime Framework dependency Pin
George_George7-Aug-07 3:53
George_George7-Aug-07 3:53 
QuestionRich Text Box control- help Pin
Hum Dum7-Aug-07 1:54
Hum Dum7-Aug-07 1:54 
AnswerRe: Rich Text Box control- help Pin
Hessam Jalali7-Aug-07 3:25
Hessam Jalali7-Aug-07 3:25 
Questionhow to convert 2005 to 2003 Pin
avinol7-Aug-07 1:46
avinol7-Aug-07 1:46 
AnswerRe: how to convert 2005 to 2003 [modified] Pin
Hessam Jalali7-Aug-07 1:52
Hessam Jalali7-Aug-07 1:52 

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.