-
note: This error does not trip for "const a=chr(1)"
error information as follows: (refer to attached file)
Command executed:
"C:\Program Files\FreeBASIC\fbc.exe" "C:\code\const.bas"
Compiler output:
C:/code/const.bas(2) error 11: Expected constant, b in 'const b=chr(0)'
Results:
Compilation failed
System:
FBIde: 0.4.6
fbc: FreeBASIC Compiler - Version 0.20.0 (08-10-2008...
2009-12-29 21:54:20 UTC by alias_jargon
-
counting_pine committed revision 5274 to the FreeBASIC Compiler SVN repository, changing 2 files.
2009-12-21 19:53:26 UTC by counting_pine
-
I thought it over and maybe you could add a compiler option "wait for a keypress after critical error" or so to prevent those kind of situation?.
2009-12-17 15:12:15 UTC by jonatankoot
-
https://sourceforge.net/tracker/?func=detail&aid=2914509&group_id=122342&atid=693196
libfb_file_input_tok.c::fb_FileInputNextToken()
When reaching the 4096 char limit, it's breaking out of the loop, and the 4095th char is "unread" (i.e. stored in the "put-back-buffer" of the file desc), from where it will be read again during a later call. This should happen to the 4096th char though; the...
2009-12-15 20:58:26 UTC by dkls
-
You are right, solution was so simple, sorry for bothering. As they say, man learns all his life and dies stupid. If you could delete this...
2009-12-15 17:49:48 UTC by jonatankoot
-
I can't reproduce the behaviour I think you're describing - i.e. crashing (as distinct from just closing) without the error message.
If you are running from an IDE, it may be that the window is closing before you can read the message, because obviously the Sleep won't be reached. If that's the case, try running the compiled program from a command window, or if you're using FBIde, use the...
2009-12-15 07:00:26 UTC by counting_pine
-
Use of the input command with strings greater than 4095 bytes in size will result in the 4096th character being repeated in the subsequent input, leading to repetition of character and corruption of the data input. This affects both INPUT and INPUT# - Use of the =INPUT(n,#) command is a workaround.
Detailed in forum - http://www.freebasic.net/forum/viewtopic.php?t=14866
This happens under...
2009-12-15 01:10:43 UTC by dkitson
-
when I try to compile program
Dim a(10) As Integer
For i As Integer=1 To 11
a(i)=7
Next i
Sleep
it crashes with no error "Array out-of-bounds" message, though statement a(11)=2 instead of the for/next loop generates correct error.
2009-12-13 10:55:53 UTC by jonatankoot
-
bug: http://sourceforge.net/tracker/?func=detail&aid=2870564&group_id=122342&atid=693196
FB_SYMBATTRIB_SUFFIXED has the same value as FB_SYMBATTRIB_FUNCRESULT, so symb-var.bas::symbGetVarHasC/Dtor will return FALSE for every suffixed var, which is bad for varlen strings...
Look at the end of FB_SYMBATTRIB_* enum in symb.bi (with the "reuse - take care" comment). The patch simply gives...
2009-11-20 20:53:10 UTC by dkls
-
The bug can also be seen in this example:
-------------------------------
sub s(a() as integer)
end sub
dim as integer a(-2 to -1)
s(a())
--------------------------------------
The array is treated as if ellipsis were used (as in "a(-2 to ...)"), because the upper bound is -1, which is also the internal "temporary" value to designate ellipsis in the array declaration.
Since the array is seen...
2009-11-20 01:32:44 UTC by dkls