Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

How can I biuld codeblocks with codeblocks on linux

<< < (3/8) > >>

oBFusCATed:
I tried to log with LogError, but it crashed :(

ollydbg:

--- Quote from: oBFusCATed on May 30, 2009, 09:55:02 am ---I tried to log with LogError, but it crashed :(

--- End quote ---

No, you should use this way I wrote in wiki page:

http://wiki.codeblocks.org/index.php?title=Code_Completion_Design#Debug_Log_output

oBFusCATed:
DebugLog crashed too :(

I've taken a look at the code and I think the crash is caused by a race condition.
I could not find any thread safety protection mechanisms for the logging class.

There are ::temp_string and ::newline_string which are global.
I've replaced them with local variables, but again got a crash, this time it was AppendText.
Do you know if this method can be called from two threads simultaneously?
I've added a wxMutex, but still got the crash

ollydbg:
In Windows, I didn't encounter any crash. I'm not sure this DebugLog can be called from different thread, but it seems it can. :D

You need a more sophisticated dev to tell you the details. :D

oBFusCATed:
It might be something different in wxGTK, than wxMSW (or its proper name). So you are lucky.

Do someone now if I can disable the precompiled header?
I'm 100% sure that it is the cause of the broken debugging and strange error messages that I receive:


--- Code: ---In file included from /home/obfuscated/projects/codeblocks/brances/wxfnb_to_wxaui/src/include/sdk_precomp.h:10:
include/editorbase.h: In member function ‘wxArrayString Parser::FindFileInIncludeDirs(const wxString&, bool)’:
include/editorbase.h:1092: error: ‘_1’ was not declared in this scope

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version