An USB problem

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
karnare
Posts: 17
Joined: Thu Feb 16, 2006 11:40 am

An USB problem

Post by karnare »

I just want to realize the function like this:when it activates the USB, the pc will detect it ,and put a file on the MemoryStick, and then disconnect it. After the disconnection, the function will read the file.
But when open it, the handle is always invalid.
I have checked that the file is correct. if I restart the program,the file can be read correctly.
So what the problem is?THANKS!
karnare
Posts: 17
Joined: Thu Feb 16, 2006 11:40 am

Post by karnare »

can somebody help me?

I guess the data from pc has not been wrote to the disk, maybe in the cache or the memory. If it is, which functions in SDK can resolve it?

Or other reasons?
Post Reply