Re: Mac OS crash, details inside...

2013-06-17 Thread Sean Kelly
On Jun 14, 2013, at 2:49 AM, Gary Willoughby d...@kalekold.net wrote: In fact i have the same problem reading files too. It only reads files up to a certain amount of bytes then crashes in the same manner explained above. Again this only happens when the program runs as a daemon. Run as a

Re: Mac OS crash, details inside...

2013-06-17 Thread Gary Willoughby
Run as a daemon how? By running the above code. All the code before opening the file causes the program to run as a daemon.

Re: Mac OS crash, details inside...

2013-06-14 Thread Jacob Carlborg
On 2013-06-13 19:42, Gary Willoughby wrote: I get a program crash each time running the following code on MacOS 10.8 (Lion). It seems to run ok on Ubuntu 12.04: import core.sys.posix.sys.stat; import core.sys.posix.unistd; import std.c.stdio; import std.c.stdlib; import std.process; import

Re: Mac OS crash, details inside...

2013-06-14 Thread Gary Willoughby
You do know that you usually don't have a /home/ directory on Mac OS X? On Mac OS X it's called /Users/. Yeah, that was me running the same code on Ubuntu. BTW, running that on Mac OS X 10.6.3 does not cause a crash. Although it doesn't seem to print or write anything. That's the problem i

Re: Mac OS crash, details inside...

2013-06-14 Thread Gary Willoughby
In fact i have the same problem reading files too. It only reads files up to a certain amount of bytes then crashes in the same manner explained above. Again this only happens when the program runs as a daemon.