Click here to Skip to main content
15,906,624 members
Home / Discussions / C#
   

C#

 
QuestionTechnical Design Strategy and Architectural Design Strategy for Messenger Pin
Sakrand16-Nov-06 7:43
Sakrand16-Nov-06 7:43 
QuestionError in WebBrowser Pin
maylels16-Nov-06 6:54
maylels16-Nov-06 6:54 
AnswerRe: Error in WebBrowser Pin
Judah Gabriel Himango16-Nov-06 8:54
sponsorJudah Gabriel Himango16-Nov-06 8:54 
GeneralRe: Error in WebBrowser Pin
maylels16-Nov-06 12:27
maylels16-Nov-06 12:27 
QuestionWhich componenets to register in deployment projects Pin
wasife16-Nov-06 6:41
wasife16-Nov-06 6:41 
QuestionSelect a node in a treeView using Mouse Right Click Pin
h@s@n16-Nov-06 6:23
h@s@n16-Nov-06 6:23 
AnswerRe: Select a node in a treeView using Mouse Right Click Pin
Judah Gabriel Himango16-Nov-06 6:40
sponsorJudah Gabriel Himango16-Nov-06 6:40 
QuestionCOM interop threading problem Pin
Emad Attia16-Nov-06 5:53
Emad Attia16-Nov-06 5:53 
We are using a COM library through interop (ESRI's lib). Since the library is sometimes slow we decided to create a dialog to allow the user to cancel a long running request.

The request is running on a thread. Pressing the cancel button on that dialog will Thread.Abort() the request.

The problem we are facing is that the application's behavior is unpredictable after the user performs several cancellations. Sometimes, the application waits forever (hangs) and sometimes it just takes all of the processor's time.

As you can see there is little info here. The only thing that we know about the COM library is that it is running in a single threaded apartment - STA.

Questions:
1. Is it possible to do this kind of threading work with an STA COM library through interop?
2. Is there any other way to do the same thing (other than aborting the thread)?
3. Do you have any experience with multi-threading ESRI tasks in .NET (not C++)? If yes, can you please provide any advice on how to tackle this problem.

We posted this problem on ESRI's forums to no avail Confused | :confused:
Any help is greatly appreciated.
Thanks
AnswerRe: COM interop threading problem Pin
Judah Gabriel Himango16-Nov-06 6:35
sponsorJudah Gabriel Himango16-Nov-06 6:35 
GeneralRe: COM interop threading problem Pin
Emad Attia16-Nov-06 6:55
Emad Attia16-Nov-06 6:55 
QuestionHow to run custom code when List.Add or List.Remove is running Pin
Chris Richner16-Nov-06 5:38
Chris Richner16-Nov-06 5:38 
AnswerRe: How to run custom code when List.Add or List.Remove is running Pin
Judah Gabriel Himango16-Nov-06 6:29
sponsorJudah Gabriel Himango16-Nov-06 6:29 
AnswerRe: How to run custom code when List.Add or List.Remove is running Pin
Daniel Grunwald16-Nov-06 7:43
Daniel Grunwald16-Nov-06 7:43 
AnswerRe: How to run custom code when List.Add or List.Remove is running Pin
Chris Richner16-Nov-06 8:49
Chris Richner16-Nov-06 8:49 
QuestionSending Email Message Pin
zaboboa16-Nov-06 5:33
zaboboa16-Nov-06 5:33 
AnswerRe: Sending Email Message Pin
ednrgc16-Nov-06 6:15
ednrgc16-Nov-06 6:15 
QuestionGetting default namespace name Pin
Zoltan Balazs16-Nov-06 5:08
Zoltan Balazs16-Nov-06 5:08 
AnswerRe: Getting default namespace name Pin
led mike16-Nov-06 5:26
led mike16-Nov-06 5:26 
GeneralRe: Getting default namespace name Pin
Zoltan Balazs16-Nov-06 7:15
Zoltan Balazs16-Nov-06 7:15 
AnswerRe: Getting default namespace name Pin
Daniel Grunwald16-Nov-06 7:44
Daniel Grunwald16-Nov-06 7:44 
GeneralRe: Getting default namespace name Pin
Zoltan Balazs16-Nov-06 8:32
Zoltan Balazs16-Nov-06 8:32 
QuestionPower Notation Pin
demetriou16-Nov-06 5:06
demetriou16-Nov-06 5:06 
AnswerRe: Power Notation Pin
User 665816-Nov-06 6:05
User 665816-Nov-06 6:05 
AnswerRe: Power Notation Pin
ednrgc16-Nov-06 6:28
ednrgc16-Nov-06 6:28 
Questiondataset Pin
fmardani16-Nov-06 4:26
fmardani16-Nov-06 4:26 

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.