|
Thanks harold,
1.
"well, not directly. But it works like that without webservers being involved as well." -- confused. Especially what do you mean "without webservers being involved"? There is web server, since I run it as web service and IIS hosts it.
2.
"The threading will help when you let the web method do something useful." -- confused about what you mean. Could you describe something more?
regards,
George
|
|
|
|
|
1 just means that I tested without using a webserver
2 means that new Random().NextDouble() does not take enough time to be worth multithreading it in this case
|
|
|
|
|
My understanding is that a web service has only one process at a time, so all requests have to queue up anyway.
|
|
|
|
|
Thanks PIEBALDconsult!
1.
"web service has only one process at a time" -- at client side or server side, do you mean?
2.
"web service has only one process at a time" -- any documents to prove your points? I am very interested to learn from it.
regards,
George
|
|
|
|
|
1. Server side, the service doesn't run on the client.
2. If I did, I would have given a more authoritative answer.
|
|
|
|
|
Thanks PIEBALDconsult!
If the bottleneck is "web service has only one process at a time", how do you prove it or show some related documents?
regards,
George
|
|
|
|
|
I don't know, I'm not a Web expert, I'm hoping someone with more knowledge will step in and answer that for both of us.
You could possibly create a Web Service with two methods, one that sleeps for a minute and one that doesn't.
Make a request to the one that sleeps, and while it's sleeping make a request to the other and see whether or not it waits for the sleeping one to complete.
|
|
|
|
|
Thanks PIEBALDconsult,
I am not sure what you are going to prove. In your scenario, you have web service (say sleep) and another web service (say sleepless).
If we call on a thread from client side, first call sleep web service, then call sleepless web service, since it is synchronous call in one thread from client, the client will definitely wait for the sleep web service to complete the return results until call the second sleepless web service.
Please correct me if I am wrong in understanding your points. I am confused what you are going to prove -- so obvious results.
regards,
George
|
|
|
|
|
Not two services and one client, one service and two clients.
|
|
|
|
|
how to i read MAC Address in C#?
|
|
|
|
|
|
Hi,
thanks for your reply.
i have another question. is it possible using mac address for software lock?
i want to my porogram runs only on spesified PC.
Regards,
|
|
|
|
|
Sure. But you have to program this on your own...
|
|
|
|
|
Ohh tanx for soooooon reply
and the my big project is here, i don't know how to do this:
I have a measurement device that measure and sends a data update string to the PC once a millisecond, so you can see what's happening in real-time. I would like to let authorized people see my data via the web in roughly real time using a web browser such as Internet explorer. I have an internet connection with valid IP address that whole of day is connected.
My idea so far, is to divide the problem into originator (my PC putting data on database) and clients (pc's logging into my computer via web browser to see latest data).
Originator:
I thought I would use SQL database to save average measured data into the database every one seconds.
Clients:
This has to log in, see designed GUI, select charts, table and reports via menu.
I am very keen to hear any suggestions
Does you know how I can do this?
|
|
|
|
|
Hmm sounds familiar. Didn't you post the question before in another forum?
Anyway trying to use a database on a server is good idea. You could build an ASP.NET application, that will be deployed on the server. The user has to logon to the page to see the results stored in your database. Advantage of this solution is that ASP.NET offers a lot of build-in controls like charts, reports and datagridviews and you client only needs a browser for this.
|
|
|
|
|
Ohumm
Yes i posted it
Have you any sample or article similar to my project?
|
|
|
|
|
where is Org ????
i'm amator
|
|
|
|
|
Sry, I didn't get this. What do you mean?
|
|
|
|
|
Bad idea. A MAC address can be spoofed. Or there could be multiple NICs in the machine at any given time, What if there is no NIC in the machine? If you're trying to identify the machine software is installed on, you may as well give up, because there is simply no reliable way to do it that will work every time on every machine.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi,
the machine hardware configuration that i need to install my software on it, consist one ethernet port indispensable and maybe one wireless adaptor (wireless is optional).
|
|
|
|
|
When you retrieve the MAC address, it will get the MAC address of the NIC that's currently active, or the first one in the list if they're both active. And once again, what if both NICs are disabled? Then you can't get a MAC address at all.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
The way that I received it was by running ipconfig.exe and redirecting the output to your application through the System.Diagnostic.Process class. Then I just wrote code to manipulate the input to get the MAC address I want.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
I have a very simple Windows form in C# with one pictureBox and two textBoxes. The form is a MdiChild . When the form loads I want the focus to go to textBox1. I have set the TabStop property to True and the TabIndex to 0, but it didn't work. I have tried:
textBox1.Focus();
and
textBox1.Select();
in both the Form_Load and Form_Activated event handlers, but these have not worked. If I use either of these methods in the pictureBox_Click event handler they work fine!
Can anybody help please?
|
|
|
|
|
Try both at the same time
|
|
|
|
|
I have just tried that, but it didn't help
|
|
|
|