Hi all,
I have a windows forms application in .NET 3.5. There's one form with 20 picture boxes. There's also an array with 20 image URL's. The goal is to loop through the array of URL's and load the images from the web into the picture boxes.
I tried having a standard foreach loop and use the picture box LoadAsync() method, but it does...
Hi all,
I am building a website in CakePHP that processes files uploaded though an XML-RPC API and though a web frontend. Files need to be scanned by ClamAV, thumbnails need to be generated, etcetera. All resource intensive work that takes some time for which the user should not have to wait. So, I am looking into asynchronous processin...
Hello all,
I've been trying to somehow get my javascript function (which I have in the head section of the aspx page) to set a value in a hidden item, then some how have the server-side (trusty 'ol ASP) read that data so I can do some work depending on what it is. I have my entire page wrapped in an update panel, and my drag 'n drop woe...
I am calling a WCF Service using AJAX.NET and wanted to know if the following is possible.
e.g at the moment I have something like the following
AJAX.NET call in Page..
ITeaMaker.MakeCupOfTea(onMakeCupOfTeaSuccess, onMakeCupOfTeaError);
WCF..
public Tea MakeCupOfTea()
{
FillKettle();
BoilKettle();
PutInTeaBag();
PourWa...
I know that it's possible to implicitly provide asynchronous interaction using:
Asynchronous Delegates
Asynchronous Callbacks
I was just wondering what other methods .Net supports for asynchronous interaction?
Help greatly appreciated.
Regards
EDIT:
Maybe I didn't explain myself correctly....
I UNDERSTAND THREADING AND CONCURRENC...
Hello. I am programming a game using Visual C++ 2008 Express and the Ogre3D sdk.
My core gameplay logic is designed to run at 100 times/second. For simplicity, I'll say it's a method called 'gamelogic()'. It is not time-based, which means if I want to "advance" game time by 1 second, I have to call 'gamelogic()' 100 times. 'gamelogic()'...
I'm looking for a method in Ruby which is basically this:
io.ready_for_read?
I just want to check whether a given IO object (in my case, the result of a popen call) has output available, i.e. a follow up call io.read(1) will not block.
These are the two options I see, neither of which I like:
io.read_nonblock - too thin an abstract...
Hello,
is there any way in MVC to get the System.Net.Mail SendAsync to work, instead of the blocking Send method?
I tried using it but hit the "Page starting an asynchronous operation has to have the Async attribute" error, which I obviously can't resolve (or can I?) because there is no ASPX page with an @Page directive where I could a...
I need to make RunWorkerAsync() return a List<FileInfo>. How can I return an object from a background worker?
...
Win32 ReadFileEx is defined as:
BOOL WINAPI ReadFileEx(
__in HANDLE hFile,
__out_opt LPVOID lpBuffer,
__in DWORD nNumberOfBytesToRead,
__inout LPOVERLAPPED lpOverlapped,
__in_opt LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine
);
I am trying to figure out how to make the completion routine (the last arg...
Why do we need callbacks in ASP.NET or any server side technology?
One answer can be, to achieve asynchronous calls. But I am not interested in its technological perspective. Please tell me the philosophical perspective.
...
I have a custom server control that seems to work fine until I put it in an UpdatePanel. Once inside the UpdatePanel it continues to work fine but the UpdatePanel now does full postbacks when my custom server control does a postback.
Do I need to do anything to make my custom server control do async postbacks while inside an UpdatePa...
I have a C# library that is surfaced through a webpage UI. There's of course the UI layer, which makes calls through a business logic layer, which in turn hits the data access layer to retrieve the data. The data is actually retrieved via a web service which has the capability to query data asynchronously.
I'm starting to learn how to d...
The initialization code of our Flex application is doing a series of asynchronous calls to check user credentials, load external data, connecting to a JMS topic, etc. Depending on the context the application runs in, some of these calls are not executed or executed with different parameters.
Since all of these calls happen asynchronousl...
I am getting an error when I try to run a c file which does some basic writes to a serial port. I am trying to run it asynchronously because the writes sometimes take a long time to transfer. My original version had it running synchronously with WriteFile() commands which worked fine. I am new to using OVERLAPPED and would appreciate and...
I wonder if anyone knows if there's any way to start OLE file drag from a C++ Win32 application without blocking until the drag completed.
I'm currently using DoDragDrop() to start the drag operation, but this function doesn't return until the drag operation is completed.
The problem with this is that the animation in my program halts w...
I need to make asynchronous calls to .NET web services from java since synchronous calls are too slow. I know in .NET this is easily done since the stub (proxy) class created by wsdl.exe also generates methods for asynchronous calls(BeginMethod()/EndMethod()). I created the service stub using eclipse Ganymede but no asynchronous method...
Hi;
I was reading an article on Vadym Stetsiak's blog about how to transfer variable length messages with async sockets (url: http://vadmyst.blogspot.com/2008/03/part-2-how-to-transfer-fixed-sized-data.html).
He says :
What to expect when multiple messages arrive at the server?
While dealing with multiple messages one has to reme...
I'm looking to move a Windows C++ application to C# so that some major enhancements are a bit easier. The C++ application is single-threaded and uses a home-grown reactor pattern for all event handling of accepting, reading and writing sockets, and timers. All socket handling is done async.
What is the accepted way to implement a C# rea...
I have this object PreloadClient which implements IDisposable, I want to dispose it, but after the asynchronous methods finish their call... which is not happening
private void Preload(SlideHandler slide)
{
using(PreloadClient client = new PreloadClient())
{
client.PreloadCompleted +...