Code center > Bugs and fixes
IM needs to be periodically reset? OPEN
Numsgil:
I haven't explored it totally yet, but I'm pretty sure you can hook up a file upload to a PHP page. The program would call the web page with the specified file and it would get uploaded and stored. Likewise, the program could call up a similar page to download a bot.
EricL:
bump to bring open bug to first page
Numsgil:
Another possible solution: build a separate C# DLL that handles communicating with the FTP server. Have Darwinbots call this separate internet handling mechanism. The DLL could run as a separate thread, solving issues with IM freezing the sim and making the program unresponsive periodically. C# also generally has better internet communications controls with better debugging.
IM is so removed from the actual program, getting the two to interface would be easy. All you need is for DB to tell it a file to try and upload, give it the go-ahead to download, and a way for the DLL to send back status reports (server unreachable, etc. etc.)
The downside, obviously, is that now you'd have to support two programs. But then the IM controls would change so infrequently you could just have it as part of a base installer, and work upgrades like you've been doing. Renaming the DLL with each new DLL release solves problems of the VB program trying to access an invalid version, if that's ever a problem.
Navigation
[0] Message Index
[*] Previous page
Go to full version