We have a C# WebMethod that is called synchronously by a Delphi CGI (don't ask!). This works fine except when we switch to our disaster recovery environment, which runs a lot slower. The problem is that the Delphi WinInet web request has a timeout of 30 seconds, which cannot be altered due a Microsoft-acknowledged bug. In the disaster re...
This is not necessarily a Flex-specific question, but I'll use Flex in my example:
Scenario: We have a fairly complex MVC Flex application that uses remoting and makes several asynchronous calls on a single page. Some of the calls are:
GetUserOrders
GetCurrentOrder
GetUserDetails
If there is a network or DB error, this will throw th...
Recently I have needed to use RMI, and I know enough for what I need to do, but one thing is intriguing me as I revisit this topic. Is it possible to make asynchronous RMI calls to the same service on the server?
Let's say I have n threads on the client and a single server-side object--call it S. S has a single method that I want to ca...
I am writing refactoring a Silverlight program to consumes a portion of its existing business logic from a WCF service. In doing so, I've run into the restriction in Silverlight 3 that only allows asynchronous calls to WCF services to avoid cases where long-running or non-responsive service calls block the UI thread (SL has an interestin...
In my .NET application built with WPF and C# I call an async function using AsyncMethodCaller. In the callback I'd like to update some data in the GUI, but I'm not allowed to as this is owned by the main thread. How to I do it?
Invoke an update on the main thread? How?
Pass an object (e.g. ViewModel) as state to the callback and upda...
Greetings,
I am developing some application in C#. At the moment I'm dealing with threading and I have a question that I have in my mind.
What is the difference between Invoke and BeginInvoke?
I read some thread and I found some useful information here: here
However what is the difference between Invoke and BeginInvoke in the following...
Wondering... I have a test whereby calling abort on a HttpWebRequest asynchronous GET requests seems to make the request abort and return the relevant status code. However for POST requests, calling Abort does not have the same effect. It appears to continue processing the request regardless. Is this by design or am I doing something wro...
I'm developing a Silverlight app that makes multiple async requests to a number of web services. I want a modal "loading" dialog to stay active until all the requests have completed. I'm managing the situation by using a counter variable that gets incremented on each async request start event, and decrements on each async complete even...
I am using a free .net telnet component (De.Mud.Telnet), which has several asynchronous methods you can call, and the component fires events when things happen. My problem is that the component is throwing an exception and I don't know how to catch it. There's no exception event, and the exception doesn't get thrown by my method call. ...
Hi all,
Title says it all. I'm looking for a C++, async io library that should be compatible with both unix and windows systems.
What are some good libraries?
Is this asking too much for a library that does both systems?
What are peoples' experiences with this matter?
...
I got a server-side script that I call with jQuery ajax method. It can take quite a while for it to process data set. After each row of input data is processed, it prints out a "OK <row id>" to output. The content type is plain/text.
What I want is to get this output in my jquery function, parse it as it comes and display some kind of ...
Hi All,
In last 1 year I was working on Java and flex. While coding flex, most of my code parts went for a toss since its asynchronous. It made me to think about the real advantages and disadvantages of synchronous executing languages vs asynchronously executing ones.
What are the areas where they are stronger compared to other and wha...
platform:
Sql server 2000
java 1.4
ejb 3.0
...
Lets say I have this:
<object class="MyClass" type="text/html" data="/Whatever/1?renderpartial=1"></object>
<object class="MyClass" type="text/html" data="/Whatever/2?renderpartial=1"></object>
And, I want to use jQuery to replace the object with the actual HTML of the object.
<script type="text/javascript">
$(document).ready(fun...
I have a web application the relies heavily on web services. Everything with the services is done asynchronously and with AddOnPreRequestHandlerExecuteAsync. Anyhow, most of my calls work just fine, but some are returning from their asynchronous service calls to find a null HttpContext.Current.Response/Request object in the endprerequest...
I have a method which calls an asynchronous method, and a callback which is fired when the asynchronous method finishes.
I want my method to appear syncrhonous, so I've created an AutoResetEvent, called the asyncrhonous method, the call WaitOne() on the AutoResetEvent instance, and I call Set() in the callback method. Something like th...
I am building a "widget" that can be embedded in other people's websites, that talk back to my server.
Right now I am using flXHR for the cross domain asynchronous communication, and it works fine for doing GETs inside the widget.
However the major point of the widget is to allow clients to submit a form back to my server, complete wit...
Can anyone tell me if I'm likely to run into unintended behavior if I use anonymous methods with Async I/O?
As an example:
Action<Socket> acceptedHandler = DoAccept
SocketAsyncEventArgs e = new SocketAsyncEventArgs();
e.Completed += ((sender, ea) => acceptedHandler(ea.AcceptSocket));
// Server is a Socket
if (!Server.AcceptAsync(e))
...
I am trying to use the .NET Reactive Framework to simplify some asynchronous calls to a WCF service used by a Silverlight 3 app that I'm writing.
The trouble is that I'm having a hard time finding a way to structure my code in a way that will work. Part of the problem, no doubt, is understanding what mechanisms are available in Reactive...
What does an Asynchronous ORM really mean ? How does it differ in behaviour from a regular ORM ?
Where can it be used ?
...