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

Internationalisation update

<< < (4/5) > >>

thomas:
Already committed that :)
The app is creating the directory at startup. It still needs a wxNullLog though (is in place already too), to catch the case of a user deleting the subfolder of the currently selected language.

After adding approximately the 25.000th wxNullLog to the code, I start asking myself why we don't add one wxNullLog to CodeBlocksApp::OnRun.
All wxWidgets messages are all bullshit anyway, nobody wants to read them, there is never anything useful in them. They only hinder your workflow by throwing up a modal box that tells you something which does not matter and which you don't want to know (and which sometimes is not true, but is really just wxWidgets' bad implementation, as in "path contains too many '..'").
We're probably saving considerable code size and execution time by removing all the many wxNullLogs and inserting one early at startup.
Or, is there anyone who actually wants to read them?

mandrav:

--- Quote from: thomas on July 02, 2007, 10:27:46 am ---Or, is there anyone who actually wants to read them?

--- End quote ---

The only legit message I 'm interested in seeing is when a plugin can't be loaded because of missing symbols. The popped-up message contains the function signature that couldn't be located.
But I 'm fine with removing everything and putting one wxLogNull in main app code: I could just temporarily remove it to see what I 'm interested in :).

Pecan:

--- Quote from: mandrav on July 02, 2007, 10:34:00 am ---
--- Quote from: thomas on July 02, 2007, 10:27:46 am ---Or, is there anyone who actually wants to read them?

--- End quote ---

The only legit message I 'm interested in seeing is when a plugin can't be loaded because of missing symbols. The popped-up message contains the function signature that couldn't be located.
But I 'm fine with removing everything and putting one wxLogNull in main app code: I could just temporarily remove it to see what I 'm interested in :).

--- End quote ---

If you're going to modify that section of code, could you do a DBGLOG() of that particular message or symbol that's missing.

Each time this happens, we have to comment out the two wxNullLog statements to view the missing symbol.

thanks

mandrav:

--- Quote from: Pecan on July 02, 2007, 01:29:23 pm ---
--- Quote from: mandrav on July 02, 2007, 10:34:00 am ---
--- Quote from: thomas on July 02, 2007, 10:27:46 am ---Or, is there anyone who actually wants to read them?

--- End quote ---

The only legit message I 'm interested in seeing is when a plugin can't be loaded because of missing symbols. The popped-up message contains the function signature that couldn't be located.
But I 'm fine with removing everything and putting one wxLogNull in main app code: I could just temporarily remove it to see what I 'm interested in :).

--- End quote ---

If you're going to modify that section of code, could you do a DBGLOG() of that particular message or symbol that's missing.

Each time this happens, we have to comment out the two wxNullLog statements to view the missing symbol.

thanks


--- End quote ---

Unfortunately I can't. I have tried to access the error message but it is not available...
So my solution is to comment-out those two wxLogNulls.
At least, with Thomas' proposal, we will only have to comment-out only one...

thomas:

--- Quote from: mandrav on July 02, 2007, 02:06:50 pm ---Unfortunately I can't. I have tried to access the error message but it is not available...
So my solution is to comment-out those two wxLogNulls.
--- End quote ---
From what I can see by looking at the wxWidgets sources, the function showing this error message

* is implemented under POSIX
* is entirely missing under Windows (cannot even find a declaration?)
* consists simply of a call to dlerror()
Thus, it would probably suffice to call dlerror() for Unices and FormatMessage(GetLastError()) for Windows, if you're interested in dumping the extended info to the debug log.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version