Skip to main content
GameDev.net gamedev.net
🔒 Locked

GetCurrentDirectory function is stalling!

Started by MystikIce Oct 11, 2004 at 10:13 AM 0 replies 400+ views
Original Post
MystikIce
MystikIce
My application is locking up when it hits this chunk of code. Can't seem to notice why though. Maybe I am overlooking something.


TCHAR* lpCurDir;
unsigned int bufSize, sizeofDir = 260;
lpCurDir = new TCHAR[sizeofDir];

bufSize = GetCurrentDirectory(sizeofDir, lpCurDir);


It stalls at exactly that line of code. Can anyone see anything out of the ordinary with it? Thanx in advance!
Paradigm Shifter
Paradigm Shifter
Its not in a class member function called GetCurrentDirectory by any chance? Meaning infinite recursion, solved by global scope operator ::GetCurrentDirectory ?

Just a guess.
"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.