The system environment is win2003 vs2005.
The cause is to write any callback code. When the callback method is executed, VS is frozen. After a dozen seconds, VS can be changed. However, an error occurred while executing the code.
This code can be run in XP.
Byte [] BS = new byte [102400];
Private void button#click (Object sender, eventargs E)
{
Filestream FS = new filestream ("D: // game // ra2.exe", filemode. Open, fileaccess. Read );
FS. beginread (BS, 0, 4096, new asynccallback (readfile), FS );
}
Void readfile (iasyncresult R)
{
Filestream FS = (filestream) R. asyncstate;
FS. endread (R );
FS. beginread (BS, 0, 4096, new asynccallback (readfile), FS );
}
The debugging error message is as follows:
R. asyncstate is disabled because the previous function evaluate times out. You must continue the execution to re-enable function evaluation. Object
I found a post on this topic online. No solutions can be found.