Search found 12022 matches

by fxm
May 03, 2024 5:53
Forum: Beginners
Topic: Program Exits With Array Problem
Replies: 3
Views: 142

Re: Program Exits With Array Problem

What is the operating system? Compile the program with the '-exx' option and check if a runtime error message appears on the console output. [edit] Unlike 'DIM SHARED AS LONGINT YAxis2(221)' , 'DIM SHARED AS LONGINT YAxis2(1 TO E3+LB1)' defines a dynamic array (instead of static) with its data locat...
by fxm
May 02, 2024 16:38
Forum: General
Topic: [FBC 1.10.1 BUG] Define concat and stringize
Replies: 4
Views: 262

Re: [FBC 1.10.1 BUG] Define concat and stringize

Me too, but I regret that Discord takes priority over the Forum (I suppose the question was asked on both).
by fxm
May 01, 2024 20:15
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 26
Views: 1962

Re: Profiling freebasic programs

New related pages in documentation: - Compiler Option: -profgen - __FB_PROFILE__ - __FB_OPTION_PROFILE__ - Profiling with fb's profiler (in Programmer's Guide) + Many slightly modified pages. In documentation, the update regarding profiling (with fb's profiler) is now pretty much finalized.
by fxm
May 01, 2024 16:21
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 26
Views: 1962

Re: Profiling freebasic programs

Profiling reports in case of multi-threading The report of a block per thread: (main), (thread)#1, (thread)#2, ..., suits me perfectly. But accumulation of procedures (or builtin instructions) should only be carried out in the same thread, because it is illogical to add up the execution times of pr...
by fxm
Apr 30, 2024 18:39
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 26
Views: 1962

Re: Profiling freebasic programs

@ Jeff , Simple example, profiling a freebasic program and generating the default report: A simple example: #cmdline "-profgen fb" sub Pause100 sleep 100, 1 end sub sub Pause200 sleep 200, 1 end sub sub Pause400 sleep 400, 1 end sub for i as integer = 1 to 3 Pause100 next Pause200 Pause400...
by fxm
Apr 30, 2024 9:40
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 26
Views: 1962

Re: Profiling freebasic programs

@ Jeff , Why the call tree representation depends on the procedure-name size (the only change) ? #cmdline "-profgen fb" #include once "fbc-int/profile.bi" Using FBC ProfileSetOptions( fbc.PROFILE_OPTION_REPORT_CALLTREE ) sub t( byval n as integer ) sleep 100, 1 if( n > 0 ) then t...
by fxm
Apr 29, 2024 20:17
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 26
Views: 1962

Re: Profiling freebasic programs

New related pages in documentation:
- Compiler Option: -profgen
- __FB_PROFILE__
- __FB_OPTION_PROFILE__
- Profiling with fb's profiler (in Programmer's Guide)
+ Many slightly modified pages.
by fxm
Apr 29, 2024 15:40
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 26
Views: 1962

Re: Profiling freebasic programs

@ Jeff , 1) Could you give a little information on these SUBs that can be used in the case of multi-threading ? #if __FB_MT__ extern "rtlib" declare sub fbProfileLock alias "fb_ProfileLock" () declare sub fbProfileUnlock alias "fb_ProfileUnlock" () end extern #endif 2) ...
by fxm
Apr 28, 2024 20:10
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 26
Views: 1962

Re: Profiling freebasic programs

No problem for me with Windows 10.

Note:
I also updated after the 'inc' directory from:
freebasic_additional_headers.zip
but that should not be necessary for this.
by fxm
Apr 28, 2024 13:46
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 26
Views: 1962

Re: Profiling freebasic programs

About documentation update: - Added 'Compiler Option: -profgen' page. - Waiting for new update to add '__FB_PROFILE__' and '__FB_OPTION_PROFILE__'. - @ Jeff : For the Programmer's Guide, a single page containing profiling for both gmon/gprof and fb's profiler, or 2 separate pages (the simpler in my...
by fxm
Apr 28, 2024 12:21
Forum: Documentation
Topic: Profiling freebasic programs
Replies: 26
Views: 1962

Re: Profiling freebasic programs

About documentation update: - Added 'Compiler Option: -profgen' page. - Waiting for new update to add '__FB_PROFILE__' and '__FB_OPTION_PROFILE__'. - @ Jeff : For the Programmer's Guide, a single page containing profiling for both gmon/gprof and fb's profiler, or 2 separate pages (the simpler in my ...
by fxm
Apr 27, 2024 19:12
Forum: General
Topic: Window Screen Command?
Replies: 1
Views: 259

Re: Window Screen Command?

Instead of 'WINDOW SCREEN .....', use 'VIEW SCREEN .....' instead.
But no solution for 'PRINT' which is not a graphic instruction. Use 'DRAW STRING' instead.
by fxm
Apr 26, 2024 8:44
Forum: Community Discussion
Topic: FPS Limiter
Replies: 1
Views: 172

Re: FPS Limiter

Welcome to the forum! In addition to all the forum user codes ( Search for keywords: FPS , Search within: Topic titles only , Display results as: Topics ): https://www.freebasic.net/forum/search.php?keywords=FPS&terms=all&author=&sc=1&sf=titleonly&sr=topics&sk=t&sd=d&...
by fxm
Apr 24, 2024 20:05
Forum: Beginners
Topic: Beginners using FreeBASIC and FbEdit have no "fbc.exe"
Replies: 3
Views: 225

Re: Beginners using FreeBASIC and FbEdit have no "fbc.exe"

Have you dowloaded your version from this Version 1.10.1 Released page?
by fxm
Apr 24, 2024 19:42
Forum: Beginners
Topic: 64bit FreeBASIC has no FB.chm help file
Replies: 2
Views: 201

Re: 64bit FreeBASIC has no FB.chm help file

For the manual, see Version 1.10.1 Released, "Documentation" paragraph.