Program not running in desktop folder

Discussion about everything. New games, 3d math, development tips...
Post Reply
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Program not running in desktop folder

Post by Acki »

Hi,
I have a realy strange phenomenon !!! :shock:

I made this demo for my IrrSteer project...

if I unzip the archive to the desktop the program only runs if I rename the folder to "bin" any other folder name causes a crash at start !!! :shock:

if I copy the folder to any other folder the folder name doesn't matter and the program runs fine !?!?!

can someone confirm this !?!?! :lol:
I'm running WinXP-pro (sp2)...
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
jam
Posts: 409
Joined: Fri Nov 04, 2005 3:52 am

Post by jam »

Extracted the archive to the desktop, and the program runs fine here.

I'm Running Windows XP Pro (SP 3)
system-independent, adj.:
Works equally poorly on all systems.
-- unknown
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

I'm not on Windows right now. But the way I hunt such bugs down is usually - logging... lots and lots of logging. I have always a few logging-levels and when the level is set to "debug" then my applications log nearly everything that's done. And I make the logging-level usually a command-line parameter.

Also I had one similar bug once where it crashed only on certain folder-names. Turned out that I had some code checking for special filenames and forgot that in that place the path was part of the filename. So every time the game was in a folder which contained the name "alpha" it did not work anymore (which I did find out when we reached the alpha-release-phase ...).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

hmmm, I have realy no clue why it crashes on my system only in that desktop folder... :shock:

the filename/path issue was the first I thought about, but there is only one path/file used in the prog (the one for the mesh)...

maybe it's something related to my system settings or similar ???

thanks for testing !!! :)

cu, Acki
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

OMG
I traced it down and found that it was caused by an uninitialised pointer !!! :oops:

but I still wonder why it only crashed in that specific folder and not in any others ??? :shock:
maybe some kind of memory management issue of Windows (maybe solved in sp3) ??? :?

again, thanks for your attention !!! :)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply