Search found 8150 matches

by fxm
Aug 17, 2018 12:39
Forum: Community Discussion
Topic: programming for fun
Replies: 42
Views: 1426

Re: programming for fun

For me, the classical French scientific training, helped by my parents. After the scientific baccalaureate (mathematics): - Preparatory classes : two-year undergraduate intensive course in mathematics and physics. - National competitive examination for admission to the French "Grandes Ecoles&qu...
by fxm
Aug 17, 2018 9:36
Forum: Beginners
Topic: How to close a window
Replies: 6
Views: 111

Re: How to close a window

Have you read the question carefully?
How to destroy this window and keep program running ?
by fxm
Aug 17, 2018 9:09
Forum: Windows
Topic: After Ctl+Alt+Delete is pressed, continous Alt key is sent
Replies: 8
Views: 222

Re: After Ctl+Alt+Delete is pressed, continous Alt key is sent

BTW:
For Windows, why not set GDI by default for fbc-32bit because it's the only one available for fbc-64bit?
by fxm
Aug 17, 2018 9:01
Forum: Beginners
Topic: How to close a window
Replies: 6
Views: 111

Re: How to close a window

DestroyWindow(Window_Main) ?
by fxm
Aug 16, 2018 21:20
Forum: General
Topic: Delete vs. Delete[]
Replies: 20
Views: 2159

Re: Delete vs. Delete[]

3) Yes, it confirms what I saw. Many calls to the constructor before the crash: Type UDT Dim As Byte b Declare Constructor () End Type Constructor UDT () Print "UDT.Constructor()", @This End Constructor Dim As UDT Ptr p = New UDT[0] UDT.Constructor() 10365536 UDT.Constructor() 10365537 UDT...
by fxm
Aug 16, 2018 15:50
Forum: General
Topic: Delete vs. Delete[]
Replies: 20
Views: 2159

Re: Delete vs. Delete[]

If we were independent of any other language or operating system, I would say (IMHO) that for any of these expressions: result = New datatype[ count ] result = [C]Allocate( count ) result = Reallocate( pointer, count ) If ( count <= 0 ) Orelse ( memory allocation is failed ) Then result = 0 Else res...
by fxm
Aug 16, 2018 15:22
Forum: Documentation
Topic: Wiki improvements
Replies: 193
Views: 6820

Re: Wiki improvements

I think each one has his own understanding. Mine is this: - "Referencing a variable" means accessing the memory address of the variable (this address is often used to initialize a pointer value). - "Dereferencing a variable" means accessing the variable stored at a memory address...
by fxm
Aug 16, 2018 8:53
Forum: General
Topic: Delete vs. Delete[]
Replies: 20
Views: 2159

Re: Delete vs. Delete[]

Bug report filled: #699 Bug on the "New[]" operator when attempting to allocate a negative number of elements @Admin, About the above bug report, now closed, I have add a comment because one case of program aborting is not solved: See https://sourceforge.net/p/fbc/bugs/699/#b9ce [edit] I ...
by fxm
Aug 16, 2018 5:11
Forum: Documentation
Topic: How FB supports References (pass and return byref, byref variables), and How to Use them
Replies: 6
Views: 277

Re: How FB supports References (pass and return byref, byref variables), and How to Use them

Even, if all the parts on pointers were deleted, ... @fxm, your introduction part about pointers, should be made a article "in itself", because it applies to more cases, than just the "byref" stuff. It's just a reminder. There are already several pages on pointers in documentati...
by fxm
Aug 15, 2018 20:35
Forum: Documentation
Topic: Wiki improvements
Replies: 193
Views: 6820

Re: Wiki improvements

MrSwiss wrote:@fxm,
your introduction part about pointers, should be made a article "in itself",
because it applies to more cases, than just the "byref" stuff.

It's just a reminder.
There are already several pages on pointers in documentation (see Programmer's Guide, Community Tutorials).
by fxm
Aug 15, 2018 19:09
Forum: Documentation
Topic: Wiki improvements
Replies: 193
Views: 6820

Re: Wiki improvements

@fxm, I noticed that the BYREF variable feature works great for some situations. In other situations, fbc might segfault, or the user program will segfault. I will follow up in what I think was original thread https://www.freebasic.net/forum/viewtopic.php?&t=23584 @MrSwiss, The technical discus...
by fxm
Aug 15, 2018 13:50
Forum: Tips and Tricks
Topic: Rect_t - optimized type definition
Replies: 35
Views: 746

Re: Rect_t - optimized type definition

Finally a friendly Type structure for the data fields.
by fxm
Aug 14, 2018 20:30
Forum: Documentation
Topic: Wiki improvements
Replies: 193
Views: 6820

Re: Wiki improvements

Other subject: A potential new article #17 ? About: How to use implicit / overload New([]) and Delete([]) operators in a polymorphic context I already wrote a thread around that topic and I highlighted the cases of bad functioning when calling the Delete([]) operator in a subtype polymorphic contex...
by fxm
Aug 14, 2018 16:37
Forum: Documentation
Topic: Wiki improvements
Replies: 193
Views: 6820

Re: Wiki improvements

See this bug report:
#645 Access to global duplicated symbol is captured by local symbol

(I do not know if it's a good time to create new pages on these bugged features!)

Go to advanced search