Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: tiwag on March 30, 2006, 10:28:51 am

Title: Batchbuilds broken ?
Post by: tiwag on March 30, 2006, 10:28:51 am
since a few revisions, i can't use batchbuild anymore,
it errors out with access to 0x00000000

CB svn rev 2272 ... 2275, unicode, wx262, OS: WinXP SP2

has anyone noticed this too ?

[edit]
further info: it crashes at this line :
Quote from: plugins/compilergcc/compilergcc.cpp:2153
    m_BuildingProjectIdx = m_BuildDeps[m_BuildDepsIndex];

Title: Re: Batchbuilds broken ?
Post by: thomas on March 30, 2006, 11:12:35 am
Works fine in 2266, crashes in 2269.

EDIT: Can only speculate it is due to the changes to app.cpp in 2267 (delay opening of DDE files to work around "cannot find..." bug). Don't know the reason though.
None of the other revisions in question changed anything even remotely related to building, projects, or files, however.

Once again, I think we should abandon DDE entirely and create a solution that works without hacks.
Title: Re: Batchbuilds broken ?
Post by: sethjackson on March 30, 2006, 03:03:06 pm
Once again, I think we should abandon DDE entirely and create a solution that works without hacks.

Second that.  :D
Title: Re: Batchbuilds broken ?
Post by: mandrav on March 31, 2006, 12:48:08 pm
Fixed, thanks.
Btw, it had nothing to do with DDE...
Title: Re: Batchbuilds broken ?
Post by: thomas on March 31, 2006, 01:18:44 pm
Not that it matters, but I wonder what makes you say so...

Maybe my interpretation is inaccurate, but
- the problem appeared right after a workaround to make DDE work was introduced
- the bugfix cosists of setting s_Loading and calling DelayLoadDdeFiles()
- both s_Loading and DelayLoadDdeFiles() have to do with a DDE workaround

To me, it seems justified to say that DDE is the root of evil for many of your problems. Maybe not directly, but indirectly, caused by the workarounds which are necessary to make DDE behave.

Anyway, as said in my other post, I don't have the time to properly implement an alternate IPC, even though I believe it would be a good idea :(
Still waiting for those 35 volunteers from the community to step forward...
Title: Re: Batchbuilds broken ?
Post by: mandrav on March 31, 2006, 01:33:44 pm
Not that it matters, but I wonder what makes you say so...

Actually the function DelayLoadDdeFiles is mis-named. It should be DelayLoadFiles, so no connection with DDE ;)
And the bug in question was that I had moved the files loading to the end of the app creation, but the batch was trying to run before loading the files.
Title: Re: Batchbuilds broken ?
Post by: tiwag on March 31, 2006, 01:35:07 pm
Fixed, thanks.
Btw, it had nothing to do with DDE...
thanks too
Title: Re: Batchbuilds broken ?
Post by: TheNullinator on March 31, 2006, 04:33:28 pm
Actually the function DelayLoadDdeFiles is mis-named. It should be DelayLoadFiles, so no connection with DDE ;)

Yeah, I noticed that when looking through the code earlier.  It doesn't make much sense to have a Windows specific name when it's not inside a __WXMSW__ conditional block.