Loading *.pb file problem

Everything else that doesn't fall into one of the other PB categories.
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Loading *.pb file problem

Post by va!n »

I have some sources on my hd... one of my sources has the normal suffix .pb ... when i doubleclick this file, PB runs and the file will be open in the fileview window as hex... When i try to open the file via the menu and OpenFile... the same happens... when using a normal Editor, i can read the full source... so what the hell is going on there? (is it, becouse of some special chars in the datasection?) - Really very strange problem!
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: Loading *.pb file problem

Post by gnozal »

va!n wrote:I have some sources on my hd... one of my sources has the normal suffix .pb ... when i doubleclick this file, PB runs and the file will be open in the fileview window as hex... When i try to open the file via the menu and OpenFile... the same happens... when using a normal Editor, i can read the full source... so what the hell is going on there? (is it, becouse of some special chars in the datasection?) - Really very strange problem!
Maybe those sources have a #Null byte separating the source from the footer, and are therefore interpreted by the editor as binary.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

the strange thing is, even when i copy/paste the source to a new opened IDE window and save it.... and try to reload this source, the same thing happens... :(
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

What happens if you only copy a part of it?
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Your file must contain bytes outside of the printable character range (bytes 0-31, except newline and tab)
This is why it is detected as a binary file.
quidquid Latine dictum sit altum videtur
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

I also experience this when using original pb editor whenver I open irc core module of my problem. I also did copy then paste to editor.

But all its ok with jaPBe. :lol:
Post Reply