Re: Explicitly Freeing Memory

2014-11-19 Thread Maxime Chevalier-Boisvert via Digitalmars-d-learn
Unfortunately I don't have any good suggestions... I have been avoiding depending on dtors in D because of the aforementioned issues (and more), so I haven't had much experience in debugging dtor-related problems in D. I decided to just free everything explicitly:

Dub / Derelict confusion

2014-11-19 Thread Paul via Digitalmars-d-learn
I would like to create a simple program using SDL. I've read this page http://dblog.aldacron.net/derelict-help/using-derelict/ and this one http://code.dlang.org/about and decided that using 'dub' would be the sensible option for a beginner so I downloaded the dub executable and put it in the

Re: Dub / Derelict confusion

2014-11-19 Thread wobbles via Digitalmars-d-learn
On Wednesday, 19 November 2014 at 09:12:52 UTC, Paul wrote: I would like to create a simple program using SDL. I've read this page http://dblog.aldacron.net/derelict-help/using-derelict/ and this one http://code.dlang.org/about and decided that using 'dub' would be the sensible option for a

Re: Explicitly Freeing Memory

2014-11-19 Thread Kagamin via Digitalmars-d-learn
You can control it by creating a global flag and checking it before freeing.

Re: Dub / Derelict confusion

2014-11-19 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 19 November 2014 at 09:12:52 UTC, Paul wrote: I would like to create a simple program using SDL. I've read this page http://dblog.aldacron.net/derelict-help/using-derelict/ and this one http://code.dlang.org/about and decided that using 'dub' would be the sensible option for a

Re: Dub / Derelict confusion

2014-11-19 Thread Mike Parker via Digitalmars-d-learn
On 11/19/2014 6:12 PM, Paul wrote: I would like to create a simple program using SDL. I've read this page http://dblog.aldacron.net/derelict-help/using-derelict/ and this one http://code.dlang.org/about and decided that using 'dub' would be the sensible option for a beginner so I downloaded the

Re: Dub / Derelict confusion

2014-11-19 Thread wobbles via Digitalmars-d-learn
Put them into a place your linker can find (usually /usr/lib/ iirc). I forgot, I'm pretty sure make install does that step for you.

Re: Dub / Derelict confusion

2014-11-19 Thread Paul via Digitalmars-d-learn
@wobbles: Sorry, should have said, I built SDL and the libraries are installed in /usr/local/lib could you give some more details? Full package.json, the file-structure of your project and the full output from dub would help. @John Colvin The entire contents of dub.json are as above. My

Re: Simple timing

2014-11-19 Thread Kagamin via Digitalmars-d-learn
On Monday, 17 November 2014 at 16:38:45 UTC, Rene Zwanenburg wrote: Clock.currTime uses a high performance timer, QueryPerformanceCounter on Windows for example, so you shouldn't have to worry about timer accuracy. You probably mistake it for StopWatch, clock is not timer.

Re: Debugging on OSX

2014-11-19 Thread Bruno Medeiros via Digitalmars-d-learn
On 27/09/2014 16:21, Phil wrote: I've seen a few old threads mentioning this, but couldn't find anything more recent. What support is there for debugging on OSX? I'm currently trying MonoD, but the option to run with debugger is greyed out. Have you checked: http://wiki.dlang.org/Debuggers ?

Re: Dub / Derelict confusion

2014-11-19 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 19 November 2014 at 10:09:55 UTC, Paul wrote: @wobbles: Sorry, should have said, I built SDL and the libraries are installed in /usr/local/lib could you give some more details? Full package.json, the file-structure of your project and the full output from dub would help.

Re: Dub / Derelict confusion

2014-11-19 Thread Paul via Digitalmars-d-learn
On Wednesday, 19 November 2014 at 10:07:56 UTC, Mike Parker wrote: On 11/19/2014 6:12 PM, Paul wrote: I would like to create a simple program using SDL. I've read this page http://dblog.aldacron.net/derelict-help/using-derelict/ and this one http://code.dlang.org/about and decided that using

TKd handling of custom events

2014-11-19 Thread univacc via Digitalmars-d-learn
Hello, I am using TKd to dray my linux/windows app which works very good! I would like to add a global Hotkey to my program via the Win32 API function RegisterGlobalHotkey. Is there a possibility to access Tk's event loop so that you can Handle the WM_HOTKEY message, the WinAPI sends you?

Kitchen Offers Reviews

2014-11-19 Thread phodho via Digitalmars-d-learn
Best kitchens offers reviews i could give are that you don’t pay until the kitchen is delivered.

help

2014-11-19 Thread michael via Digitalmars-d-learn
Hello All: when i am using std.net.curl to download a file that dosent exist on ftp sever,my code will get an execption like this ‍std.net.curl.CurlException@std\net\curl.d(3605): Remote file not found on handle 1A8E038 0x0042EC05 0x004027F6 and then it exits,however what i

Re: help

2014-11-19 Thread Suliman via Digitalmars-d-learn
You need to check if remote file exist of server and only after it download шею Also add scope or try catch block to your code.