Real Software Forums
http://forums.realsoftware.com/

Odd behavior on compiled App
http://forums.realsoftware.com/viewtopic.php?f=8&t=21402
Page 1 of 1

Author:  KrakerJak [ Sun Mar 23, 2008 10:50 pm ]
Post subject:  Odd behavior on compiled App

I have a small app that pulls the http proxy from System.EnvironmentVariable("http_proxy").
In the IDE it returns the correct proxy. If i run the app from the terminal, the call works.
For whatever reason when I just launch the app the call returns an empty string.

Has anyone ever seen anything like this before?
KJ

Author:  Pariahware [ Sun Mar 23, 2008 11:22 pm ]
Post subject:  Re: Odd behavior on compiled App

Check the shell for errors. Shells can run with different environment variables. Try executing the command with the full path.

Author:  KrakerJak [ Sun Mar 23, 2008 11:45 pm ]
Post subject:  Re: Odd behavior on compiled App

Pariahware wrote:
Check the shell for errors. Shells can run with different environment variables. Try executing the command with the full path.


System.EnvironmentVariable("http_proxy")


Is that a shell call under the hood?

A little more detail, It only works when the terminal is open. I didn't catch that until I launched RB without the terminal (Not something I usually do).

Author:  Pariahware [ Mon Mar 24, 2008 8:39 am ]
Post subject:  Re: Odd behavior on compiled App

I don't know for sure, but I wouldn't be surprised.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/