|
Hi, I'm writing a web service that talks to a windows service via remoting. The windows service is configured to remote the object as a singleton. Since multiple web service threads can be spawned by multiple client requests the Remoted object has been written to b thread safe, but what about the web service (client) proxy to the remoted object?
Worded another way - I have multiple threads firing methods on a single remoting proxy that is connecting to a singleton object. Will there be any problems with the proxy itself?
Here's some psuedo code:
static RemoteObject remObject; <-- globally stored
main()
{
remObject = GetRemoteConnection(); <-- obtain connection
...
...
DoSomethingThread1.start();
DoSomethingThread2.start();
}
static void DoSomething()
{
remObject.DoSomething(); <-- Will get called by two threads at virtually the same time.
}
Thanks in advance for any insights.
Assert(this);
|
|
|
|
|
I answered this question myself. I could not find the information in the MSDN, so I made a test app. that connected to the service. The connections were done from 256 threads that then proceeded to make 50,000 calls at the same time. The server registered these calls and marked the begin and end of each call along with the thread ID. The trace log indicated multiple calls were being executed at the same time with no problems.
So the answer seems to be that he remoting proxy is thread safe, and will make multiple calls per connection instance instead of sequencing the calls over one connection. The only other thing I need to do is sniff the wire to see if multiple connections are being made, or if they are getting to the server over one connection.
BTW: Anyone know if after a remoting call over a TCP channel if the TCP connection is dropped, or does it stay connected for the life of the proxy?
Assert(this);
|
|
|
|
|
I do a development of applications that have both a Web site component and Windows support applications. I would like have a library that is common between the two. Many of the routines handle mapping between the UI and the data objects. Since the UI are rooted in System.Web or System.Forms, I am looking for a way to seamlessly (as possible) abstract out this mapping layer.
In pariculiar I am struggling with loading/saving lists from the combo boxes, list boxes etc.
What I am thinking of doing is having 3 libraries.
1) MappingLayer that has the abstractions
2) WebMappingLayer that has the implementations for Web UI
3) WinMappingLayer that has the implementations for the Windows UI
Is there a better way of doing this?
|
|
|
|
|
Hello
I am using VS2008 and C#.
I wanted to add a split button to my form but could not find one in my toolbox. So, I set about writing my own with help from various articles on the web. When it came to adding my new control to the toolbox I discovered the "Choose Items" option on the toolbox and that there was already a split button control available:
<br />
namespace Microsoft.Office.Tools.Ribbon (version 9.0.0.0)<br />
However, while it is selected, it is still not available in the toolbox.
I am going to continue developing my own control as a learning experience however im confused as to why this control is not available.
Any ideas?
Rich
|
|
|
|
|
Well I didn't know anything about it when I read your post but a quick glance at the documentation [^]and this jumped out.
The Microsoft.Office.Tools.Ribbon namespace contains components, controls, and supporting collections, classes, and enumerations that enable you to customize the Ribbon in the user interface (UI) of several Microsoft Office applications. All of the controls in the Microsoft.Office.Tools.Ribbon namespace can be added to your Office customization by dragging them from the Office Ribbon Controls tab of the ToolBox onto the Ribbon Designer.
I know it's popular these days to do software development without reading documentation but I still think all it does is waste a lot of time.
led mike
|
|
|
|
|
HI,
I want to make an application which is creating video using its own intelligence.
Explaination:
User will provide number of images,text,audio sound, In short all the multimedia options as well as user will select the size of resulted video along with the type of the resulted video extention(.mov, .avi etc).
Now the aplication will be selecting all the inputed resources and will create video ,which will be of specified size and having extention as per the users requirement.
I'm confused that where do i start from and where can i find API which will help me going ahead.
I need the API in .net-c#.
Please help me out ASAP.
Thanks in Advance....
|
|
|
|
|
krutishukla wrote: I'm confused that where do i start
I started in a university course titled "Programming Logic and Design". No programming languages were involved.
krutishukla wrote: from and where can i find API
For development on the Windows platform the MSDN web site has the API documentation. I search it with Google using "MSDN" as the first keyword.
led mike
|
|
|
|
|
For API, I would look into DirectX. WPF may have limited capabilities with regards to video editing. I have seen demonstrations of WPF where 'adornments' were added at specific times in the video.
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 am trying to write software to communicate with some wireless LAN modules. Periodically, the device using the LAN module will power it up. It will then open a TCP connection to a server at a fixed IP address and port. Unfortunately, the WLAN module seems to pick the same source port number most of the time when it powers up.
Under Windows 2000, if the WLAN module picks a port number YYYY that was used in an earlier connection, the packet sequence will be:
; End of previous connection
module.YYYY -> server.XXXX FIN+ACK
server.XXXX -> module.YYYY FIN+ACK
module.YYYY -> server.XXXX ACK
server.XXXX -> module.YYYY ACK
; Attempted new connection (PC doesn't know module got its ack)
module.YYYY -> server.XXXX SYN
server.XXXX -> module.YYYY ACK ; Not SYN ack, but rather a repeat of the previous ACK
module.YYYY -> server.XXXX RST+ACK ; Kill off old connection
module.YYYY -> server.XXXX SYN
server.XXXX -> module.YYYY SYN+ACK ; New connection is now happy
Windows XP no longer sends the ACK after the SYN; the module will thus keep trying SYN packets until it times out. This causes many connections to fail. Is there any way using .net under XP to force the PC to reset a connection?
Ideally, the WLAN module would simply pick different port numbers on each connection attempt, avoiding the problem altogether. Unfortunately, I have no control over the firmware for that thing.
|
|
|
|
|
Hey friend!
I am working on Library Management System and i want to include analog clock in my main window. Please help me in this situation.
Waiting for your favour...
|
|
|
|
|
Y not Digital Clock?
Ahsan Ullah
Senior Software Engineer
|
|
|
|
|
You would have to create a usercontrol or find one that has the functionality that you 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 dont think your monitor would like it much if you tried to shove an analog clock in there...your users might not appreciate it much either.
there are several free controls out there that appear like analog clocks, or other kinds. i remember seeing one in the articles section hear a couple years back. a google search for analog clock control brought back 719k results the first 2 were at cp.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
If you like i can provide you a javascript which will show a digital clock on your page with per second change with AM/PM.For digits images are used.If you think it will help you give your e-mail id i will send you the script
|
|
|
|
|
I am relatively new to programming in .net.I want to know that what is the correct way of creating an application in .net
1) create a new website on file system and do the further programming etc. without creating a virtual directory
or
2) create a new website on file system, then opening IIS and creating a virtual directory
Now the doubt is after creating a virtual directory i should open my website from file system for coding or i should open it from selecting it from local IIS (which option from open website dialog box)
can anyone please guide me how to get started with my first website in .net????
|
|
|
|
|
It depends on the type of site that you are trying to create. If possible I would first suggest Microsoft Expression Web.
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
|
|
|
|
|
You might get more eyes on this question if you post it in the ASP.NET forum
led mike
|
|
|
|
|
Hi there !!
it does not matter, visual studio creates a virtual Web server during the debuging stage.
you can start by creating the web site on the file system later on you can deploy the website on the IIS
WaelA
Senior Software Engineer
abu_wer@hotmail.com
|
|
|
|
|
Hi,
I am doing a feature which client can upload thier txt file then i manage to read the contents in the txt file and populate to a datagrid. i doing my project in VB language, any suggestion or idea? Thanks in advance.
Best regards,
Mouse regards.
|
|
|
|
|
|
Hi,
Sorry that confusing you, what i mean is how i read the text file content, after that bind the text file content to a datagrid in VB language.
Happy Days,
Mouse's regards.
|
|
|
|
|
Hello all,
I am using a DataGridView to display the contents of the file. The datagridview is another form which is invoked in the main form. The problem is any updation in the main form seems to be stuck untill the updation in the data grid view is finished. As the file size is large the loading of data grid view takes time hence making the Main form wait till the loading is finished. Any ideas how to solve this problem?
Thanks
Sushma
|
|
|
|
|
use a new thread to create the
form which has the datagird-view
Vikas Amin
UNITED STATES STEEL CORPORATION
My First Article on CP" Virtual Serial Port "[^]
modified on Thursday, July 24, 2008 5:33 PM
|
|
|
|
|
Hi all,
I don't know how many times this question has been asked in any .NET Forum, but still i have certain doubts regarding value types storage.
In almost every book (I read)it is written that value types are going to be stored in Stack. But in some articles i read "value types are stored where they are declared" is that true ?
If it is true then valu types declared in class will get stored in Heap.
And GC will deallocate them.
So what about the performance whenever we are using value types in class
Boxing is going to happen ? What happening inside ? Please i require more information regarding these as i couldn't find it.
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
modified on Wednesday, August 6, 2008 2:52 AM
|
|
|
|
|
Sandeep Akhare wrote: If it is true then valu types declared in class will get stored in Heap.
Only if the object of the class they are members of is allocated on the managed heap.
What if they are members of a value class?
Sandeep Akhare wrote: And GC will deallocate them.
The GC only manages objects allocated on the managed heap.
Sandeep Akhare wrote: So what about the performance whenever we are using value types in class
Value types are passed by value - that means a copy has to be made
every time a value type object is passed. That's going to be slower
than passing a reference I would guess. If value types are members of a
ref class then there's no difference - the ref class object holds the value
type objects.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|