Rahul Kulkarni wrote:
Hello All,
I have written a small component using the XMain interface and I am
displaying the current working directories from the run method of XMain
interface and one of the methods of the component function. But surprisingly
I am getting different directory names in both the functions. Why is it so?
Here is how I executed the program.
/home/rahulk$ ./system/bin/run
Note: run is the script which internally invokes uno executable.
getcwd output from run method of XMain interface: /home/rahulk/system/bin
getcwd output from one of the functions of component invoked from run:
/home/rahul.
Thanks and Regards,
// Rahul
Looks as if somewhere in the code there is a call to chdir(2) or
fchdir(2) (assuming Linux). No idea why that would be, but you could
try strace or a debugger to find out more...
-Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]