On 25 May 2013, at 14:25, Reinier Olislagers wrote:

> In the code above, I'm loading the resource from the executable.
> However, Paramstr(0) is not reliable on all platforms.

It's worse: on Unix platforms, even if you know the full path it's unsafe 
because the binary may have been unlinked since the program was started.

> Is there a better way of doing this?

I don't know.


Jonas_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to