Search found 5579 matches

by counting_pine
Jul 22, 2021 14:11
Forum: Documentation
Topic: SELECT CASE error
Replies: 9
Views: 349

Re: SELECT CASE error

Good find. An unhelpful error message might be worthy of a bug report, rather than just a documentation note.
by counting_pine
Jul 14, 2021 13:30
Forum: Windows
Topic: Hiding data "behind" files on NTFS
Replies: 1
Views: 153

Re: Hiding data "behind" files on NTFS

Interesting, I didn’t know most of that…
You could use it to hide a cryptographic signature of the file to prevent tampering.
But on the other hand, I guess you could also just keep the signature in plain view without much harm..
by counting_pine
Jul 03, 2021 9:21
Forum: Community Discussion
Topic: FreeBASIC 1.08.1 and 1.09.0 Development
Replies: 21
Views: 1549

Re: FreeBASIC 1.08.1 and 1.09.0 Development

Hi. Just to say, I’ve split the Asm keyword discussion into its own thread: viewtopic.php?f=17&t=29480
by counting_pine
Jun 24, 2021 13:33
Forum: General
Topic: Current directory and current drive. Is there such a thing?
Replies: 17
Views: 645

Re: Current directory and current drive. Is there such a thing?

caseih wrote:Why does chdir to T: bring up T:\temp and then two lines later chdir to T: goes to T:\? What am I missing?

That’s probably a mistake, I made some changes manually. I’ll check in a bit..

EDIT: Sorry, I confused adeyblue's output for mine.
by counting_pine
Jun 22, 2021 13:57
Forum: Game Dev
Topic: Tetris, but with hexagons
Replies: 10
Views: 589

Re: Tetris, but with hexagons

Looking good. I think that it's possible to complete a left and right diagonal line at the same time, thus removing a 'V' shape. I think the only logical response in that case is to shift everything above downward. EDIT: never mind, I thought you were thinking of doing diagonal shifts, which wouldn'...
by counting_pine
Jun 22, 2021 13:48
Forum: General
Topic: Current directory and current drive. Is there such a thing?
Replies: 17
Views: 645

Re: Current directory and current drive. Is there such a thing?

I did a quick test on Win10, and the program seems happy to remember the Current Directory across multiple drives. chdir("L:") changes to that drive's current directory, chdir("L:\") changes to the root of that drive. sub test(path as string) chdir(path) print "cd " &am...
by counting_pine
Jun 15, 2021 13:32
Forum: Beginners
Topic: Distortion when moving across the screen sprite (Raspberry 4B))
Replies: 67
Views: 1493

Re: Distortion when moving across the screen sprite (Raspberry 4B))

What do these distortions look like? Can you provide a screenshot, or failing that, a photo of the screen?
by counting_pine
Jun 06, 2021 15:39
Forum: Game Dev
Topic: Tetris, but with hexagons
Replies: 10
Views: 589

Re: Tetris, but with hexagons

Looks nice! It might be slightly neater if you use slightly irregular hexagons and 2:1 gradients on the lines. I think I hit one instance where I managed to overlap existing tiles with a new piece. I'm not sure exactly how, but it probably had something to do with rotation, and it might have been ne...
by counting_pine
Jun 06, 2021 8:22
Forum: Community Discussion
Topic: FreeBASIC 1.08.0 Release Discussion (June 2021)
Replies: 73
Views: 4057

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Amazing work Jeff!
Thanks also to everyone else who has contributed to this release.
by counting_pine
May 16, 2021 11:46
Forum: Linux
Topic: malloc(): invalid size (unsorted)
Replies: 20
Views: 1991

Re: malloc(): invalid size (unsorted)

N3trunn3r wrote:Lot's of great advice! Thanks to everyone :) , I found the error.

Great!
What did the error turn out to be? Did you learn anything useful while finding it?
by counting_pine
May 14, 2021 13:57
Forum: Windows
Topic: Where is Print output?
Replies: 11
Views: 1148

Re: Where is Print output?

Yeah, having the option to keep the window open after the program has finished is often useful. More reliable and cleaner than putting Sleep at the end of runnable code.
It was achievable in FBIDE by tweaking the Run command.
by counting_pine
May 11, 2021 10:11
Forum: Linux
Topic: malloc(): invalid size (unsorted)
Replies: 20
Views: 1991

Re: malloc(): invalid size (unsorted)

I could put in some print statement to find the culprit That's the best solution. Put it before and after all instructions that access allocated memory. I think this would only be the best solution if you wanted to minimise the amount of learning you have to do. Debuggers can be very useful and hel...
by counting_pine
May 09, 2021 15:08
Forum: Linux
Topic: malloc(): invalid size (unsorted)
Replies: 20
Views: 1991

Re: malloc(): invalid size (unsorted)

Searching the error seems to reveal it's a common error in C programming. It looks like it means the program is going out of bounds in allocated memory - maybe a string or dynamic array, or something you've allocated yourself. (It's probably not an array though, if -exx doesn't catch it.) A debugger...
by counting_pine
May 09, 2021 12:44
Forum: Tips and Tricks
Topic: remove duplicates intries in an array
Replies: 25
Views: 1774

Re: remove duplicates intries in an array

I guess if there are O(n^2) comparisons and O(n) assignments, then the difference is likely to be negligible in many cases, except where most strings are long (comparable in size to the array length), and “obviously” different (i.e. different lengths or prefixes).
by counting_pine
May 08, 2021 14:14
Forum: Tips and Tricks
Topic: remove duplicates intries in an array
Replies: 25
Views: 1774

Re: remove duplicates intries in an array

Another potential speedup, although slightly unintuitive, would be to use Swap instead of assignments to reorder the array. Swapping string descriptors leaves the string data unchanged, and saves having to create or destroy new strings. In conjunction with the string comparison function, that should...

Go to advanced search