News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

The 28 March 2009 build (5489) is out.

Started by killerbot, March 28, 2009, 08:07:46 PM

Previous topic - Next topic

Jenna

Quote from: Outis on March 30, 2009, 06:58:58 PM
I'm running Windows XP. As I said before, I don't know which file under which circumstances caused the crash. There were two crashes within two hours, one after I closed a single file (no I don't know which on of a dozen, damn :( ) and one after closing the whole project. Perhaps I can tell you more after the next crash  :|

There might be (it's not sure) a crashlog in the directory, where C::B's executable is.

If I remember right, it's called "codeblocks.rpt" on windows (not 100% sure about the name) and its timestamp should be the time of the last crash.

If it's not too big, you can attach it to a post, if it's too big, yu can send it to me via mail (my nickname at codeblocks dot org).

"my nickname" is not meant literally, of course.

Outis

The file exists, but the timestamp is NOT the time of the last crash. (Not the change of my last post)


geiermeier

When loading files with very long lines, the horizontal scroll bar doesn't reflect the true length of the line(s). Using the scroll bar, one can only scroll for, say some hundred columns. But then it is possible to go further to the right with the cursor keys or [END]. When doing so, the scroll bar adjusts it self to the reached length.

ollydbg

Quote from: geiermeier on April 01, 2009, 02:18:21 PM
When loading files with very long lines, the horizontal scroll bar doesn't reflect the true length of the line(s). Using the scroll bar, one can only scroll for, say some hundred columns. But then it is possible to go further to the right with the cursor keys or [END]. When doing so, the scroll bar adjusts it self to the reached length.
How many lines in your source code? very long lines? Could you add this file as an attachment for testing?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

vchavezp

Please Help..
I've installed this Nightly Build and wxPack...

I try to generate a wxWidget Project
but when i try to build i get this message:

#include "wx/msw/wx.rc"

No such file or directory.



I figure out that wx is the directory where wxWidgets are installed. But, there's no msw directory in there.

I tried to create it there and put an wx.rc text file in there and it didn't work.


Where should this file wx.rc be located and what has to be in it?


thank you for your help.


V.Chavez


Seronis

C:\dev\wxMSW\wxWidgets-2.8.7\include\wx\msw

I believe you are just assigning the wrong include path. My path layout for example is listed above.  'wx' is an explicite folder inside the wxwidgets heirarchy.  In my case i have set

C:\dev\wxMSW\wxWidgets-2.8.7\include

as an entry in the compiler include paths and i find the given file without issue.  HTH


Quote from: vchavezp on April 01, 2009, 10:18:56 PM
Please Help..
I've installed this Nightly Build and wxPack...

I try to generate a wxWidget Project
but when i try to build i get this message:

#include "wx/msw/wx.rc"

No such file or directory.

I figure out that wx is the directory where wxWidgets are installed. But, there's no msw directory in there.
I tried to create it there and put an wx.rc text file in there and it didn't work.
Where should this file wx.rc be located and what has to be in it?
thank you for your help.

V.Chavez

ollydbg

Quote from: vchavezp on April 01, 2009, 10:18:56 PM
Please Help..
I've installed this Nightly Build and wxPack...

I try to generate a wxWidget Project
but when i try to build i get this message:

#include "wx/msw/wx.rc"

No such file or directory.



I figure out that wx is the directory where wxWidgets are installed. But, there's no msw directory in there.

I tried to create it there and put an wx.rc text file in there and it didn't work.


Where should this file wx.rc be located and what has to be in it?


thank you for your help.


V.Chavez



In my 2.8.9, it was located in D:\wxWidgets-2.8.9\include\wx\msw
But I'm not using a wxPack, I build this library my self. It is simple. see here:

http://wiki.codeblocks.org/index.php?title=Using_wxWidgets
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

geiermeier

#23
Quote from: ollydbg on April 01, 2009, 02:59:11 PM
How many lines in your source code? very long lines? Could you add this file as an attachment for testing?

I use CB for editing some (partly) binary files, too. I like the way Scintilla displays the unprintable ascii characters.

It's the same length as the horizontal scrollbar is initialized to with a blank file. It's about 280 characters.
That's long enough for editing (the usual) source code. But I think the scrollbar should initialize correctly for all files.

To reproduce: just create a new file with more than 300 characters in one line; that worked for me.

I'm using CB on XP, btw. The current nightly.

rhf

@ geiermeier

Just a thought. I occasionally use SciTE (Scintilla Text Editor) and had the same problem with line lengths.
The fix was to edit the SciTEGlobal.properties file. Specifically, to change the property
horizontal.scroll.width=2200 to say horizontal.scroll.width=10000.
I don't know if this is the same in the Scintilla editor used in CB, but one of the developers can probably help out.

lobby

#25
i already had this problem with the horizontal scrollbar, sometimes it is not large enought to go to the end of the line
(easy to reproduce as geiermeier said)

Jenna

#26
Scrollbar width:

I prepare a patch to use the ScrollWidthTracking feature of (wx)Scintilla.

This feature sets the ScrollWidth automatically according to the longest line seen.

I will make this feature optional (and disabled by default), because the scintilla-devs have disabled it for performance reasons:

Quote from: wxSintilla docuFor performance, Scintilla does not measure the width of the document to determine the properties of the horizontal scroll bar. Instead, an assumed width (2000 pixels) is used.

I hope I find the time this afternoon or evening (UTC +02:00).

EDIT:

committed (svn r5496)

my522198969

#27
How to turn the language simplified Chinese? Who can give me a sinicizing document?

- replaced non-english content by translation with babelfish.altavista.com -

Jens

killerbot

only English language. In case this would happen again, we will have to close your account.

ollydbg

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.