asynchronous

Windows Mobile 6.1 problems with async web service call and updating the UI

I'm calling and getting results back from an async web service call that provides an array of objects to display in a grid on a hand-held windows mobile. At one point I had the UI updating properly using InvokedRequired and Invoke. Now the first time I run the emulator and Visual Studio 2008 it will work but subsequent calls seem to ha...

Child Update Panel calls prerender on parent update panel in nested scenario.

<asp:UpdatePanel runat="server" ID="udp_RemitEditor" UpdateMode="conditional" OnPreRender="LoadParameters"> <ContentTemplate> <div id="div_RemitEditor" style="width:225px; display: none;"> <asp:UpdatePanel ID="upnl_RemitEditor" runat="server" UpdateMode="Conditional"> <ContentTemplate> ...

How can I keep my WPF UI responsive while communicating with server on an other thread?

I have a wcf client that before doing some complicated interactions with the wcf service does a simple check for the service to be alive. As the time-out for a failed connection is one minute, I want to implement this check asynchronously. This is what I have: //Method on the main UI thread public void DoSomeComplicatedInteraction() { ...

Twisted(asynch server) vs Django(or any other framework)

I need help understanding what the advantage of using an asynch framework is. Suppose I want to develop a simple chat web app. Why cant I write python code in the Django framework that does long polling where I dont send a response back the server until someone enters a new msg. What does Twisted provide that gives it an advantage for re...

Asynchronous Compression Library for Compact Framework

I'm looking for Asynchronous Compression and Decompression Streaming. By asynchronous I mean it supports BeginRead, EndRead, BeginWrite, and EndWrite. The only library that I've found that claims to is the native .NET classes. (I haven't tried them out yet, but it looks like they support it). I'm hoping to write this for the Compact ...

My delegate's methods never get called when I use connectionWithRequest:delegate.

I'm making an asynchronus POST request in an iPhone app with this call: [NSURLConnection connectionWithRequest:req delegate:self]; The request seems to get to the server just fine, but none of the delegate methods get hit. I've implemented: - (void)connection:(NSURLConnection *)connection didCancelAuthenticationChallenge:(NSURLAu...

Asynchronous methods and asynchronous delegates

C# 3.0 in a nutshell says asynchronous methods and asynchronous delegates looks similar but the behavior is very different. Here is what the book says about both. Asynchronous methods Rarely or never blocks any thread. Begin method may not immediately return to the caller. An agreed protocol with no C# language support. Asynchrono...

How to best launch an asynchronous job request in Django view?

One of my view functions is a very long processing job and clearly needs to be handled differently. Instead of making the user wait for long time, it would be best if I were able to lunch the processing job which would email the results, and without waiting for completion notify the user that their request is being processed and let them...

Parallel server-side processing of Sharepoint Web Parts

Here's the scenario. I have a number of Sharepoint Web Parts which display data to the user in a grid format. They all connect to a navigation web part which the user can use to select parameters for each of the data grids. On the back end, the grid web part calls a DI container to get an "IDataProvider," which queries some SoR and retur...

conditional beginReceive

I am writing a client program that uses Sockets. I would like the client to receive asyncronously UNLESS it is expecting a response, in which case I would like to receive syncronously. My current problem is that because I have to make a call to socket.BeginReceive which waits until there's data on the buffer, the async call always happ...

using GWT RPC mechanism with my customized Servlet

I currently have a GWT application which uses the RequestBuilde to send messages to a servlet I have (using POST and GET), and my servlet (in doPost and doGet) "pauses" the request (this is done by using Servlets 3.0 spec) and adds it to a queue. Additionally I have a Daemon thread which runs in the background and "plays" the request...

How can I override TreeViewItem in WPF to allow asynchronous children loading?

I am using MVVM as my WPF architecture and I have a WPF TreeView implemented as delay loading (child items are not loaded recursively until you expand). However, I need to implement asynchronous loading as well upon expansion. Is there a way to do that? I need to keep this in control level and not in code-behind/application level. Than...

Can PHP asynchronously use sockets?

Typical PHP socket functionality is synchronous, and halts the thread when waiting for incoming connections and data. (eg. socket_read and socket_listen) How do I do the same asynchronously? so I can respond to data in a data received event, instead of polling for data, etc. ...

Is Socket.SendAsync thread safe effectively?

I was fiddling with Silverlight's TCP communication and I was forced to use the System.Net.Sockets.Socket class which, on the Silverlight runtime has only asynchronous methods. I was wondering what happens if two threads call SendAsync on a Socket instance in a very short time one from the other? My single worry is to not have intermix...

Can a PHP script start another PHP script and exit?

How can a PHP script start another PHP script, and then exit, leaving the other script running? Also, is there any way for the 2nd script to inform the PHP script when it reaches a particular line? ...

Testing for writability of BSD socket in Cocoa.

I have a BSD socket created with following code (it's in external library that I cannot change): fcntl(sock, F_SETFL, O_NONBLOCK); connect(sock, (struct sockaddr*) &sin, sizeof(sin)) What I can do to get a notification from Cocoa that connection is established? In regular world I would make select(3) and test for writability but this ...

Asynchronous callback "Async End called with an IAsyncResult from a different Begin method. Parameter name: result"

I can't figure out why this is. I have a connect method that works fine: public void Connect() { _client.BeginConnect(new AsyncCallback(this.ConnectCallback), _client); } public void ConnectCallback(IAsyncResult asyncResult) { ServerClient callback = null; callback = (ServerClient)asyncResult.AsyncState; callb...

I made a simple WCF client and checked the "create asynchronous methods" box.. what do these methods do?

I created a server and generated my client as an asynchronous one. So when I connect, I do so asynchronously. That's fine. I have a method on my client (a callback method) that receives data from the server. The server sends this data using an asychronous method too. To receive this data on my client, I expected to have ONLY a method ...

Odd WCF problem

I have a server-client using WCF. The server has a list of clients. To check for timeouts, every minute it sends a bit of data (ping) to each client. All sending is done asynchronously - so the line looks like this: for (int i = 0; i < MaxUsers; i++) { if (_clients[i] != null) { _clients[i].Client.BeginSendToClient("PI...

Asynchronous Multicast Delegates

I've been doing some work lately on a project that makes extensive use of events. One of the things that I need to do is asynchronously call multiple event handlers on a multicast delegate. I thought the trick would be to call BeginInvoke on each item from GetInvocationList, but it appears as though BeginInvoke doesn't exist there. Is t...