Search found 1761 matches

by SARG
Mar 15, 2024 13:00
Forum: Windows
Topic: How to color text created by CreateWindowExa
Replies: 18
Views: 753

Re: How to color text created by CreateWindowExa

As I wrote use richtextbox control. With that you can define font/size/color for each line.
by SARG
Mar 15, 2024 10:50
Forum: Windows
Topic: How to color text created by CreateWindowExa
Replies: 18
Views: 753

Re: How to color text created by CreateWindowExa

Not sure you can do that in simple textbox. It's ok to change the color for all the lines.
Use richtextbox control. Or search for a library which has this feature.
by SARG
Mar 09, 2024 15:38
Forum: Linux
Topic: FreeBASIC broken following OS upgrade; generates problematic .asm files...?
Replies: 21
Views: 2106

Re: FreeBASIC broken following OS upgrade; generates problematic .asm files...?

Hi,

I get the file but can you show the error message with the line number.
by SARG
Mar 08, 2024 9:38
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 269
Views: 24603

Re: Freebasic 1.20.0 Development

When try to compile below examples,the recent fbc64.exe version 1.2.0 crashed during compiling under windows 10 64bit,but fbc64 version 1.1 is fine. Are you sure of the working version ? with Version 1.10.1 (2023-12-24), I get the crash. The issue seems to come with these 2 files #include "tex...
by SARG
Mar 04, 2024 10:02
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 494
Views: 107782

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

Xusinboy Bekchanov wrote: Mar 04, 2024 8:00 After the latest changes in the compiler, the program no longer crashes in gas64, thank you very much.
Thank you for the report and the help you gave me via discord ;-)
by SARG
Mar 04, 2024 9:52
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 269
Views: 24603

Re: Freebasic 1.20.0 Development

Works only with 'gas' and 'gas64' that accept modifications in a section of constant data ( '.data section' ). I have already seen it : https://www.freebasic.net/forum/viewtopic.php?p=228206#p228206 Not completely true, with gas on Linux there is also a crash due to (in emit_x86.bas/hEmitVarConst) ...
by SARG
Feb 24, 2024 17:03
Forum: Projects
Topic: My game: Pfeilspiel TNG international
Replies: 1
Views: 212

Re: My game: Pfeilspiel TNG international

Some points to be corrected (French Web version tested):
- Qannuler ----> Annuler
- vous perdez 10 points --> vous GAGNEZ 10 points
by SARG
Feb 12, 2024 8:13
Forum: General
Topic: window closing/odd behavior
Replies: 3
Views: 236

Re: window closing/odd behavior

Compiling with -gen gas64 you would get this warning : \test2.bas() warning 24(3): Variable too large for stack, consider making it SHARED proc=main STACK OVERFLOW, review array size, use redim/shared or increase stack size The stack overflow is detected at compilation time. This feature is only ava...
by SARG
Feb 11, 2024 18:08
Forum: General
Topic: a question for SARG
Replies: 7
Views: 313

Re: a question for SARG

Could you verify that inverting the arguments no warning.
by SARG
Feb 11, 2024 16:28
Forum: General
Topic: a question for SARG
Replies: 7
Views: 313

Re: a question for SARG

Replace by something like that : calloc (sizeof (a) + 0, b) We will not break old code. What I found : -Wcalloc-transposed-args Warn about calls to allocation functions decorated with attribute alloc_size with two arguments, which use sizeof operator as the earlier size argument and don’t use it as ...
by SARG
Feb 11, 2024 13:51
Forum: General
Topic: a question for SARG
Replies: 7
Views: 313

Re: a question for SARG

Hi srvaldez
Just change movsd by movsl.
It has been done for gfxlib2 (august 2023).
Check in all files if no other cases.
by SARG
Feb 07, 2024 15:04
Forum: General
Topic: heap corruption when using C library
Replies: 11
Views: 533

Re: heap corruption when using C library

Is it correct for testing to use this : #include "DecFloatC.bi" Dim Shared As Decfloat x print "end" If yes, there is an access violation that seems arises with the address of NUM_DWORDS Constructor Decfloat ( ) si2fp(this.DecNum, 0, NUM_DWORDS) End Constructor Not related but wh...
by SARG
Feb 07, 2024 13:00
Forum: General
Topic: heap corruption when using C library
Replies: 11
Views: 533

Re: heap corruption when using C library

srvaldez wrote: Feb 07, 2024 9:59 you can't use redim for non-array variables
I suppose that you want to say something else as redim is to be used with arrays.

Not sure it's important : in bi file there is 'as long exponent' but in C file 'uint32_t exponent'
by SARG
Jan 31, 2024 11:00
Forum: Windows
Topic: STRING Join BUG
Replies: 4
Views: 1281

Re: STRING Join BUG

yes a bit long due to string concatenation in a temporary variable then assignment of this string in c string.
And it seems there is also a memory leak.
by SARG
Jan 31, 2024 10:50
Forum: Windows
Topic: Memory Leak UTF-8 mode Select Case Case
Replies: 10
Views: 957

Re: Memory Leak UTF-8 mode Select Case Case

The memory leak is due to a missing delete for the temporary Wstrings (created at each loop and case) used when testing 'c' string and wstr("a"). If the CASE is true the delete occurs but not if false. Not the same issue with 'string join bug' even it seems there is also a memory leak (Nee...