System.IAsyncResult Interface
Information   Base Types   Related Resources

Represents the status of an asynchronous operation.

  • Namespace: System
  • First seen in: .NET v1.0.3705
  • Last seen in: .NET v1.1.4322
  • Last changed in: .NET v1.0.3705
  • Assembly: mscorlib.dll

  • View this type on MSDN
  • View this type on WinFX 247
    Articles (36)Discussions (393)MembersRotorChanges
    Discussions

    Page: 12345678910111213141516
    How to make a web service method that calls an async call wait? (VIP replies)
    microsoft.public.dotnet.languages.csharp
    I am creating a web service method that will make an async. call. I need the web service method to wait for the callback from that async call and return an int passed to the callback. I can't figure out a way to do this. Any ideas?
    How to tell if all the threads in a ThreadPool have completed/finished (VIP replies)
    microsoft.public.dotnet.languages.csharp
    I have created a piece of code that uses a ThreadPool class and the QueueUserWorkItem method to add items to the the ThreadPool. What would seem to be simple I just can not figure out how to tell if all of the threads in the threadpool that I queued have completed. Does anyone have a way???? Any help would be appreciated. Thanks, Scott
    Howto? Create a multithreaded class library (VIP replies)
    microsoft.public.dotnet.general
    Is there anyone who can point me to a good tutorial on how to create a multithreaded class library? Class A is a controller that starts up a number of threads of code in Class B. Class B raises events back to Class A. I want the code in the eventhandlers of Class A to run on the thread that created the object. In a Windows.Forms control this is easy by calling Control.BeginInvoke, but how do I do ...
    HTTP Authentication for web services (VIP replies)
    microsoft.public.dotnet.framework.webservices
    Hi, I have to use a Java web service that requires HTTP authentication, so I have to send username and password in the HTTP headers. My C# application has a client implementation that looks like this: [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name "MyServiceSoapBinding", Namespace "h...
    HTTP Download (Binary via Web Service) (VIP replies)
    microsoft.public.dotnet.framework.webservices
    Hi all, I am writing an updater application which will update a client based on the files which reside on the server. Does anyone have any idea how I can implement a progress bar on the client updater application (windows application). I have tried to implement a webmethod which only throws down 1024 bytes of the file however it is incredibily slow. Does anyone know how I can do this? With the old...
    HTTP Protocol Violation & HttpWebRequest (VIP replies)
    microsoft.public.dotnet.framework
    We have a window service written in C#.NET. Our application sends HttpWebRequest to a web service hosted in IBM Websphere. For every 20 30 requests our application sends, one of HTTP responses received will cause the following error to be thrown: The underlying connection was closed: The server committed an HTTP protocol violation. at System.Net.HttpWebRequest.CheckFinalStatus() at System.Net.Http...
    HttpHandlers on a website NOT using port 80 (VIP replies)
    microsoft.public.dotnet.framework.aspnet
    I have a web application that allows a user to manage their own page content. The content is stored in a database. When a user is editing an ..htm page, the page that houses the preview screen requests the .htm page (that doesn't really exist except in the database), the HttpHandler dynamically generates the page from the database and it is rendered so the user can preview it. If they choose to sa...
    HTTPWebRequest - GetResponse throws exception (VIP replies)
    microsoft.public.dotnet.framework
    Hello, I am trying to make a HTTP request to a component on a server. In the past, our client applications have used the XMLHTTPRequest object in MSXML to make the call. See OLD CODE'. The call is intercepted by an ISAPI filter which forwards the request to the appropriate application server and then responds. This works fine. For our next generation clients, I wanted to make the call using the HT...
    I'm wondering about the .NET event model (VIP replies)
    microsoft.public.dotnet.framework
    I've been wondering about the proper way of doing events in .net! This is what I have right now: When an event is used by more than one class, you put it in the namespace, set the sender to object, and MyEventArgs e. When an event is only used by one class, you put it inside that class, set the sender to the class type, and MyEventArgs e. namespace Foobar { public delegate void FoobyEventHandler(o...
    Intermittent Remoting Event Callback Problem (VIP replies)
    microsoft.public.dotnet.distributed_apps
    Hello, I have been experiencing occasional problems when calling a delegate from a SAO resulting in a callback to a â œproxyâ /wrapper class. Upon startup, the â œclientâ (understandably running as a server when a callback occurs) is successfully (in all cases â even when the issue occurs) able to connect and make calls to methods on the SAO. After connecting, the â œclientâ creates a worker threa...
    Is 'connection pooling' obsolete given MARs? (VIP replies)
    microsoft.public.dotnet.framework.adonet
    Hi, I was just reading about the new MARS (multiple active results set) technology that will be included in the forthcoming ADO.NET 2.0. If I'm understanding it correctly, with the new ADO.NET, you'll be able to execute multiple queries simultaneously over the *same connection.* That's very cool. I'm wondering if this means that there will no longer be need for a connection pool within a given pro...
    Loading a Control on a Different Thread (VIP replies)
    microsoft.public.dotnet.framework.windowsforms
    I'm trying to add a control to a form when a user clicks a button the contol takes a long time to load. To make the app appear responsive, I want to do this in the background (displaying a simple "Loading" message). How do I go about this? I've tried creating a new thread, and useing the Control.BeginInvoke method but the result is that the control created within the different thread does not appe...
    More asp.net and CPU utilization (VIP replies)
    microsoft.public.dotnet.general
    I'm hoping someone can help me out. We're running a website that uses XML/XSLT transformations, VB.Net and an Oracle database. Currently the site cannot support more than 6 7 users at a time before the CPU gets pegged at 100% utilization. The XML/XSL document get transformed on the server and averages 200k when it runs through the transformNode method. I've created an IISState log file and noticed...
    Multi-Threaded UI (VIP replies)
    microsoft.public.dotnet.framework.windowsforms
    I have an application that could do some lengthy updates of a database upon closing a form. So to keep the UI responsive, I'm pushing the updates off to a worker thread. I seen numerous articles on using BeginInvoke on delgates to keep you UI responsive. In these articles, they do a "WaitOne()" call on the UI thread while the worker thread is processing the data. This confuses me. How can the UI t...
    multithreading problem (VIP replies)
    microsoft.public.dotnet.framework.compactframework
    Hi, I have a small app that uses a custom proxy to down load XML from a web service. I using the HtpWebRequest/Response objects and the Begin methods. Initially this process was started on the UI thread and everything worked ok. However I want the UI thread to create a new thread and start the request from there. The problem is that every third time I request the data, the app locks up. I have use...
    Multithreading Programing (VIP replies)
    microsoft.public.dotnet.languages.vb.data
    Hi, I'need information and examples on Multithreading programming in VB.NET. Please send information to federico@gazum.com Thanks and Regards, Federico
    My kingdom for a ThreadPool Join (VIP replies)
    microsoft.public.dotnet.languages.csharp
    I come from the land of Java and C ** where it is relatively easy to create a pool of threads, send them off to a task, then call the join method and await all of their completion. However, I cannot for the life of me figure out how to get this relatively simple concept working in .net specifically C#. I posted some code earlier where I was using ThreadPool.QueueUserWorkItem I couldn't figure out ...
    Nedd Help On trying to get BabelFish web service to run (VIP replies)
    ASPFriends.com 'aspngxml' list
    I am at this point now with this error occuring Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0246: The type or namespace name 'BabelFish' could not be found (are you missing a using directive or an assembly reference?) Sour...
    Need help with debugging IEExec (VIP replies)
    microsoft.public.vsnet.debugging
    I have an application that is resident on a web server and it is started by http://web/directory/application.exe. This has been working. It uses a remote object hosted within the same copy of IIS. This has been working. Today, I added some new methods to the remote object. They are not working. I can remotely debug W3WP and see the call to the new method and the value that it attempts to return. T...
    Not Receiving Results from Java Webservice (VIP replies)
    microsoft.public.dotnet.framework.aspnet.webservices
    Hello, I have a c# client program that sends a userID and Password to a webservice that validates the user. The client is sucessfully sending the Client context and the webservice is receiving it and processing it, but I don't get back the ReturnCode saying wether it was OK or not. Here is a snippet from the client code and the code generated by the wsdl file. Client Code that is sending the Clien...
    NullReferenceException (VIP replies)
    microsoft.public.dotnet.framework.compactframework
    Dear All. I always got "WebException" or "NullReferenceException" errors when I try to use internet functions. In this case , I can get the file size and type. Please help thanks! Public Function picDownload(ByVal txUrl As String) As String ' Create and start an asynchronous web request Dim req As HttpWebRequest Dim u As New Uri(txUrl) req HttpWebRequest.Create(u.ToString) req.Method "GET" Cursor....
    OutOfMemoryException (VIP replies)
    microsoft.public.dotnet.framework.clr
    Hallo, I get in my application server after a couple of days OutOfMemory Exceptions. When the OutOfMemory Exceptions occurs, the process shows ca. 400 MB virtual Memory in the Task Manager. Available are 3 GB real RAM and 5 GB virtual Memory on the maschine. The application server works internally with large DataSets (400 000 Rows in several DataTables). There is no remoting access to the DataSets...
    Output Parameters in VB? (VIP replies)
    microsoft.public.dotnet.languages.vb
    How can I call a method that defines an "out" parameter from VB? Jeff.
    Possible reasons application is locking up? (VIP replies)
    microsoft.public.dotnet.framework.compactframework
    This is just a general question. I have an application that I developed for a Pocket PC v2003 that periodically locks up at random points in the application. Since the locking up occurs at random places it is very hard to debug. I was wondering if anybody had any input on some common things that may cause this? The application is a data collection application that has many forms with bound control...
    Problem with 'TcpClient' (VIP replies)
    microsoft.public.dotnet.framework.sdk
    I execute these steps TcpClient MyTcpClient new TcpClient( . ); MyTcpClient.Connect( . ); //Connect to Server NetworkStream MyNetworkStream; MyNetworkStream MyTcpClient.GetStream( ); //Get Network Stream IAsyncResult MyAsyncResult NetworkStream.BeginRead( .. ); //Start asynchronous read MyAsyncResult.AsyncWaitHandle.WaitOne( ); //Wait infinitely for TCP Server to write something into socket int Re...
    Ad
    MBR BootFX
    Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
     
     Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
    Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com