|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: ofstream (standard C++ file output) not working
Did you or anyone else successfully get a log running on their cRio? We are trying to do something similar, and we have had consistent success with creating the file but very spotty success when writing to it (depending on where the lines are added in the code). Sometimes it works sometimes it doesn't.
|
|
#2
|
||||
|
||||
|
Re: ofstream (standard C++ file output) not working
I know this is quite a bump, but now I'm even having problems using C file I/O with FILE* pointers. I've called Priv_SetWriteAllowed(1) and still weird stuff happens. Sometimes things work fine, but there's a boat load of issues most of the time:
Does anybody have any idea what could be causing this? It's making things very difficult and I can't imagine why it would be happening. Last edited by slavik262 : 25-01-2010 at 19:47. |
|
#3
|
|||
|
|||
|
Re: ofstream (standard C++ file output) not working
I've found that some parts of the STL do not work with well/at all Wind River. I tried to use std::fstream to store some packet data, but had to use c-style file I/O for it to work.
|
|
#4
|
||||
|
||||
|
Re: ofstream (standard C++ file output) not working
Quote:
![]() |
|
#5
|
|||
|
|||
|
Re: ofstream (standard C++ file output) not working
Interesting. What permissions are you using? I used "w".
|
|
#6
|
||||
|
||||
|
Re: ofstream (standard C++ file output) not working
I was using w. I guess I could try wb or w+, but I was just writing text...
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| p2 not working? | Lone_Wolf92c | Programming | 5 | 22-02-2008 08:49 |
| IR Board Not Working (But NOT Fried) | itsme | Electrical | 2 | 18-02-2008 06:11 |
| Beware - transmission output shaft is not 5/8"! | jskene | Kit & Additional Hardware | 30 | 13-02-2006 14:01 |
| Drive() Not a Standard Toolset in EasyC? | Chris_Elston | Programming | 3 | 08-02-2006 09:01 |
| Beware - transmission output shaft is not 5/8"! | jskene | Technical Discussion | 3 | 19-01-2006 14:24 |