Click here to Skip to main content
16,004,924 members
Home / Discussions / C#
   

C#

 
QuestionCounting Different Strings Pin
clint198226-Jul-06 11:12
clint198226-Jul-06 11:12 
AnswerLoop Pin
Ennis Ray Lynch, Jr.26-Jul-06 11:25
Ennis Ray Lynch, Jr.26-Jul-06 11:25 
GeneralRe: Loop Pin
clint198226-Jul-06 11:42
clint198226-Jul-06 11:42 
GeneralRe: Loop Pin
Ennis Ray Lynch, Jr.26-Jul-06 11:55
Ennis Ray Lynch, Jr.26-Jul-06 11:55 
GeneralRe: Loop Pin
clint198226-Jul-06 21:30
clint198226-Jul-06 21:30 
GeneralRe: Loop Pin
Ennis Ray Lynch, Jr.27-Jul-06 3:39
Ennis Ray Lynch, Jr.27-Jul-06 3:39 
GeneralHow about this??? Pin
Ennis Ray Lynch, Jr.27-Jul-06 4:26
Ennis Ray Lynch, Jr.27-Jul-06 4:26 
QuestionMulti-Threading a COM DLL in .NET Pin
P Sernz26-Jul-06 11:09
P Sernz26-Jul-06 11:09 
I have developed extensive socket handling routines in C/C++.
These routines read and write TCP blocks using my own compressed/encrypted protocols.
Some of these routines don't return until a full sequence of sends and receives is satisfied.
Actions are controlled using states with work loops broken by Sleep(20) calls.

When these routines are compiled into a C++ server with muti-threading, all works fine. You can have hundreds of simultaneous sockets in use all in various protocol states.

Now I'm developing the server in .NET and the I've simply wrapped the socket handling routines in a Class within a COM DLL.

I have to create the COM DLL Class once (since the socket handling routines communicate via an external socket number that the routines hand out) and then proceed to create threads in .NET to handle concurrent actions within the DLL.

When one .NET thread issues a call to the DLL that implements a Sleep loop internally, it locks up any calls to the DLL from any other .NET threads.

I have tried setting the module and thread apartment state on the COM handling to Multi-threaded mode in the belief this might help but no go...

Surely there is a way of multi-threading the DLL.

Thanks.

psernz
QuestionSmalltalk’s object-based hierarchy does not work so well".Also c#?? Pin
sawerr26-Jul-06 10:54
sawerr26-Jul-06 10:54 
AnswerRe: Smalltalk’s object-based hierarchy does not work so well".Also c#?? Pin
LongRange.Shooter28-Jul-06 9:13
LongRange.Shooter28-Jul-06 9:13 
QuestionProblems with a forms designer Pin
Ymer26-Jul-06 10:45
Ymer26-Jul-06 10:45 
AnswerRe: Problems with a forms designer [modified] Pin
LongRange.Shooter28-Jul-06 9:20
LongRange.Shooter28-Jul-06 9:20 
Questionalternative to structs? Pin
honeyman_can26-Jul-06 10:12
honeyman_can26-Jul-06 10:12 
AnswerIf you are worried about performance Pin
Ennis Ray Lynch, Jr.26-Jul-06 10:45
Ennis Ray Lynch, Jr.26-Jul-06 10:45 
GeneralRe: If you are worried about performance Pin
honeyman_can27-Jul-06 7:59
honeyman_can27-Jul-06 7:59 
AnswerRe: alternative to structs? Pin
LongRange.Shooter28-Jul-06 9:33
LongRange.Shooter28-Jul-06 9:33 
QuestionHow to deploy project with SQL Server 2005 express? Pin
_awatts26-Jul-06 9:55
_awatts26-Jul-06 9:55 
Question.GetFiles(?) Pin
HahnTech26-Jul-06 9:25
HahnTech26-Jul-06 9:25 
AnswerRe: .GetFiles(?) Pin
Dustin Metzgar26-Jul-06 9:55
Dustin Metzgar26-Jul-06 9:55 
GeneralRe: .GetFiles(?) Pin
HahnTech26-Jul-06 12:17
HahnTech26-Jul-06 12:17 
QuestionEnterprise Library 2.0 and Database Trace Listener Pin
osamahmirza26-Jul-06 9:18
osamahmirza26-Jul-06 9:18 
QuestionCommunicating between forms Pin
jerrymei26-Jul-06 9:04
jerrymei26-Jul-06 9:04 
AnswerRe: Communicating between forms Pin
led mike26-Jul-06 9:11
led mike26-Jul-06 9:11 
Questiontrygetvalue? Please help Pin
honeyman_can26-Jul-06 8:46
honeyman_can26-Jul-06 8:46 
AnswerDo you have access to a computer? Pin
Ennis Ray Lynch, Jr.26-Jul-06 9:12
Ennis Ray Lynch, Jr.26-Jul-06 9:12 

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.