mkdir bug

General FreeBASIC programming questions.
Post Reply
pkmnfrk
Posts: 40
Joined: Jun 03, 2005 12:53
Contact:

mkdir bug

Post by pkmnfrk »

Hi, I'm back, with a guaranteed bug this time.

This code produces a Seg fault:

Code: Select all

mkdir "notexist"
sleep
That's not right, is it? (BTW, it crashes on mkdir, not sleep). I discovered this while trying to figure out why my game quits before doing anything. I confirmed that the problem was in the run-time library using gdb and the nifty new debugging features (which are, incidentally, the most awesome thing to happen thus far to FB. I missed the QB debugger :) )
v1ctor
Site Admin
Posts: 3804
Joined: May 27, 2005 8:08
Location: SP / Bra[s]il
Contact:

Post by v1ctor »

Yeah, there was a stupid in the declaration of the ??dir functions and the compiler itself had to be changed, so the archives were re-uploaded (the Linux version wasn't updated yet) -- if chdir, mkdir or rmdir are never used, who downloaded the 0.14 already don't have to download it again.

Just exchange the current fbc.exe by the new one, sorry for that..
Post Reply