Click here to Skip to main content
15,909,199 members
Home / Discussions / C#
   

C#

 
AnswerRe: Activation or License Pin
Ilya Verbitskiy4-Oct-07 10:48
Ilya Verbitskiy4-Oct-07 10:48 
AnswerRe: Activation or License Pin
TJoe4-Oct-07 12:11
TJoe4-Oct-07 12:11 
QuestionDataGridView button problem Pin
udikantz4-Oct-07 9:20
udikantz4-Oct-07 9:20 
QuestionIssues with Mutlithreading and STA [modified] Pin
Aaron VanWieren4-Oct-07 8:53
Aaron VanWieren4-Oct-07 8:53 
AnswerRe: Issues with Mutlithreading and STA Pin
led mike4-Oct-07 9:52
led mike4-Oct-07 9:52 
GeneralRe: Issues with Mutlithreading and STA Pin
Aaron VanWieren4-Oct-07 10:34
Aaron VanWieren4-Oct-07 10:34 
AnswerRe: Issues with Mutlithreading and STA Pin
Luc Pattyn4-Oct-07 11:57
sitebuilderLuc Pattyn4-Oct-07 11:57 
GeneralRe: Issues with Mutlithreading and STA Pin
Aaron VanWieren4-Oct-07 12:12
Aaron VanWieren4-Oct-07 12:12 
IterateFeatureClass() is just a test class for right now that performs a number of editing operations, which are set up through the COM objects. I would have included that code but it includes allot of third party library stuff that is registered as STA. I ran a test with two threads and my time doubled compared to my single thread test. I made sure to time the performance for just the iterations as well as the setup and tear down.

Basically my test code is creating a workspace(think database connection) and retrieving a featureclass(think table). From this feature class it creates an object and adds a feature(think row) then modifies a field(think column) and finally it stores it in the workspace. I am trying to explain this without getting too much into the library as it is different terminology. But I have ensured that all the COM Components are generated withing the STA thread.

Luc Pattyn wrote:
The alternative of course would be putting the multithreading right inside the COM object
itself, but I guess that is not what you hope for.


As this is a library I cannot modify I cannot do this.

The interesting this is that a colleague of mine attempted this and just through it together with MTA threads. In my testing I discovered this was the worst thing to do performance wise as it took the MTA thread 8 mins to do what an STA thread was doing in 4!

Hope this helped a little bit more.

_____________________________________________________________________

Our developers never release
code. Rather, it tends to escape, pillaging the countryside all around.

The Enlightenment Project (paraphrased comment)

Visit Me at GISDevCafe

GeneralRe: Issues with Mutlithreading and STA Pin
Luc Pattyn4-Oct-07 12:39
sitebuilderLuc Pattyn4-Oct-07 12:39 
QuestionProblems with opening Child Window in MDI Pin
RichardAlbrecht4-Oct-07 8:23
RichardAlbrecht4-Oct-07 8:23 
AnswerRe: Problems with opening Child Window in MDI Pin
KaineDunno4-Oct-07 8:38
KaineDunno4-Oct-07 8:38 
GeneralRe: Problems with opening Child Window in MDI Pin
RichardAlbrecht4-Oct-07 9:12
RichardAlbrecht4-Oct-07 9:12 
GeneralRe: Problems with opening Child Window in MDI Pin
Pete O'Hanlon4-Oct-07 10:40
mvePete O'Hanlon4-Oct-07 10:40 
QuestionBeing more generic Pin
Ryno Burger4-Oct-07 8:18
Ryno Burger4-Oct-07 8:18 
AnswerRe: Being more generic Pin
MartyExodus4-Oct-07 8:42
MartyExodus4-Oct-07 8:42 
AnswerRe: Being more generic Pin
PIEBALDconsult4-Oct-07 9:09
mvePIEBALDconsult4-Oct-07 9:09 
AnswerRe: Being more generic Pin
PIEBALDconsult4-Oct-07 9:14
mvePIEBALDconsult4-Oct-07 9:14 
AnswerRe: Being more generic Pin
Pete O'Hanlon4-Oct-07 10:37
mvePete O'Hanlon4-Oct-07 10:37 
AnswerRe: Being more generic [modified] Pin
Nissim Salomon4-Oct-07 11:05
Nissim Salomon4-Oct-07 11:05 
QuestionPost blog using C# Pin
Phoen254-Oct-07 8:02
Phoen254-Oct-07 8:02 
AnswerRe: Post blog using C# Pin
Judah Gabriel Himango4-Oct-07 9:13
sponsorJudah Gabriel Himango4-Oct-07 9:13 
AnswerRe: Post blog using C# Pin
Pete O'Hanlon4-Oct-07 10:44
mvePete O'Hanlon4-Oct-07 10:44 
QuestionSlide-down/up Menubar... Pin
hostopolis4-Oct-07 7:25
hostopolis4-Oct-07 7:25 
Questionreading byte[] instead of binary reader Pin
Xmen Real 4-Oct-07 6:38
professional Xmen Real 4-Oct-07 6:38 
AnswerRe: reading byte[] instead of binary reader Pin
Rob Philpott4-Oct-07 7:05
Rob Philpott4-Oct-07 7:05 

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.