Search found 483 matches

by Josep Roca
Jan 16, 2020 1:28
Forum: Community Discussion
Topic: Unable to access fb.net forums
Replies: 86
Views: 5166

Re: Unable to access fb.net forums

The MASM member was using "." instead of "period"

I answered freebasic!!!!.

but apparently that's not correct. Two other trys and I exceeded my attempts.
by Josep Roca
Jan 16, 2020 0:46
Forum: Community Discussion
Topic: Unable to access fb.net forums
Replies: 86
Views: 5166

Re: Unable to access fb.net forums

The hard part is "FreeBASIC". Most people will try "FreeBasic", "Free Basic", "freebasic", etc.
by Josep Roca
Jan 12, 2020 0:29
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 3952

Re: Windows graphics tutorial

The goto is innocent of the crash, but I haven't seen a worse way of trying to close an application.
by Josep Roca
Jan 11, 2020 20:53
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 3952

Re: Windows graphics tutorial

When you call CreateDIBSection, pMainDIB will receive a pointer to the location of the DIB bit values. Therefore, allocating memory to it with Allocate((cdXSize)*(cdYSize)) before calling CreateDIBSection is useless, and as CreateDIBSection will change the value of pMainDIB, when you call Deallocate...
by Josep Roca
Jan 11, 2020 16:13
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 3952

Re: Windows graphics tutorial

> I don't think the goto is any problem.

The problem is that in the way you're using it, you are bypassing the normal sequence of Windows events.

Closing the Window: https://docs.microsoft.com/en-us/window ... the-window
by Josep Roca
Jan 11, 2020 15:15
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 3952

Re: Windows graphics tutorial

It crashes when closing the window here (Win10 fbc 1.07.1 compiled with gcc 5.x). Most likely due to this part: '' ... Select Case message Case WM_CHAR If (wParam = VK_ESCAPE) Then Goto wmDestruimos End If Return 0 '' ... Case WM_DESTROY wmDestruimos: KillTimer (hWnd, cdIdTimer) hGDITmp = SelectObj...
by Josep Roca
Dec 17, 2019 14:20
Forum: Beginners
Topic: LOAD PNG TO IMAGE
Replies: 20
Views: 2622

Re: LOAD PNG TO IMAGE

The memory used by the temporary buffer created by GdipBitmapLockBits is freed when you call GdipBitmapUnlockBits. GdipBitmapLockBits and GdipBitmapUnlockBits must always be used as a pair.
by Josep Roca
Oct 26, 2019 20:54
Forum: Community Discussion
Topic: How to add new features? (syntax, user API)
Replies: 53
Views: 3838

Re: How to add new features? (syntax, user API)

There is a third one that I'm using: I use include files instead of modules, but many of the includes use a namespace. I prefer to use include files instead of modules to benefit from conditional compilation and dead code removal.
by Josep Roca
Oct 20, 2019 15:56
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 228
Views: 19665

Re: FreeBASIC 1.08 Development

- growth rate field is stored with every string There are instances in which an application may need to do hundreds or even thousands of string concatenations, e.g. my TypeLib Browser. In such cases, changing the grow rate makes a very big difference in speed. - pre-allocates 260 bytes, even for em...
by Josep Roca
Oct 20, 2019 15:28
Forum: Community Discussion
Topic: FreeBASIC 1.08 Development
Replies: 228
Views: 19665

Re: FreeBASIC 1.08 Development

Because, eventually, we will break some user code, I found this existing usage of USTRING usage on this forum:
ustring: Dynamic zstring library.


Now you will understand why I did use CWSTR for my class. I was almost certain that it will never be used as a keyword :)
by Josep Roca
Oct 08, 2019 23:05
Forum: Libraries
Topic: FBGUI library for Windows 2
Replies: 800
Views: 161079

Re: FBGUI library for Windows 2

> In over 20 years as a Windows user, I've never seen this - weird

It happens every time that you download a .chm file from the web. Best way to avoid it is to upload the .chm file zipped.
by Josep Roca
Oct 08, 2019 18:48
Forum: General
Topic: ASLR
Replies: 64
Views: 3002

Re: ASLR

Why are you using -PIE? He has posted -pie. The ucased PIE is in -fPIE.
by Josep Roca
Oct 08, 2019 15:51
Forum: General
Topic: ASLR
Replies: 64
Views: 3002

Re: ASLR

I have found this thread: https://github.com/msys2/MINGW-packages/issues/5719 It begins talking about an issue with gcc-9.2.0-1: The binaries in the new gcc-9.2.0-1 packages have ASLR enabled in their PE headers. This breaks using precompiled headers, as they can no longer be mapped at a predictable...
by Josep Roca
Oct 08, 2019 15:37
Forum: General
Topic: ASLR
Replies: 64
Views: 3002

Re: ASLR

> How does your Windows API Headers III v.1.07 compare with WinFBX? There are differences because PB does not support overloading and multiple constructors, among other things, but in general they are easier to use because of the lack of strict type checking and because out parameters are declared a...
by Josep Roca
Oct 08, 2019 14:13
Forum: General
Topic: ASLR
Replies: 64
Views: 3002

Re: ASLR

See: https://www.kb.cert.org/vuls/id/307144/ mingw-w64 produces a executable Windows files without a relocations table by default, which breaks compatibility with ASLR. ASLR is an exploit mitigation technique used by modern Windows platforms. For ASLR to function, Windows executables must contain a ...

Go to advanced search