|
by: Barry Anderberg |
last post by:
I am using asynch sockets and so I call BeginReceive and then in my
callback function I have certain events that would cause me to want to
throw an exception.
The problem of course is that the callback function is executing in a
separate thread from the main thread so when I throw the exception
it's apparently impossible to handle it in the calling thread (ie the
thread that called BeginReceive(..).
Is there a way to throw an...
|
by: Glen Wolinsky |
last post by:
This is my first attempt as asynchronous processing. I have created a
small test app as proof of concept, but I am having one proglem. In
the example (code listed below), my callback routine has two problems:
1. It runs TWICE; and
2. While it seems to update the web page controls, the results never
show up on the page.
I am using delegates per a couple of examples I found on MSDN and
elsewhere.
|
by: ghost |
last post by:
As the Subject indicates I have written a web page that makes use of
several web service calls.
Some of the web service calls are very fast so they called
synchronously. Some web service calls are longer running so I call
them asynch so that they can all run concurrently. The user base for
the application that I am creating demands the partial response of the
faster calls and a gradual update of their web page info from the
balance of...
|
by: Sean |
last post by:
I am looking at using delegates to perform an asynchronous call.
There will be a callback invoked at the end of the call.
The client thread will wait on the WaitHandle from IAsyncResult (which is
really a AsyncResult).
My question is, when exactly is this WaitHandle signalled - is it:
-when the asynchronous call finishes
OR
-when EndInvoke() is called (by the callback)
|
by: EM_J |
last post by:
I am implementing this interface in one of my pages. The
RaiseCallbackEvent method runs a task for about 3 seconds. I've
noticed when I am on that page and click a tab to navigate to another
page, it may take up to 3 seconds to redirect. If I decrease the time
to 500 ms, the redirect happens much faster.
So it seems like this asynch task is not really asynch, since the
redirect is waiting for it to complete. Am I misunderstanding...
|
|
by: simonZ |
last post by:
I'm using Asynch data tasks to create my data readers and after a couple of
executions, the page doesn't render any more.
There is always timeoutAsynchOperation. First time when this happens, in
background, all the jobe in sql is done only the data is not thrown back.
I guess:
when user disconects from the pool, the asynch operation executes the
procedure on sql server and when it is finished,
it can't connect the user back to the pool....
|
by: =?Utf-8?B?Um9iIEM=?= |
last post by:
I have an application written in VC++ using MFC that calls into web service
written in C#. I am developing in VS2005.
I am debugging my C++ app while I have attached my Webservice project to the
debugger through a seperate VS2005 process. I make a call to the webservice
to update some records in SQL Server. I have a breakpoint in the webservice
method prior to the actual daabase update call. When I run this, the code
breaks on the...
|
by: =?Utf-8?B?aGVyYmVydA==?= |
last post by:
I have a messaging API which creates notification responses for multiple
requests ( interfacing a device on SerialPort class).
So I created a layer following the event-based asynchronous pattern. The
request is sent to RS-232 using MethodNameAsynch() and the response creates
an event.
There are multiple methodnameAsynch() calls and events, each of them can be
called multiple times using userState objects.
Now I want to wrap this layer...
|
by: Patino |
last post by:
I have a particular WS consumer application (Windows app) that was not
able to read an error from the WS app because it was calling a method
asynch. The client app just hangs there. But once I switched the call
to a synch, the client app got the error message and displayed it
nicely to the user.
In this client app. the user does not have to do anything while
waiting for results to come back from the web, so it makes sense to
call the...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|