Search found 3539 matches

by MrSwiss
Sep 30, 2020 20:13
Forum: Community Discussion
Topic: HTTP ERROR 500
Replies: 4
Views: 114

Re: HTTP ERROR 500

badidea wrote:Anyone else having these issues at the moment?

Nope, no problems here. Probably check first with your local ISP?
by MrSwiss
Sep 29, 2020 14:24
Forum: General
Topic: Execute function stored as string literal
Replies: 15
Views: 315

Re: Execute function stored as string literal

Roland Chastain wrote:What is the program supposed to do?

Well, CMS stands for [C]ontent [M]anagement [S]ystem, used on a Web-Server typically.
This lets you easily update "the content served" without changing the code (HTML/CSS/Scripts).
by MrSwiss
Sep 28, 2020 23:33
Forum: General
Topic: Execute function stored as string literal
Replies: 15
Views: 315

Re: Execute function stored as string literal

I just love iguanas (my *virtual companeros during hurricane patricia striking Mexico in 2015). *virtual = the hotel rooms walls had lots of metal-iguanas Well, looks good to me "as-is". With more different modules you might consider using callback procedures ... (in thread "Wiki impo...
by MrSwiss
Sep 28, 2020 23:00
Forum: General
Topic: Execute function stored as string literal
Replies: 15
Views: 315

Re: Execute function stored as string literal

is something way more complex (send output based on a env variable) executing an entire program, but I don't want to select-case every possible text How about using a string array instead of a 'endless' select case ? Your env. number = array index ... (strings could even be loaded from file, more m...
by MrSwiss
Sep 28, 2020 22:31
Forum: General
Topic: Mapping from fbc function to C function in the source code
Replies: 8
Views: 319

Re: Mapping from fbc function to C function in the source code

If so, just curious, do you have any idea why the team chooses fbcunit as their test framework instead of using C-based framework such as CUnit? That one is easy to answer: in the early days of FBC CUnit was used for testing. (Up to and including ver. 1.05.0 AFAIK.) Since it got 'old' (probably lac...
by MrSwiss
Sep 28, 2020 21:53
Forum: General
Topic: Execute function stored as string literal
Replies: 15
Views: 315

Re: Execute function stored as string literal

In FB you simply write (procedure) Identifier(argument-list):

Code: Select all

Sub PrintMSG(ByVal MSG As String)
    Print MSG
End Sub

PrintMSG("Hi, there")
PrintMSG("current time: " + Time)
PrintMSG("current date: " + Date)

#Ifdef __FB_PCOS__
Sleep
#endif
by MrSwiss
Sep 27, 2020 0:15
Forum: Community Discussion
Topic: screeninfo integers
Replies: 4
Views: 166

Re: screeninfo integers

This is not really new. I've done that about 5 years ago with getScrInfo().
It appears that in GFXlib the return data-tyte 'integer' is the only one allowed ... (sort of: hard coded).
by MrSwiss
Sep 26, 2020 16:48
Forum: Documentation
Topic: Wiki improvements
Replies: 517
Views: 93934

Re: Wiki improvements

Well, this idea comes straight from "what it says in the documentation":
ThreadDetach -- thread may not yet be finished executing
ThreadWait -- assures that thread has terminated
(in a nutshell)
by MrSwiss
Sep 26, 2020 16:28
Forum: Documentation
Topic: Wiki improvements
Replies: 517
Views: 93934

Re: Wiki improvements

IMO, in the threaded examples there is the MUTEX missing, when using ThreadDetach() at least.
If ThreadWait() would be used instead, probably not mandatory.
by MrSwiss
Sep 26, 2020 16:12
Forum: Community Discussion
Topic: Compiling 32/64
Replies: 4
Views: 144

Re: Compiling 32/64

Simple answer: No, this is not possible (without a 'workaround') Reason: FBC itself has no 'rename' functionality 'built in' You'll have to do it 'manually' or with a CLI-script. Getting the 'bitness' of the compiler from within the program is simple: Dim As UByte bitness = SizeOf(Any Ptr) * 8 Print...
by MrSwiss
Sep 21, 2020 23:47
Forum: Community Discussion
Topic: Compiler code generation?
Replies: 16
Views: 382

Re: Compiler code generation?

fatman2021 wrote:Using doubles allows me to access over 10GB of RAM at one where as using an unsigned long only lets me access 4GB of RAM at a time. At least on my computer.

Simply use U/LongInt or U/Integer<64> instead of U/Long ...
by MrSwiss
Sep 20, 2020 20:45
Forum: Beginners
Topic: Preliminary Update to FBeginner EBook
Replies: 21
Views: 747

Re: Preliminary Update to FBeginner EBook

I just compiled qsort.bas and I did not get any warnings or errors. It looks fine to me and runs correctly. Have you tested with both compilers 32/64 bits? It is important nowadays that the code is 'portable' (aka: runs w/o change with both compilers). Since the user can use any one or even both 'b...
by MrSwiss
Sep 20, 2020 19:37
Forum: Beginners
Topic: Releasing memory from large strings
Replies: 9
Views: 201

Re: Releasing memory from large strings

badidea wrote:So, not all memory is released it seems with = "".

That is correct. Only the memory that holds 'string data' allocated from heap is released.
The memory used by the 'string header' (12 bytes FBC 32, 24 bytes FBC 64) is kept.
(only destroyed at program end or when going 'out of scope')
by MrSwiss
Sep 20, 2020 19:14
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 211
Views: 17700

Re: FreeBASIC 1.08 Development

Hi coderJeff,

great show, should start some fireworks to celebrate (unfortunately only allowed at specified days).
I've also seen your recent changes in: ../inc/fbc-int/*.bi (I'll try them a.s.a.p.).
Especially memory.bi looks very promissing (even if EXPERIMENTAL).
by MrSwiss
Sep 17, 2020 22:34
Forum: Documentation
Topic: Wiki improvements
Replies: 517
Views: 93934

Re: Wiki improvements

(I think there are other procedures of the form 'fb_xxx' which are directly accessible but not documented because not really necessary for the user). Sorry but I beg to differ, on the statement: "... because not really necessary for the user". I prefer my own judgement when it com...

Go to advanced search