Search found 1644 matches

by Imortis
Jul 28, 2021 12:42
Forum: Tips and Tricks
Topic: romuTrio64 PRNG
Replies: 7
Views: 255

Re: romuTrio64 PRNG

Conditions to post here (in this thread) are: everyone, except: d..r..[...], jj... and S...F... (personae's non grata here) I had an inkling of a bury the hatchet week, but after seeing mrSwiss's approach (personae's non grata here), I have changed my mind. Great idea. My list would include many hi...
by Imortis
Jul 13, 2021 0:42
Forum: Projects
Topic: VFB IDE document translation(2021/7/13)
Replies: 1
Views: 100

Re: VFB IDE document translation(2021/7/13)

Moved to projects as Documentation is for FBC documentation only.
by Imortis
Jul 05, 2021 15:43
Forum: Beginners
Topic: ld.exe cannot find...
Replies: 12
Views: 2149

Re: ld.exe cannot find...

satman1w looks like BOT to me This looks nothing like a bot to me. Bots often reply to things with no context to what came before. This is just a necro-post. @satman1w I think that you should be a member of this forum for longer than one day before making judgements on another member's post written...
by Imortis
Jun 19, 2021 3:03
Forum: Windows
Topic: DXGI BY Freebasic
Replies: 3
Views: 249

Re: DXGI BY Freebasic

Moved.
by Imortis
Jun 16, 2021 20:08
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))

At the top of your code add: #include once "fbgfx.bi" Using FB After your screenset command add this: Screencontrol SET_GL_2D_MODE, OGL_2D_MANUAL_SYNC You could also use: Screencontrol SET_GL_2D_MODE, OGL_2D_AUTO_SYNC Which does not require the Flip command to be in place. #include once &...
by Imortis
Jun 16, 2021 13:35
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))

At the top of your code add:

Code: Select all

#include once "fbgfx.bi"
Using FB


After your screenset command add this:

Code: Select all

Screencontrol SET_GL_2D_MODE, OGL_2D_MANUAL_SYNC


You could also use:

Code: Select all

Screencontrol SET_GL_2D_MODE, OGL_2D_AUTO_SYNC


Which does not require the Flip command to be in place.
by Imortis
Jun 16, 2021 13:25
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))

He's seeing tearing, which is quite common on X11 on Linux. The top part of the rectangle appears sheared off (offset slightly) from the bottom part of the rectangle, and kind of flickers. The rectangle is being redrawn by FB while X11 is displaying it. This happens because X11 lacks a vertical syn...
by Imortis
Jun 08, 2021 16:02
Forum: Beginners
Topic: Is FreeBASIC good for beginners to progrmaming?
Replies: 95
Views: 2698

Re: Is FreeBASIC good for beginners to progrmaming?

There are not a whole lot of tutorials around to learn from. If you learn well from reading manuals and looking at code, it should be just fine. If you need tutorials and videos to learn, then not so much.
by Imortis
Jun 07, 2021 12:30
Forum: Beginners
Topic: This keyword suddenly not declared?
Replies: 6
Views: 262

Re: This keyword suddenly not declared?

This code:

Code: Select all

function lookfor_integer(byval label as string) as integer

Needs to be changed to this code:

Code: Select all

function cfgReader.lookfor_integer(byval label as string) as integer


It is failing because the compiler does not see it as part of the type cfgReader.
by Imortis
Jun 02, 2021 23:48
Forum: General
Topic: Odd behavior when running a compiled .bas file
Replies: 2
Views: 148

Re: Odd behavior when running a compiled .bas file

Have you tried compiling with runtime error checking turned on? The compile command line would need the "-exx" option added. That may give a bit better info on what the issue it.

Other than that, it is difficult to say what the issue might be without some code that duplicates the issue.
by Imortis
Jun 02, 2021 17:20
Forum: General
Topic: FB RANDOMIZE() and RND() seed parameters ignore the mantissa
Replies: 30
Views: 1029

Re: FB RANDOMIZE() and RND() seed parameters ignore the mantissa

More generally, after a copy of the user seed argument (passed by value) into a local Double variable, the result is then casted to a Ulong before use. I shouldn't think that most users would be interested in what is happening internally and may think, after reading that, "So what?". Usin...
by Imortis
May 18, 2021 16:20
Forum: Linux
Topic: malloc(): invalid size (unsorted)
Replies: 20
Views: 1990

Re: malloc(): invalid size (unsorted)

You want to ban Assembly for FreeBasic? I have no desire to ban assembly for freeBASIC. FB has the "ASM/END ASM" block for including assembly in FB source code. Go ahead, but please explain why you are so extremely tolerant with all the C/C++ crap that has turned FB into a caricature of C...
by Imortis
May 16, 2021 0:23
Forum: Linux
Topic: malloc(): invalid size (unsorted)
Replies: 20
Views: 1990

Re: malloc(): invalid size (unsorted)

The zip I downloaded included the .asm file. That is the code I was referring to. Yes it also contains an exe. The tool itself is appreciated. As for your comparison to the IDEs: of the ones I know, only one is written in anything other than FB. The maintainer for that does not answer questions abou...
by Imortis
May 15, 2021 23:31
Forum: Linux
Topic: malloc(): invalid size (unsorted)
Replies: 20
Views: 1990

Re: malloc(): invalid size (unsorted)

Yes indeed, FbMemCheck is one way to deal with it. You delegate allocating and freeing memory to a routine that can, on request, do additional checks. Its use is limited because the problem is usually not the allocation but rather the writing beyond the allocated memory - and that happens elsewhere...
by Imortis
May 15, 2021 13:00
Forum: Linux
Topic: malloc(): invalid size (unsorted)
Replies: 20
Views: 1990

Re: malloc(): invalid size (unsorted)

Yes indeed, FbMemCheck is one way to deal with it. You delegate allocating and freeing memory to a routine that can, on request, do additional checks. Its use is limited because the problem is usually not the allocation but rather the writing beyond the allocated memory - and that happens elsewhere...

Go to advanced search