Bug in cpSpaceSegmentQueryFirst

Official forum for the Chipmunk2D Physics Library.
Beta Carotene
Posts: 123
Joined: Sat Aug 04, 2012 6:34 pm
Contact:

Re: Bug in cpSpaceSegmentQueryFirst

Post by Beta Carotene »

would be nice if windows actually HAD VALGRIND

*fumes*

Yeah I know there's alternative tools and stuff, but I have never seen anything work. I tried their new "code analysis" thing too. It's been compiling for *16 hours* and has found nothing that the regular compiler hasn't found.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Bug in cpSpaceSegmentQueryFirst

Post by slembcke »

Does Windows have Malloc Debug? I've used that on OS X to pretty good effect too. It basically aligns every allocation to the end of a page in memory so that accessing beyond the memory range or accessing a freed pointer should generally crash right away.

It does make it use a ton of RAM, and ridiculously slow, but it works pretty good.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Beta Carotene
Posts: 123
Joined: Sat Aug 04, 2012 6:34 pm
Contact:

Re: Bug in cpSpaceSegmentQueryFirst

Post by Beta Carotene »

Just giving you an update...

I don't think it was entirely connected to the issue with ray cast, but I did find another (I think) unrelated crash that actually was visual studios fault. When I switched over to 2012, apparently it assumed that I wanted to link to the DirectX 11 runtime libraries.... even though there is NO MENTION of said libraries in any of the source code or configuration/link settings. I switched back to the 2010 tool-set and it recognized I wanted DX10 again.

Fun all around
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Bug in cpSpaceSegmentQueryFirst

Post by slembcke »

Heh. Aren't computers great?
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Post Reply

Who is online

Users browsing this forum: Heise IT-Markt [Crawler] and 10 guests