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

C#

 
Questionunable to load the dll Pin
dukuria17-Aug-07 2:32
dukuria17-Aug-07 2:32 
AnswerRe: unable to load the dll Pin
Johan Lombaard17-Aug-07 2:47
Johan Lombaard17-Aug-07 2:47 
QuestionRe:Displaying Messagebox within client Region Pin
RameshwerE17-Aug-07 2:27
RameshwerE17-Aug-07 2:27 
AnswerRe:Displaying Messagebox within client Region Pin
Hessam Jalali17-Aug-07 5:45
Hessam Jalali17-Aug-07 5:45 
QuestionHow to get a CSV file into a table? Pin
dorine8217-Aug-07 1:58
dorine8217-Aug-07 1:58 
AnswerRe: How to get a CSV file into a table? Pin
error140817-Aug-07 2:13
error140817-Aug-07 2:13 
AnswerRe: How to get a CSV file into a table? Pin
Justin Perez17-Aug-07 2:19
Justin Perez17-Aug-07 2:19 
QuestionRemoting only runs 4/5 instances Pin
BarbaryS17-Aug-07 1:41
BarbaryS17-Aug-07 1:41 
I have writen a simple program that calculates Pi to n number of digits. I have created a server that has it bound on a socket and then a client that calls it.

When I run up 6 or 7 clients only 4 requests are handled at once, about half the time 5 requests are handled at once and very very occassionly 6. The rest of the calls to CalculatePi are qued and are only processed once a slot frees up. Occasionally after the server has been running awhile it does more ie. it started only doing 4 then it starts doing 5.

Is there some limit to the number of remote calls I can make at once?
Why is it not a set number?
Can I change it?

I've added the decleration code below incase it's something I've done wrong there.
<br />
//Client<br />
string strLocation = "tcp://localhost:65100/theEndPoint";<br />
                TcpChannel chan = new TcpChannel(0);<br />
                ChannelServices.RegisterChannel(chan);<br />
<br />
                MarshalByRefObject obj =<br />
              (MarshalByRefObject)RemotingServices.Connect<br />
                (typeof(CalcPiNS.CalcPi),<br />
                strLocation);<br />
<br />
<br />



<br />
//Server<br />
TcpChannel chan = new TcpChannel(intPort);<br />
            ChannelServices.RegisterChannel(chan);<br />
<br />
            //         Register the service<br />
            Type calcType =<br />
               Type.GetType("CalcPiWinServerNS.CalcPiServer");<br />
            //RemotingConfiguration.RegisterWellKnownServiceType<br />
            //   (calcType,<br />
            //     "theEndPoint",<br />
            //      WellKnownObjectMode.Singleton);<br />
            <br />
            CalcPiServer rmCalcPiServer = new CalcPiServer();<br />
            ObjRef refCalcPiServer = RemotingServices.Marshal(rmCalcPiServer, "theEndPoint");<br />

AnswerRe: Remoting only runs 4/5 instances Pin
kalyan_241617-Aug-07 1:59
kalyan_241617-Aug-07 1:59 
GeneralRe: Remoting only runs 4/5 instances Pin
BarbaryS17-Aug-07 2:02
BarbaryS17-Aug-07 2:02 
GeneralRe: Remoting only runs 4/5 instances Pin
Talal Sultan17-Aug-07 5:01
Talal Sultan17-Aug-07 5:01 
GeneralRe: Remoting only runs 4/5 instances Pin
BarbaryS18-Aug-07 3:27
BarbaryS18-Aug-07 3:27 
Questionresource file error Pin
Maddie from Dartford17-Aug-07 1:12
Maddie from Dartford17-Aug-07 1:12 
QuestionNewbie needs help with Access+OLEDB Pin
Infernojericho17-Aug-07 0:51
Infernojericho17-Aug-07 0:51 
AnswerRe: Newbie needs help with Access+OLEDB Pin
Vasudevan Deepak Kumar17-Aug-07 0:56
Vasudevan Deepak Kumar17-Aug-07 0:56 
GeneralRe: Newbie needs help with Access+OLEDB Pin
Infernojericho17-Aug-07 1:20
Infernojericho17-Aug-07 1:20 
AnswerRe: Newbie needs help with Access+OLEDB Pin
Rocky#17-Aug-07 1:00
Rocky#17-Aug-07 1:00 
GeneralRe: Newbie needs help with Access+OLEDB Pin
Infernojericho17-Aug-07 1:22
Infernojericho17-Aug-07 1:22 
GeneralRe: Newbie needs help with Access+OLEDB Pin
Rocky#17-Aug-07 1:28
Rocky#17-Aug-07 1:28 
GeneralRe: Newbie needs help with Access+OLEDB Pin
Infernojericho17-Aug-07 1:30
Infernojericho17-Aug-07 1:30 
GeneralRe: Newbie needs help with Access+OLEDB Pin
Rocky#17-Aug-07 1:41
Rocky#17-Aug-07 1:41 
AnswerRe: Newbie needs help with Access+OLEDB Pin
Talal Sultan17-Aug-07 1:42
Talal Sultan17-Aug-07 1:42 
GeneralRe: Newbie needs help with Access+OLEDB Pin
Infernojericho17-Aug-07 23:34
Infernojericho17-Aug-07 23:34 
Questiongetting results from console aplication Pin
mizitras17-Aug-07 0:43
mizitras17-Aug-07 0:43 
AnswerRe: getting results from console aplication Pin
Giorgi Dalakishvili17-Aug-07 1:05
mentorGiorgi Dalakishvili17-Aug-07 1: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.