View Single Post
  #1   Spotlight this post!  
Unread 03-17-2015, 09:38 AM
lalondma lalondma is offline
Registered User
AKA: Marc Lalonde
FRC #3990 (Tech for Kids)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Montreal
Posts: 5
lalondma is an unknown quantity at this point
Default working directory for FRCUserProgram process?

Hello,
Recently, I got a program crash because the text file that was supposed to be loaded by AutomonousInit (C++ - iterative robot) could not be found. The file was placed in /home/lvuser alongside the binary FRCUserProgram, so I expected a call like fopen("foo.txt","r") to work but it didn't. fopen("/home/lvuser/foo.txt","r") did work however, so it's not a permission issue. Also tried to put the file in "/home/admin" in case FRCUserProgram would run as admin, without success. Anybody knows what the default working directory is? "/", maybe?
Reply With Quote