Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: mmebane on January 30, 2006, 07:42:32 pm

Title: Bug in console_runner and proposed fix (was: Building C::B in Windows)
Post by: mmebane on January 30, 2006, 07:42:32 pm
Is there any good guide to doing so? I found this (http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook), but it is incomplete. Is there some other resource I've missed? I'd like to get it building so I can try to fix this annoying bug (http://sourceforge.net/tracker/?group_id=126998&atid=707416&func=detail&aid=1247522).
Title: Re: Building C::B in Windows
Post by: thomas on January 30, 2006, 07:46:55 pm
http://forums.codeblocks.org/index.php?topic=1701.0
Title: Re: Building C::B in Windows
Post by: mmebane on January 30, 2006, 08:07:32 pm
Heh, I can't believe I missed that. Thanks.
Title: Re: Building C::B in Windows
Post by: killerbot on January 30, 2006, 09:16:00 pm
new installments on the cookbook are coming this week. Sorry, but been busy on debugging ;-)
Title: Re: Building C::B in Windows
Post by: mmebane on January 30, 2006, 09:55:40 pm
OK, I've got it compiled and everything is working nicely. Unfortunately, that bug seems to not be in console_runner, but in system(). :(
Title: Re: Bug in console_runner and proposed fix (was: Building C::B in Windows)
Post by: mmebane on January 30, 2006, 10:10:02 pm
Proposed fix for Windows. I don't know what to do for Linux, but this bug may not even exist in Linux.

Quick fix based on this (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/creating_processes.asp).

http://sourceforge.net/tracker/index.php?func=detail&aid=1419173&group_id=126998&atid=707418 (http://sourceforge.net/tracker/index.php?func=detail&aid=1419173&group_id=126998&atid=707418)
Title: Re: Bug in console_runner and proposed fix (was: Building C::B in Windows)
Post by: mmebane on February 02, 2006, 09:03:40 pm
Does anybody have any comments? Is there a better way to fix this, or is it a good solution?

Also, is this a Windows-only bug?
Title: Re: Bug in console_runner and proposed fix (was: Building C::B in Windows)
Post by: mmebane on February 03, 2006, 06:25:19 am
OK, I updated the patch to handle the return values correctly.
Title: Re: Bug in console_runner and proposed fix (was: Building C::B in Windows)
Post by: mmebane on February 03, 2006, 02:44:38 pm
The patch is now applied. Cool.