Asynchronous call problem

J

Justin Harrison

Hi,

I've got a function I am calling asynchronously, with a callback. The
callback gets called once, with valid return data. It gets called a second
time, with no return data. Does anybody have any idea of what is going on?

Justin
 
J

James

Justin Harrison said:
Hi,

I've got a function I am calling asynchronously, with a callback. The
callback gets called once, with valid return data. It gets called a second
time, with no return data. Does anybody have any idea of what is going on?

Justin

If you are writing some sort of file access (ftp - file - tcp generaly) then
your'e code is calling it twice - the second call is down to the fact that
your'e code is passing null into it - make sure your code that calls the
async thread cannot pass null

James Jenkins
http://www.kimberleydawn.co.uk
 

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

Top