Search found 175 matches

by Tristano
Thu Apr 09, 2020 4:00 pm
Forum: Coding Questions
Topic: PB 5.72 Under Win 10: Many odd issues
Replies: 10
Views: 3115

Re: PB 5.72 Under Win 10: Many odd issues

Sorry to hear, I am running the 32-bit version on Windows 10 and have not experienced issues yet. This seems to confirm that problem emerges with code complexity, more than the single instructions. Code that works fine with Run+Debugger fails to compile with unreasonable "Syntax Error" (b...
by Tristano
Thu Apr 09, 2020 2:44 pm
Forum: Coding Questions
Topic: PB 5.72 Under Win 10: Many odd issues
Replies: 10
Views: 3115

PB 5.72 Under Win 10: Many odd issues

After updating from 5.71 to 5.72 I've started to experience a number of strange bugs with my project. Among the problems: Code that works fine with Run+Debugger fails to compile with unreasonable "Syntax Error" (both 32-bit and 64-bit) Trying to open a non-existing file (using #PB_Any) ret...
by Tristano
Wed Feb 19, 2020 1:13 am
Forum: General Discussion
Topic: ReadByte/ReadAsciiCharacter return value on error
Replies: 23
Views: 5971

Re: ReadByte/ReadAsciiCharacter return value on error

Anyhow, here are my tests and their results with the ReadByte() command: testVar=255 CreateFile(0, "test") ; Write our var as raw data to file: WriteData(0, @testVar, 1) ; Let's test reading a byte into a 'Byte' var... FileSeek(0, 0) u8.b = ReadByte(0) Debug "u8 = "+Str(u8) ; -> ...
by Tristano
Wed Feb 19, 2020 12:57 am
Forum: General Discussion
Topic: ReadByte/ReadAsciiCharacter return value on error
Replies: 23
Views: 5971

Re: ReadByte/ReadAsciiCharacter return value on error

BarryG,Since ReadByte() interprets a byte as an unsigned byte, it cannot return -1. The PB Documentation regarding ReadByte() presents it as: Number.b = ReadByte(#File) So, because of the .b type of the example, the reader is going to expect that the result would be treated as a signed byte (-128 t...
by Tristano
Sat Feb 15, 2020 4:34 pm
Forum: Feature Requests and Wishlists
Topic: File Library: add endianess flags
Replies: 7
Views: 2710

File Library: add endianess flags

It would be really useful to have an optional flag to deal with endianess in file read/write commands that deal with multi-byte data types. Examples: ReadDouble(#File, #big_endian) ReadLong(#File, #big_endian) WriteLong(#File, Number, #big_endian) etc., where the read values are adjusted to little e...
by Tristano
Sat Feb 15, 2020 4:22 pm
Forum: General Discussion
Topic: ReadByte/ReadAsciiCharacter return value on error
Replies: 23
Views: 5971

Re: ReadByte/ReadAsciiCharacter return value on error

Submitted a new feature request for the GetLastFileError(file) command proposed by @Sicro:

viewtopic.php?f=3&t=74627
by Tristano
Sat Feb 15, 2020 4:21 pm
Forum: Feature Requests and Wishlists
Topic: File Library: add GetLastFileError(file) command
Replies: 4
Views: 1991

File Library: add GetLastFileError(file) command

I hope these haven't been already asked for (a quick search didn't reveal any feature requests for these). It would be useful to have a new command to check whether the last file I/O operation on a give file ended in success or failure. Something like GetLastFileError(file) (simila to the C Standard...
by Tristano
Sat Feb 15, 2020 4:09 pm
Forum: General Discussion
Topic: ReadByte/ReadAsciiCharacter return value on error
Replies: 23
Views: 5971

Re: ReadByte/ReadAsciiCharacter return value on error

@miskox is right, I also found the error return description in the Documentation quite confusing, and had to search the forum to work out how it works. @Sicro, thanks for the solution, I wouldn't have thought of it. So, on the one hand the Documentation is correct when it mentions that it always ret...
by Tristano
Sat Feb 08, 2020 6:45 pm
Forum: Feature Requests and Wishlists
Topic: Fast string
Replies: 67
Views: 47904

Re: Fast string

Quite interesting, in this whole thread no one mentioned (nor tested) that PureBasic natively supports Fixed Strings ".s{Length}". I'v rarely seen fixed-size strings used in real case examples, and I wonder if it has any benefits over "normal" strings. Since the ".s{Length}&...
by Tristano
Sat Feb 08, 2020 6:07 pm
Forum: Feature Requests and Wishlists
Topic: W10 Edge is powered by Chrominium: create new WebGadget ?
Replies: 3
Views: 1623

Re: W10 Edge is powered by Chrominium: create new WebGadget

I had followed the news of the upcoming Edge engines (there are different variants right now, not just the Chromium one) but didn't realize that it had already moved from Windows Insider to current Win 10 updates — but it makes sense, since the recent update that broke the search box on the task bar...
by Tristano
Fri Jan 17, 2020 3:18 am
Forum: The PureBasic Editor
Topic: Compiling the PureBasic IDE on Windows
Replies: 23
Views: 21026

Re: Compiling the PureBasic IDE on Windows

The error: Error: Linker POLINK: warning: Invalid machine type in object 'NetworkSupport.obj'. POLINK: error: Unresolved external symbol '_Network_Listen'. seems to indicate that one of the C components is being compiled for x86 instead of x86_64 (the rest are just the consequences of the failed lin...
by Tristano
Fri Dec 20, 2019 1:37 pm
Forum: The PureBasic Editor
Topic: Compiling the PureBasic IDE on Windows
Replies: 23
Views: 21026

Re: Compiling the PureBasic IDE on Windows

Hi. Has anyone came across this ,and how did you solved it. make: *** No rule to make target `C:\..\..\PureBasicIDE/Libraries/Debugger/DebuggerInternal.h' , needed by `C:\..\..\PureBasicIDE/Build/x64/ide/NetworkSupport.obj'. Stop. Yes, I did encounter this error — I don't remember exactly why and h...
by Tristano
Wed Dec 18, 2019 9:39 pm
Forum: The PureBasic Editor
Topic: Compiling the PureBasic IDE on Windows
Replies: 23
Views: 21026

Re: Compiling the PureBasic IDE on Windows

Thanks for all the replies and dedication. I don't use Bash, is it also available on Windows 7 ? No not natively, but when you install Git for Windows it also installs a full Bash (the mintty version, which is the standard nowadays, used also by MSYS2, Microsoft WSL, and others). https://mintty.gith...
by Tristano
Mon Dec 16, 2019 6:10 pm
Forum: The PureBasic Editor
Topic: Compiling the PureBasic IDE on Windows
Replies: 23
Views: 21026

Re: Compiling the PureBasic IDE on Windows

Thanks for this thread, it’s much needed as anything relating to using MSVS products on Windows is always an endless nightmare of troubleshooting and hacks — one would expect that Visual Studio (one of the best MS products after XBox) should install flawlessly under Windows, but that’s not the case....
by Tristano
Sat Dec 14, 2019 10:27 am
Forum: Announcement
Topic: PureBasic OpenSource Projects
Replies: 118
Views: 101633

Re: PureBasic OpenSource Projects

PB Open Source Wiki: Now Openly Editable I would like to see all these technical details and tips in a common place, rather than buried in this announcement thread, if that's OK with everyone else. The maintainers of the PureBasic Open Source Projects have now unlocked the project Wiki for public e...