I am attempting to download a file asynchronously using the WebClient class. I have added event handlers for DownloadProgressChanged and DownloadFileCompleted. If I call client.CancelAsync in the download progress event handler, I get an ObjectDisposedException, telling me the file is closed. How do I properly cancel an asynchronous f...
what my program does is, At first connection accept, server sends data
the client receive then sends again (Datasize does not change)
Server receives it then sends back again .... this loop continues ...
when the second time the server receives data the int returned by endreceive(); is 0
although i have found the solution but i dont k...
I'm working on a Java program, and it's been over a year since the last time I used Java, so I'm a little rusty. This program uses Runtime.exec() to call other programs to do its dirty work, and needs to parse their output and update its own GUI accordingly in real time while the other programs are working. What's the best way to do th...
i have a section of a webpage that loads a javascript file from an external source and then kicks off an ajax query.
when i load the page, i see the browser saying "waiting for xxx.com" alot so i think the dependency on this external javascript is slowing my initial page load.
is there a way i can load this external javascript async so...
I'm having a bit of trouble deciding on the best way to get the data from the web service to the UI.
Given the asynchronous nature of WebClient how would you build this?
Model uses WebClient to talk to webservice
ViewModel asks model for data
View is databound to ViewModel
On the Async complete event I need to get that data back out...
I'm fairly new on a project and ran across an interesting design paradigm for some asynchronous calls we make to the database (variables and function name altered):
private void OnLogin(object selectedInitialState,
AsyncEventCompletedCallback<EmptyAsyncEventArgs> userCallback,
object userState)
...
I have an interesting problem to solve. One of my clients has me developing a stock analysis program with close to 50 years of stock data for almost a thousand symbols. I've developed a series of filters that are applied on any given day to see if anything falls out for a trade.
We want to run this filter for each day of data we have ...
I'm working with an application that needs to be make some time consuming SOAP requests (using suds, as it were). There are several instances where a user will change the state of an object and in doing so trigger one or more SOAP requests that fetch some data. This could be done in the background, and right now the user has to wait whi...
I have a situation similar to this:
http://stackoverflow.com/questions/2698591/objective-c-how-to-use-memory-managment-properly-for-asynchronous-methods
I have an object that asynchronously downloads & parses an xml doc. It then has a delegate method that transfers the data it retrieved to the caller.
My 2 questions are:
When do I rel...
Hi,
I need to implement a web pages that will contain 2 parts. The right and the left.
The right part (frame) will request data from a web service and will show the result.
The left part however is event driven. Let's say that we I have register for an event (eg a weather condition). The left part will change according to this event....
I've always built my own serializers/deserializers to be able to use BeginReceive/EndReceive with sockets to avoid using one thread per connected socket. It's a quite time consuming task.
I've started to look at protobuf-net and want to used it with async sockets without having to write serialization/deserialization myself. I would pref...
Currently I am writing a system for a user that on filling in a form it creates a template for a HTML email that will be able to use with their CRM system, the issue is that you user is a bit docile and for the live of them cannot understand how to view the source of the page so they can copy and paste the template code into their CRM, w...
Hey all!
I'm pretty fresh in the game of C# and .NET so I found some exercises on the net. More specifically an asynchronous web server. I'm currently having some problems with getting the callbacks to fire. Socket.BeginReceive fires its callback the first time, but when I try to do it recursively (like shown on MSDN Tutorial - to get a...
Is there a generic notion of asynchronous programming in python? Could I assign a callback to a function, execute it and return to the main program flow immediately, no matter how long the execution of that function would take?
...
I have been doing a lot of searching and still can't seem to figure out how to fix my issue. I am writing a GUI program (in WinAPI so no MFC please) to communicate with another program (command line based). I am using anonymous pipes since everything is local (but perhaps named pipes would be better?) which then I use CreateProcess(); to...
Ok, I have asked a few questions about different facets of trying to accomplish what I want to do. This time I'm having big issues just reading from a named pipe. I think I have harvested enough information to possibly complete the project I am working on if I can set this up properly. I will include all relevant code below, but my missi...
I'm wondering what the consensus is on how many simultaneous asynchronous ajax requests is generally allowable.
The reason I ask, is I'm working on a personal web app. For the most part I keep my requests down to one. However there are a few situations where I send up to 4 requests simultaneously. This causes a bit of delay, as the ...
I'm writing a simple proxy (more a packet logger) for an online game in C#.
The basic Login process is like this:
Client->Server: Login Packet - My proxy receives the packet, displays it and sends it to the server.
Server->Client: Connected! Packet - My proxy again receives the packet, it also displays it again but when trying to send ...
Hello guys. I've got several web-services: asmx,wcf. At couple of them there are some methods, which take a lot of time for processing, but size of input data for these methods are small and it takes not much time to transfer on the wire. I want move to not sync model. Client passes data to service, service answers that data transfer was...
Can I make an asynchronous call from one web service to another web service deployed on different server?
The scenario is that an ASP.NET webforms page will call a web service in an async manner. This particular web service will then make another async call to a second web service deployed on different web server.
This this possible t...