Help with asynchronous download problem?

  • Thread starter Thread starter sherifffruitfly
  • Start date Start date
S

sherifffruitfly

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!
 
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
 
Peter said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top