[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
Chipmunk Physics • View topic - Bizarre, i may just be going mad...

Bizarre, i may just be going mad...

Official forum for the .

Bizarre, i may just be going mad...

Postby MatthewHudghton » Sun Jun 13, 2010 9:48 am

Hi, i recently started getting an odd error.
I'm running on windows 7 64bit.

My Code runs in debug mode in VS C++ 2008 EE.

But the generated .exe no longers run on my pc.

So i thoguht, ok probably an unintialised variable somewhere, tried the usual massive number of prinf statements and tracked down which line causing it to crash (adding the first shape to the space, but both the shape, body and the space as far as i can tell are intialised)

What is more strange is that i tested older versions of the program for which i knew the .exe worked (i'd just copied and pasted the folder and dated them, but these no longer work as well, and its not like i've gone and removed the .dll out of the folders they were in :/ - however the oldest versions i have still work, so probably is my code :/

The projects a bit big to post to forums, but happy to provide any detials etc.

I'm very confused, any ideas? - I mean it may just be my code somehow but it just seems very strange.

Thanks for any help!

-Matt
MatthewHudghton
 
Posts: 9
Joined: Mon Oct 06, 2008 8:46 pm

Re: Bizarre, i may just be going mad...

Postby Tam Toucan » Sun Jun 13, 2010 1:40 pm

In my experience this kind of problem is memory corruption. You trash memory somewhere and get away with it until one day the code is bigger, new variables etc and now your corrupt something that causes a crash. As you mention uninitialized vars is the other main cause.

It's weird that you say old code builds no longer work. So these are old .exe's that used to run but no longer do? That surely means something has changed on your PC e.g. graphics drivers and before the code was doing something maybe not 100% by the API and now it causes a crash (I had a that a couple of times with my OpenGL stuff).

Are you using a DLL for chipmunk? Could you be picking up the wrong version for the headers you build against? I'd try compiling it into the code and add some debug statements to see why it's crashing (might help pinpoint the corruption/unitialized var/whatever). I'm assuming that it's release build that crashes so you can't step through with the debugger?

Not much help really. Is you code under source control? Can you go back and see if there is a version that does work. Once had to binary search 100 revs to find where some change I'd made in common code broke another project.
User avatar
Tam Toucan
 
Posts: 141
Joined: Tue Jun 23, 2009 4:26 pm

Re: Bizarre, i may just be going mad...

Postby MatthewHudghton » Mon Jun 14, 2010 1:22 pm

Ok, turned out to me being silly not initializing something, although i'm sure the other versions used to work, but maybe i just imagined it!
but working now, so i'm happy :)
MatthewHudghton
 
Posts: 9
Joined: Mon Oct 06, 2008 8:46 pm

Re: Bizarre, i may just be going mad...

Postby MatthewHudghton » Tue Jun 15, 2010 12:54 pm

yey fulyl fixed,it was me being dumb, was an unititalised variable, forgot to set the body positions right at the very very start before i started using it, so poor chipmunk was having to handle adding an object at something like 3^300 , 3^300 :P
MatthewHudghton
 
Posts: 9
Joined: Mon Oct 06, 2008 8:46 pm


Return to Chipmunk2D Physics

Who is online

Users browsing this forum: No registered users and 1 guest

cron