problem with Access Violation, and I'm not sure where
Mike Parker via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jun 11 05:40:58 PDT 2014
On 6/11/2014 2:14 PM, Matt wrote:
>>
>> window = SDL_CreateWindow (cfg["window"]["caption"].str.ptr,
>> SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height,
>> SDL_WINDOW_SHOWN);
I'm curious -- does cfg[""][""].str ensure that the string is null
terminated? Because if it doesn't, you've got a potential problem here
(aside from the fact that you aren't checking the return value).
More information about the Digitalmars-d-learn
mailing list