You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function is written in a way that appears to always make that happen (that or a lucky race condition before stopped it).
There are several issues:
After using ReadFile with the overlapped flag set, GetOverlappedResult should be used to check how many bytes were read, as the parameter will always come back 0. (This can also be used instead of WaitForSingleObject)
EnterCriticalSection for gReadSection seems to be entered before WriteFile is called. The gReadSection is locked by waiting for the device to output some information, this of course won't happen as it is sitting idly. The EnterCriticalSection should be moved after the WriteFile
WriteFile and ReadFile in receiveFile both need to have the &rfOverlapped parameter added to them, otherwise you will get an error
sprintf when building the receivefile command, %ul is not a valid token (VS2010 C++ express at least)
The rest of it seems to work fine
The text was updated successfully, but these errors were encountered:
This is quite true, there are also numerous other problems with it. (Such as it not parsing the file header from OIB.)
I don't believe I've actually tested it since the very hacky port from the original linux OIBC source.
We haven't really heard of many people using the windows tools, and as windows loadibec works, and the rest of of the tools work fine under a VM, it's had a rather low priority. We will try and look at it when we get a chance.
ReceiveFile on the window oibc will deadlock.
The function is written in a way that appears to always make that happen (that or a lucky race condition before stopped it).
There are several issues:
The rest of it seems to work fine
The text was updated successfully, but these errors were encountered: