473,387 Members | 1,882 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,387 software developers and data experts.

Help with asynchronous download problem?

Hi,

I'm using a provided api to download some information (from Bloomberg),
which goes into a dataset. I want to save the dataset info back into
the database.

The problem is that the dataAdapter.update gets called before the
dataset is done being populated with downloaded info.

An awful workaround is me popping up a messagebox, letting the user
decide when to continue program execution.

I'd like something more elegant - basically, some kind of
"notification" that the dataset has been filled. Are there any standard
ways of achieving this?

thanks!

Oct 22 '06 #1
3 1310
sherrifffruitfly,
This doesn't "sound" asynchronous at all. If it really is, you'll have a
callback method that completes the dataset and at the end of that method, and
only when the DataSet is completely loaded, you would be saving the data into
the database.

Do you want to post a "Short but complete" (a -la Jon Skeet) example code
snippet so we can get a better idea of what may be really going on?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"sherifffruitfly" wrote:
Hi,

I'm using a provided api to download some information (from Bloomberg),
which goes into a dataset. I want to save the dataset info back into
the database.

The problem is that the dataAdapter.update gets called before the
dataset is done being populated with downloaded info.

An awful workaround is me popping up a messagebox, letting the user
decide when to continue program execution.

I'd like something more elegant - basically, some kind of
"notification" that the dataset has been filled. Are there any standard
ways of achieving this?

thanks!

Oct 23 '06 #2

Peter wrote:
Do you want to post a "Short but complete" (a -la Jon Skeet) example code
snippet so we can get a better idea of what may be really going on?
Peter
I have no idea who/what Jon Skeet is, but I know what "minimal example"
means (LaTex :) ).

I'm happy to post some such, but it'll have to be tomorrow, as the code
is at work.

If you're able to check back then, that'd be wonderful - thanks!

cdj

Oct 23 '06 #3
Edification link:
http://www.yoda.arachsys.com/csharp/complete.html
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"sherifffruitfly" wrote:
>
Peter wrote:
Do you want to post a "Short but complete" (a -la Jon Skeet) example code
snippet so we can get a better idea of what may be really going on?
Peter

I have no idea who/what Jon Skeet is, but I know what "minimal example"
means (LaTex :) ).

I'm happy to post some such, but it'll have to be tomorrow, as the code
is at work.

If you're able to check back then, that'd be wonderful - thanks!

cdj

Oct 23 '06 #4

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

Similar topics

3
by: Corne Oosthuizen | last post by:
I'm writing a Telnet Server application using Asynchronous sockets. I spawn a listener thread to handel incomming connections and create a separate client socket for each new connection. I...
6
by: No_Excuses | last post by:
All, I am interested in reading the text of a web page and parsing it. After searching on this newgroup I decided to use the following: ******************************* START OF CODE...
6
by: MakeMeHappy | last post by:
Hi, I have some problems with understand how to call BeginInvoke properly so I need your help... I have a "worker" thread in my app where I download a website, and after some processing on html...
2
by: VBTricks.de.vu Webmaster | last post by:
Hello everybody, I need to write a HTTP client capable of downloading files using the HTTP protocoll. But downloading is one of my problems. I'm new to VB.net and I know there's a framework...
5
by: matt | last post by:
i have a VB.net application that connects to the internet to download an xml file and parse it. It works correctly, but "locks up" until that function returns. i want to add asynchronous support,...
0
by: GS | last post by:
Hello, I'm trying to implement asynchronous call to COM interface below and having trouble understanding what C# code will allow me to update progress bar while call is running. I have an object...
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...
2
by: Bonzol | last post by:
vb.net 2003 Windows application We have a Client/Server system set up by communicating through a TCPClient object. The server loops continuously using a tcplistener device and each time a client...
5
by: Scott M. | last post by:
Am I wrong, or is invoking a web method via a different thread and making an XmlHttp request both different ways of making asynchronous web requests. One just uses the Web Service architecture...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
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,...

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.