Search found 1363 matches

by caseih
Feb 15, 2020 0:13
Forum: Linux
Topic: File name issues (bug)??
Replies: 7
Views: 221

Re: File name issues (bug)??

Helium5793 wrote:As an example the file 'element-new.data' will not load. No error is given, and the program goes on, but no data has been loaded.

As always, compile with -exx so that runtime error checking is enabled. Often that will catch weird things that don't crash the program (but probably should).
by caseih
Feb 14, 2020 15:55
Forum: Linux
Topic: Fedora 30 x64 Missing libtinfo.so.5
Replies: 5
Views: 407

Re: Fedora 30 x64 Missing libtinfo.so.5

On my Centos 8 box, which is based on Fedora 28, I can install ncurses-compat-libs and it definitely does provides libtinfo.so.5. I verified that by doing rpm -ql ncurses-compat-libs. If you're trying to use the 32-bit version of FBC, you'll need to install ncurses-compat-libs.i686 On Fedora 31, wha...
by caseih
Feb 04, 2020 19:54
Forum: Community Discussion
Topic: substrings
Replies: 39
Views: 1562

Re: substrings

If there was a notation as you suggest, would it be zero indexed? Is the end index inclusive or exclusive? Lots of languages do this differently. Perl's slicing notation is interesting and fairly clear. Python's syntax is a bit more complicated but still alright. Negative indexes are used to do powe...
by caseih
Jan 08, 2020 19:54
Forum: Tips and Tricks
Topic: [Linux] Try/Catch
Replies: 7
Views: 307

Re: [Linux] Try/Catch

I guess my point is that if something has gone so wrong that it's going to lead to a segfault (IE the program will blow up), then catching that is just hiding the problem and allowing it to become much worse and potentially lose a lot more of the user's data. I'm not talking about trying to read fro...
by caseih
Jan 06, 2020 0:34
Forum: Libraries
Topic: Library Pointers & OS Crashes
Replies: 11
Views: 459

Re: Library Pointers & OS Crashes

srvaldez doesn't mean you need a virtual machine. But virtual machines are good for testing since you can install different operating system versions to see how they work. All he meant was it worked when he used the 64-bit version of FB on his 64-bit Windows 7 installation, which happens to be in a ...
by caseih
Jan 04, 2020 15:54
Forum: Tips and Tricks
Topic: [Linux] Try/Catch
Replies: 7
Views: 307

Re: [Linux] Try/Catch

Be careful handling SIGSEGV. Usually a segfault is a sure sign of memory corruption and the only safe thing to do is to write out your memory state for future debugging and crash. Of course there are reasons for handling that signal, such as managing child processes. these keywords are already in vb...
by caseih
Dec 21, 2019 20:08
Forum: General
Topic: C++ to FB
Replies: 12
Views: 340

Re: C++ to FB

The 1Left in the Step is redundant - as caseih intimated in his first post. Redundant code can be confusing. Yes in this case by shear luck that specifying a step of "left+2*size" works at all (left is 0) in the FB for loop. However it was not in the original C++ for() loop, which is why ...
by caseih
Dec 21, 2019 4:48
Forum: General
Topic: C++ to FB
Replies: 12
Views: 340

Re: C++ to FB

My effort? If you printed the value of the loop counter instead of "hello world" we can see the difference. Here's your C++ example run: 0 2 4 6 8 10 12 Here's the result of your FB for loop, which increases the loop counter "left" by 1+2*size each iteration: 2 5 8 11 14 or if I...
by caseih
Dec 21, 2019 4:41
Forum: General
Topic: C++ to FB
Replies: 12
Views: 340

Re: C++ to FB

Yup Joshy is right. His code is exactly the same as the while code I posted in my second example.
by caseih
Dec 21, 2019 4:25
Forum: General
Topic: C++ to FB
Replies: 12
Views: 340

Re: C++ to FB

No I think you're mistaken about the C++ code. Or you missed something when you copied and pasted. The loop incrementer in the C for() is definitely "left = left + 2 *size". I'm not sure where you're getting a step of "left + 2*size." The while loop I provided is the exact transl...
by caseih
Dec 20, 2019 22:23
Forum: General
Topic: C++ to FB
Replies: 12
Views: 340

Re: C++ to FB

What did you come up with and did it fail? This appears to run identically to the C code (I did a simple test printing out the numbers): for left = 0 to n-1 step 2*size print left next If I set n=23 and size=3 I get this output from C and FB: 0 6 12 18 Alternatively you can do a direct transliterati...
by caseih
Dec 12, 2019 21:26
Forum: Community Discussion
Topic: Suddenly FB executables are detected as Trojans or the philosophy about using Window / Linux ;-)
Replies: 40
Views: 1469

Re: Suddenly FB executables are detected as Trojans

Time to change the subject line on this thread? I tried out Cairo Shell this morning, and I actually quite like it. Does away with the start menu entirely for a paradigm that's a cross been MacOS and Ubuntu Linux (red flag for some I'm guessing!). I haven't actually done any real work on that VM, th...
by caseih
Dec 11, 2019 18:23
Forum: Community Discussion
Topic: Suddenly FB executables are detected as Trojans or the philosophy about using Window / Linux ;-)
Replies: 40
Views: 1469

Re: Suddenly FB executables are detected as Trojans

Kind of fun all our different perspectives. I would apologize for being off topic, but I enjoy the conversational aspects of what has been said here. To me, coming from MS-DOS where I understood what was going on, Windows was always opaque to me. I theoretically understand the internals of Windows, ...
by caseih
Dec 11, 2019 16:08
Forum: Community Discussion
Topic: Suddenly FB executables are detected as Trojans or the philosophy about using Window / Linux ;-)
Replies: 40
Views: 1469

Re: Suddenly FB executables are detected as Trojans

It is possible to turn of most of the privacy-invading features of Windows 10. What is essentially advertising in the start menu really bugs me though. That an how Windows 10 constantly is reinstalling junk I removed, like games and other useless things. Windows 10 is otherwise a surprisingly good v...
by caseih
Dec 10, 2019 19:46
Forum: Community Discussion
Topic: Suddenly FB executables are detected as Trojans or the philosophy about using Window / Linux ;-)
Replies: 40
Views: 1469

Re: Suddenly FB executables are detected as Trojans

Question: If you use the GCC backend do you see the same problems with FB executables, and differences with various optimization levels? Unfortunately the heuristics and patterns the AV programs are looking for are closely guarded trade secrets, which is a little ironic seeing as AV programs just do...

Go to advanced search