Search found 1641 matches

by Imortis
Jun 19, 2021 3:03
Forum: Windows
Topic: DXGI BY Freebasic
Replies: 3
Views: 186

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: 1122

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: 1122

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: 1122

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: 2232

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: 222

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: 110

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: 839

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: 1414

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: 1414

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: 1414

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: 1414

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 07, 2021 20:40
Forum: General
Topic: openfilename
Replies: 25
Views: 969

Re: openfilename

Imortis, OP thought that M$ had abandoned OpenFileName in 64-bit land. I just demonstrated that this is not the case. I am well aware. It is lucky that the user in question understands ASM, but if anyone else has the same question, they may not have the same skillset. Code posted in the freeBASIC f...
by Imortis
May 07, 2021 18:37
Forum: General
Topic: openfilename
Replies: 25
Views: 969

Re: openfilename

Problem is Micosoft made Getopenfilename and getsavefilename redundant from Windows Vista, so as far as I can see there is no 64-bit version. 64-bit OpenFileName While this is probably fantastically useful, it is not useful to the original poster as it does not answer the question he asked. If this...
by Imortis
May 02, 2021 2:32
Forum: General
Topic: Dodicat Zlib
Replies: 90
Views: 5031

Re: Dodicat Zlib

deltarho[1859] wrote:I don't mean any disrespect to imortis but I get the impression that his authority is not as great as coderJeff or fxm even though he has been a member for longer than either of them.


You would have been correct. I did not have much in the way of authority before. coderJeff has now fixed this.

Go to advanced search