Search found 452 matches
- Oct 16, 2020 17:13
- Forum: General
- Topic: multithread detection
- Replies: 12
- Views: 905
Re: multithread detection
Surely, when restarting from the top, SOMETHING is changed to indicate whatever triggered the change. If that is a one-flag-only process or anything like that, the deficiencies are obvious. I doubt that is the case. Same with cmdline: it seems it is quirky in requiring an order of parameters at time...
- Oct 12, 2020 8:17
- Forum: General
- Topic: multithread detection
- Replies: 12
- Views: 905
Re: multithread detection
@caseih: you are correct I compile each function two times: once with and once without '-mt' to create my object files for later static linking. I have one threaded, one non-threaded object directory. (Actually, several more *pairs* of directories, one pair for each different architecture: four pair...
- Oct 11, 2020 7:53
- Forum: General
- Topic: multithread detection
- Replies: 12
- Views: 905
multithread detection
What are the triggers that cause multithreading detection and library usage? When is this detection happening? It seems any FB multithread keyword I use is consumed in pre-compiled object libraries for static linking. My main app code calls these pre-compiled functions of mine so the compiler now mi...
- Oct 11, 2020 2:02
- Forum: Documentation
- Topic: Wiki improvements
- Replies: 565
- Views: 107692
Re: Wiki improvements
re: EVENT/ERROR handling Seeing each possible choice next to each other does not improve my confidence that someone navigating to these topics will find what they want. Better to put something/anything on the table now than waiting for 'sometime' in the future. Oh, well. Perhaps perfection will have...
- Oct 09, 2020 23:59
- Forum: Documentation
- Topic: Wiki improvements
- Replies: 565
- Views: 107692
Re: Wiki improvements
Thank you for the added references. Event Catching -- sounds too much like a more generalized topic relating to catching/handling an event. Yeah, but this *specific* event (FB EVENT structure) is handed to us by the language - not the same. Probably something more like 'FreeBASIC EVENT handling' wou...
- Oct 06, 2020 22:35
- Forum: Projects
- Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
- Replies: 393
- Views: 49356
Re: Gas64 (no more use of gcc, only gas) WDS / LNX
Amazing work. Thank you both.
david
david
- Oct 06, 2020 22:31
- Forum: General
- Topic: i'm curious about inkey, getkey & chr : how to use those
- Replies: 4
- Views: 497
Re: i'm curious about inkey, getkey & chr : how to use those
Please add 'SCREENEVENT' to See Also at MULTIKEY, GETMOUSE, and GEYJOYSTICK. Many years ago, when I found this, I felt cheated that it took so long to discover. Answers (like above) almost always neglect to mention this keyword. While using this the feeling of re-inventing the wheel may happen, but ...
- Sep 27, 2020 0:43
- Forum: Community Discussion
- Topic: screeninfo integers
- Replies: 4
- Views: 321
Re: screeninfo integers
Adding extra code to convert to your desired type doesn't save anything unless you are using it a LOT in one app. Your function saves some keystrokes if you use it a lot - if you can remember what it is and where it is. I just convert as needed inline. I cannot imagine an app that should need to do ...
- Sep 26, 2020 22:10
- Forum: Community Discussion
- Topic: screeninfo integers
- Replies: 4
- Views: 321
screeninfo integers
I'm not trying to start trouble. Just a question. Shouldn't the data returned by functions like screeninfo be longs instead of integers? This seems like it would make cross platform routines a lot easier to write. Even lib maintenance should be easier. Is this simply a legacy from previous 32 bit so...
- Sep 24, 2020 20:32
- Forum: Documentation
- Topic: threadcreate()
- Replies: 5
- Views: 546
Re: threadcreate()
Thank you
- Sep 23, 2020 22:44
- Forum: Documentation
- Topic: threadcreate()
- Replies: 5
- Views: 546
Re: threadcreate()
I don't have any problem with the current text or the examples. I DO still remember how much effort it takes to master learning about using any languages' particular syntax using threads and pointers. For any of the tougher programming concepts, I always review how I use the language and any changes...
- Sep 20, 2020 18:19
- Forum: Documentation
- Topic: threadcreate()
- Replies: 5
- Views: 546
threadcreate()
No problem with the existing text.
Perhaps add a small note to resolve a question asked of me:
The arguments passed to threadcreate() are not expected to match the arguments to be passed to the sub() used in the new thread.
Your sub() - as a thread - must handle or ignore that pointer.
david
Perhaps add a small note to resolve a question asked of me:
The arguments passed to threadcreate() are not expected to match the arguments to be passed to the sub() used in the new thread.
Your sub() - as a thread - must handle or ignore that pointer.
david
- Sep 12, 2020 17:02
- Forum: Beginners
- Topic: Initialising an array with many empty elements
- Replies: 15
- Views: 903
Re: Initialising an array with many empty elements
If this is support for a distributed application: Define/undefine would require shipping a different exe file to your customer to troubleshoot. Not good. A resource data set could be enabled with a proper commandline tail provided to the customer when needed. At least this would instill some extra c...
- Aug 06, 2020 16:54
- Forum: Beginners
- Topic: Stuck writing a simple bit toggle routine
- Replies: 19
- Views: 1051
Re: Stuck writing a simple bit toggle routine
Question to all: I have been using code like this for awhile - but much more complex. It is in a key event thread. As an example of bit flags, unions, etc - - - anyone see problems with this code? ' bitflags.bas type bflags union allflags as ulong type f1:1 as boolean f2:1 as boolean toohot:1 as boo...
- Jul 20, 2020 8:05
- Forum: General
- Topic: RND breadth
- Replies: 42
- Views: 3314
Re: RND breadth
Just stumbled across this. I know this is old and stale, but I hate to think that Albert never got comfortable with anyone's reason why he did not see what he expected. Albert: 2^32 is not half of 2^64. 2^63 is half 2^62 is 1/4 2^61 is 1/8 ... ... ... 2^32 is VERY small next to 2^64. If we allow a p...