[SDL + TKD] Seg fault from creating DirectoryDialog

Mike Parker via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 4 03:48:37 PST 2014


On 11/4/2014 7:34 PM, Jack wrote:
> On Tuesday, 4 November 2014 at 08:30:34 UTC, Gary Willoughby

>
> Here's the main file:
> http://codepad.org/hu4r0ExB
>
> and Here's the module:
> http://codepad.org/ikXAzfdg
>
> Dependencies are DerelictSDL and Tkd.
>
> It's the most simple one I got that reproduces the error.

You might start by adding a call to Mix_Init after SDL_Init and before 
calling any other Mix_* functions. SDL_Init doesn't know anything about 
the SDL_mixer library. See [1] for details (and don't forget the 
corresponding Mix_Quit [2]).

[1] https://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer_9.html
[2] https://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer_10.html#SEC10




More information about the Digitalmars-d-learn mailing list