Is this a Bug in 3.93 Editor?

Working on new editor enhancements?
nessie
User
User
Posts: 60
Joined: Mon Jul 07, 2003 1:19 pm
Location: Glasgow / Scotland
Contact:

Is this a Bug in 3.93 Editor?

Post by nessie »

When I get to line 960 in the editor, every line after that is double spaced !! I'm not sure if I've done something wrong or if this is a bug, which is why I've put it here
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Wait for IDE2. See the new linux-editor.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

@GPI:
You will continue developing jaPBe, do you ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

gnozal wrote:@GPI:
You will continue developing jaPBe, do you ?
i don't know why i should quit.

but at the moment i play world of warcraft....

(buy this game only, when you have much free time...)
User avatar
geoff
Enthusiast
Enthusiast
Posts: 128
Joined: Sun Apr 27, 2003 12:01 am
Location: Cornwall UK
Contact:

Post by geoff »

GPI wrote:Wait for IDE2. See the new linux-editor.

What is IDE2?

I have one large program that I have to break into 4, 60k chunks to stop the editor crashing. Will IDE2 solve this problem?

Please don't tell me to use JaPBe or whatever. I prefer simplicity and reliability to functionality, and I don't want to learn something new.
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Post by NoahPhense »

Really? The current editor blows out at 60k ?

I wonder what the largest chunk of data the fasm side can take before
crapping out?

- np
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post by tinman »

NoahPhense wrote:Really? The current editor blows out at 60k ?
It seems to depend on your version of the rich edit control in Windows. I've just loaded a 1.55MB source, and while it was slow it seemed to work. That was WinXP, geoff uses Win98 IIRC. The code for loading the source goes as follows:

Code: Select all

    FileLength = Lof()
    TextBuffer = LocalAlloc_(#LMEM_ZEROINIT, FileLength+10)
    
    ReadData(TextBuffer, FileLength)
    CloseFile(#READFILE_LOADSOURCECODEREAL)
I don't know whether LocalAlloc_() has some restrictions like only being able to allocate a single continuous page (that would be your 64k too).

@geoff: freak has been working on a new editor for the linux version of PB which is based on the Scintilla control (the same one that GPI has used in jaPBe). I don't know how complex it is to use though, or whether the new IDE has similar functionality to jaPBe.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
eevee
User
User
Posts: 69
Joined: Sat Jan 08, 2005 6:24 pm
Location: UK

Post by eevee »

60k chunks to stop the editor crashing
This is a problem I have. Ever since I installed 3.93 BETA, PureBasic has been unuseable in my Win98SE machine. No other programs seem to be affected.

Problems seem to happen by just simply editing and also when I grab and try to run some of the source examples given in this forum. These examples are nowhere near the 60k size although my code is and in the examples, I am of course hitting the compile button.

Updating to 3.93 release did not cure the problems. Thus I think that something has been upset by the Beta version within Windows itself. I wonder what registry entries PB makes??

If I boot up to Win2000, no problems arise or have ever arisen.
Regards,

Ernest
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> I wonder what registry entries PB makes??

Nothing that affects the PC. I've done clean installs of Windows and then
gone to my PureBasic folder and it works fine, with no Registry entries.
I'm not 100% sure, but I think the only Registry entries are to associate
.pb files with PureBasic.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
geoff
Enthusiast
Enthusiast
Posts: 128
Joined: Sun Apr 27, 2003 12:01 am
Location: Cornwall UK
Contact:

Post by geoff »

It seems to depend on your version of the rich edit control in Windows. I've just loaded a 1.55MB source, and while it was slow it seemed to work. That was WinXP, geoff uses Win98 IIRC. The code for loading the source goes as follows:
Maybe it is associated with the rich edit control, but the editor used to work properly before recent releases. I think 3.89 was the last one that worked properly.

I use Windows Me and Windows 98 on different machines. Both work properly with the old version of PB but neither work properly with PB3.93

I had to update to PB3.93 because of other bugs in earlier versions. I have good reasons not to update my OS to XP at the moment, so I have to live with this problem. However, I think PB should work properly with all recent versions of the OS, not just XP. I think this basic operation is more important than some of the unessential functionality increases we have seen recently. I wish Fred felt likewise.
Post Reply