473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Asynchronous Delegate and Double Commit Problem

Hi there,

Can anyone tell me why invoking a single SQL insert statement (well, rather,
a method that performs a SQL insert) using an asynchronous delegate should
result in twice the number of records being inserted? Am I just making a
mistake somewhere? (though I don't get double the records if I call the
method synchronously.)

Thanks,
Darryl
Nov 16 '05 #1
2 2323
Hi again,

Sorry for posting this problem. I don't know what the problem is, but I
only get it if the asynchronous call is generated (indirectly) by clicking
on an ASP.NET Web Form. If I bypass the form and (indirectly) generate the
call using an XML web service, the double commit problem disappears. I am
guessing I don't handle postback right, though I still don't know why this
side-effect should only appear on asynchronous calls.

Darryl
"Darryl A. J. Staflund" <da*************@shaw.ca> wrote in message
news:#H**************@TK2MSFTNGP10.phx.gbl...
Hi there,

Can anyone tell me why invoking a single SQL insert statement (well, rather, a method that performs a SQL insert) using an asynchronous delegate should
result in twice the number of records being inserted? Am I just making a
mistake somewhere? (though I don't get double the records if I call the
method synchronously.)

Thanks,
Darryl

Nov 16 '05 #2
jm
Is autoeventwireup set to false?

"Darryl A. J. Staflund" <da*************@shaw.ca> wrote in message news:<OB**************@tk2msftngp13.phx.gbl>...
Hi again,

Sorry for posting this problem. I don't know what the problem is, but I
only get it if the asynchronous call is generated (indirectly) by clicking
on an ASP.NET Web Form. If I bypass the form and (indirectly) generate the
call using an XML web service, the double commit problem disappears. I am
guessing I don't handle postback right, though I still don't know why this
side-effect should only appear on asynchronous calls.

Darryl
"Darryl A. J. Staflund" <da*************@shaw.ca> wrote in message
news:#H**************@TK2MSFTNGP10.phx.gbl...
Hi there,

Can anyone tell me why invoking a single SQL insert statement (well,

rather,
a method that performs a SQL insert) using an asynchronous delegate should
result in twice the number of records being inserted? Am I just making a
mistake somewhere? (though I don't get double the records if I call the
method synchronously.)

Thanks,
Darryl

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: hs | last post by:
H I am using the articles by Matt Powell about server side asynchronous web methods (as well as the client side article) However i dont see any improvements to the speed of my application. I'm...
4
by: Michael C | last post by:
Hi all, Is there an easy way to get the parameters of an asynchronous delegate call from the callback function? Here's an example of what I'm trying to do: private delegate ArrayList...
1
by: Natalia DeBow | last post by:
Hi, I am working on a Windows-based client-server application. I am involved in the development of the remote client modules. I am using asynchronous delegates to obtain information from...
3
by: Oscar Thornell | last post by:
Hi, I am thinking about doing all my logging asynchronously using a delegate. The main resaon for this would be performance and responsiveness of the application (an ASP.NET app). //Exampel...
2
by: Gerda | last post by:
Hi! I've implemented many times an asynchronous call of a method with a call backfunction successfully. But to implement this with VB.NET is not so successfully. I can implement all events...
7
by: Siv | last post by:
Hi, I have a stored procedure that I want to execute and then wait in a loop showing a timer whilst it completes and then carry on once I get notification that it has completed. The main reason...
1
by: dba123 | last post by:
I need to perform Asynchronous Inserts using DAAB. So far I have a method which does an insert but how can I do this Asyncronously so that it does not affect the load on our public production...
4
by: 6954 | last post by:
Hi! i need to implement some asynchronous call to my com+ component, but i need it to return some values (e.g. results of sql select statement). obviously queued components and MSMQ are out of...
1
by: Morgan Cheng | last post by:
Asynchronous method model generally has a callback delegate as argument. The delegate will be called when some WaitHandle is set or time out. And, one more argument is used as state object to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.