|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: ofstream (standard C++ file output) not working
Hmm, I am not seeing any blocked attempts to write; Every test was successful, without the priv_set... Sometimes it took up to 10 seconds to find it over FTP, but every test was successful
|
|
#2
|
|||
|
|||
|
Re: ofstream (standard C++ file output) not working
Make sure your FTP client is not caching the directory listing. What client are you using?
|
|
#3
|
||||
|
||||
|
Re: ofstream (standard C++ file output) not working
FileZilla
|
|
#4
|
|||
|
|||
|
Re: ofstream (standard C++ file output) not working
Hmm... should be fine as long as you refresh and are connected. Have you tried putting prints to go along with your writes to get some idea of when the write happened vs. when you see the file on the FTP server?
|
|
#5
|
||||
|
||||
|
Re: ofstream (standard C++ file output) not working
no, but I think it might be the code is slow (I only immediatly looked at the folder for a few test), you hit Run kernel task and it downloads, (I was measuring from that point), it calls the entry point function, and inits everything before creating the file
|
|
#6
|
||||
|
||||
|
Re: ofstream (standard C++ file output) not working
We finally got our log working consistently (although not as sophisticated as 3132's Logger, it's a foundation in which stuff can be added on). It looks like the race condition problems listed above were the culprit. The key is not to completely overwhelm it with added lines in the main loop.
We have wrapped it in a class if anyone's interested: http://gist.github.com/296373 Last edited by davidalln : 02-05-2010 at 06:36 PM. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| p2 not working? | Lone_Wolf92c | Programming | 5 | 02-22-2008 08:49 AM |
| IR Board Not Working (But NOT Fried) | itsme | Electrical | 2 | 02-18-2008 06:11 AM |
| Beware - transmission output shaft is not 5/8"! | jskene | Kit & Additional Hardware | 30 | 02-13-2006 02:01 PM |
| Drive() Not a Standard Toolset in EasyC? | Chris_Elston | Programming | 3 | 02-08-2006 09:01 AM |
| Beware - transmission output shaft is not 5/8"! | jskene | Technical Discussion | 3 | 01-19-2006 02:24 PM |