asynchronous

Javascript/jQuery variables not giving expected values.

Like others before me I'm struggling with scope in Javascript. (That and trying to read the darn stuff). I have checked some of the previous threads on this question but I cant seem to get them to apply correctly to my issuue. In the example below, I want to manipulate the values in the tagsArr array, once the array has been fully popula...

Fire event from Async component in UI thread

I'm building a non-visual component in .Net 2.0. This component uses an asynchronous socket (BeginReceive, EndReceive etc). Asynchronous callbacks are called in the context of a worker thread created by the runtime. The component user shouldn't have to worry about multithreading (This is the main goal, what I want) The component user ca...

asynchronous XML-RPC requests and NSNotifications

Hello, I'm using the XMLRPC framework (by Eric Czarny) for iPhone to communicate with my server. I am using the XMLRPCConnection class (which is basically an extension of NSURLConnection) to create asynchrnous HTTP requests to fetch my data. The connectionDidFinishLoading method sends one and the same NSNotification each time data has b...

jQuery Async Plugin loop sequence

Hi, I am using http://mess.genezys.net/jquery/jquery.async.php for loop and need to reverse the order of the array(1,2,3) instead it goes from 3 to 1 Anyway to change that from the code? Thanks ...

Is the ASIHTTPRequest is not asynchronous ?

Hi all , I am using ASIHTTPRequest to fetch some data from a web service. I am making requests using a loop. The problem is that it doesn't seem the request is going asynchronously so that my activityindicator is not working . Is it true that ASIHTTPRequest is not asynchronous . or should i use the regular nsmutablerequest to perfor...

Canceling a WinUSB asynchronous control transfer

For a user application (not a driver) using WinUSB, I use WinUsb_ControlTransfer in combination with overlapped I/O to asynchronously send a control message. Is it possible to cancel the asynchronous operation? WinUsb_AbortPipe works for all other endpoints but gives an 'invalid parameter' error when the control endpoint is passed (0x00 ...

Best practice for Async with ASP.net MVC 2?

As of ASP.net MVC 2 RC, there have been Async Controller available. There also various of ways and practice to make the async Controller. For example: http://msdn.microsoft.com/en-us/library/ee728598(VS.100).aspx http://www.ducdigital.com/2009/12/24/builtin-async-controller-in-asp-net-mvc-2/ http://weblogs.asp.net/seanmcalinden/archi...

How do I write an async class with a minimal amount of repeated code?

Hi, how do i write a async class like WebClient? Is there anyway i can keep it short and does not have to repeat it for every method? for example, i have: Download(string a) Download(string a, string b) do i have to rewrite Async + Complete method for each of these? Thank you very much. ...

C# Async Sockets (*Async, SocketAsyncEventArgs)

Hi everyone, I've been working with the "new" (3.5, I think?) asynchronous socket API and have a question or two about it that I can't find answers to. All of the *Async methods return a bool, which is false if the operation completed synchronously. I'm a little confused as to how/why this could happen. It's not always an error conditi...

Linux: multiple-SIGIO problem (async serial communication)

Hi all. I'm esperiencing a SIGIO-related problem in a C++ program I'm working on. Platform: Linux 2.6.30, x86 Arch Scenario: async serial communication. I followed this async-communication example from the Linux Serial Programming HowTo and it worked flawlessy. Then I removed the "sleep+check wait_flag" thing and now I handle the r...

HTTPService AsyncToken and AsyncResponder example

Where can I find an example of Flex application which implements an HTTPService asynchronously called by an AsyncToken and an AsyncResponder? Thanks in advance the httpservice send a string like this with a certain frequency: row#column#number#row#column#number#row#column#number#.... EDITED CODE: <?xml version="1.0" encoding="utf-8"?...

C# Do I Need Socket.Close()?

i am studying asynchronous C# Sockets at the moment and i have noticed something that i am confused about. in all the End...(Accept/Connect) etc there is a code section like: Socket s = (Socket) ar.AsyncState; here it is being casted as a socket. as each End uses these local Sockets is there any point in trying to close() any of the...

Using Async Controller in ASP.MVC Future Assembly

Microsoft has included the AsyncController to the latest beta version of the Mvc framework. I'm currently working on a project where we have to use Asp.net MVC v1.0. There is a long-running process in the application (large file upload, some processing and then saving a large amount of data in the database). I have found some tutorials ...

Sending data async over network with prefetching in .NET

If you have ever used SQL Server Management Studio, you would have noticed how query results begin to show in the viewer before the query is finished and all results are received by the client. I am looking to implement (reuse) that functionality for my own data store / data streaming farm. Client sends a query to the server and gets ...

sqlserver 2000: how to make aynchoronous call to procedures in database?

back end java 1.4 with EJB 3.2 data base sql server 2000 How to make asynchoronous call to a procedure from java code using jdbc? ...

[SharePoint] - Asynchronous methods in a webpart

Hi all, I have been coding for some days on a webpart now. The point of this webpart is to clean up a given document library. I have 16 000+ msg files in there and I have to validate the To and From headers of each msg file against some given rules. All is well, except for the fact that this process takes forever. All possible values ...

How can I get a callback when there is some data to read on a boost.asio stream without reading it into a buffer?

It seems that since boost 1.40.0 there has been a change to the way that the the async_read_some() call works. Previously, you could pass in a null_buffer and you would get a callback when there was data to read, but without the framework reading the data into any buffer (because there wasn't one!). This basically allowed you to writ...

Asynchronous database operations with Oracle database using C#, .NET?

I need to connect and perform some operation on oracle database from my C#/.NET application. Since it is a high load server application, I wish that I use only async calls to do database operations. I understand that System.Data.OracleClient is obsolete now, what are my options to do achieve above? ...

Asynchronous loading / error handling

Let's say that I have a bunch of objects (thumbnails in a matrix for example) and I need to load some data files for all of those over the network (HTTP). So each thumbnail has the thumbnail image itself and an xml file for instance. There's a number of things that can go wrong from IO errors to bad URLs to badly formatted XML and so on...

EntLib Logging via email in Windows Service (not async?)

I'm writing a windows service and attempting to do some logging via enterprise library 4.0. Logs go to the event log and email. The event log entries get written fine but emails are only sent after I stop the service. So I could have 30 exceptions occur, log them and no emails would be sent until I shut it down. Then a few minutes later...