473,395 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

temporary freezing in my application.

I had a very strange problem with my application (using dotNet
remoting). It is a client-server application. The server started first
and is avaiable for access from an icon in the Windows task tray. The
client is a GUI application which accesses the objects in the server
via remoting. Most of time the access to the server is done in a
separate thread other than the GUI main thread. At some point both
client and server freeze; after checking the client call stack, it
stops at the follwoing line, which is from system.runtime.remoting. It
seems the client is waiting for something from server.

system.dll!System.Net.Sockets.Socket::Receive(unsi gned char[] buffer =
{Length=0x1000}, __int32 offset = 0x0, __int32 size = 0x1000,
System.Net.Sockets.SocketFlags socketFlags = None) + 0x143 bytes

But if I right click on the server icon and then the client and the
server will be back running again. This happens very randomly.

Anyone has an idea? Thanks in advance.
Tony.
Nov 15 '05 #1
2 1046
> via remoting. Most of time the access to the server is done in a
separate thread other than the GUI main thread. At some point both


are you updating the GUI via the Invoke or directly from the other thread? I
ask this because I suspect you could have stepped into the common
"multithreading GUI" problem.

look at:
http://msdn.microsoft.com/library/de...us/dnforms/htm
l/winforms06112002.asp

regards, Wiktor
Nov 15 '05 #2
Thank you Wiktor for your feedback.

Yes, the access to the GUI from any worker thread is done in a
threadsafe manner by using Invoke. The only thing I don't understand is
that how come the client worker thread all the sudden gets the data from
System.Net.Sockets.Socket::Receive when a menuitem selected event is
triggered from the popup menu associated with the server icon on the
task tray.

Tony.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Codemonkey | last post by:
Hi, I have a few questions about best practices when it comes to the management of temporary files. Any thoughts anyone can give would be much appreciated. Basically, I'm writing a document...
13
by: Ioannis Vranos | last post by:
Why in this code the form *does not refresh* when it gets the focus/after some time? #using <mscorlib.dll> #using <system.windows.forms.dll> #using <system.dll> #using <system.drawing.dll>
5
by: Adam W. Saxton | last post by:
We have a few existing stored procedures which create a Global Temporary Table (##), do some work on the table and then delete the table. The issue we have is that if our Server application is...
6
by: Steven K | last post by:
Hello, I am having a problem where my computer is freezing when I run a ASP.net project. It freezes in the debugger, or if I try to run it as localhost. I cannot even access the windows...
2
by: Job Lot | last post by:
Is there any way of freezing columns in Windows Forms Data Grid control? Thanks
7
by: bearophileHUGS | last post by:
Most of my ideas seem usless or stupid, but I think expressing them here doesn't harm much. This is an idea for Py 3.0, because it's not backward compatible. Dicts and sets require immutable...
2
by: Pat | last post by:
I'm having some problems with forms freezing up on me. I have a front end linked to tables in 2 back ends. Users can open a form (quotes) which is linked to a table in be1. while adding a...
0
by: Franco Pucci | last post by:
I have a problem occuring with my PS2 Mouse freezing every time I use a keyboard wedge scanner to read a barcode in my Builder application. The cursor disappears and sometimes does not re-appear when...
2
by: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post by:
The auto-generated line of code to fill a DataGridView once it is placed on the designer surface in VS2005 is typically: this.xyzTableAdapter.Fill(this.myDataSet.MyMember); But if the query...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.