Search found 16 matches

by azbluevw
Aug 20, 2023 14:38
Forum: Windows
Topic: Segmentation Violation signal displaying JPEGs
Replies: 4
Views: 2140

Re: Segmentation Violation signal displaying JPEGs

Thank for your responses guys, sorry for the long delay in responding! UEZ, your solution worked. angros47, I downloaded the oldest version of jpeg62.dll I could find, then I re-read your post and realized that's not what you said. This sounds like a stupid question, but where do I find older versio...
by azbluevw
Aug 09, 2023 23:36
Forum: Windows
Topic: Segmentation Violation signal displaying JPEGs
Replies: 4
Views: 2140

Segmentation Violation signal displaying JPEGs

I'm trying to run the test program for displaying JPEGs; I've modified it slightly (I hardcoded the file name rather than getting it from the commandline and, after getting an error added some prints and sleeps and error checking) I'm getting error 12, "segmentation violation signal," whic...
by azbluevw
Aug 05, 2021 1:11
Forum: General
Topic: Unexpected String behavior
Replies: 3
Views: 1707

Unexpected String behavior

I had a program acting oddly and this is the simplest code I was able to create that replicates the problem (compiling with -lang qb): Option ByVal declare sub more(s as string) more("Less") more("More") end sub more(s as string) s = s+" is " + s print s end sub I would...
by azbluevw
Oct 31, 2017 20:19
Forum: General
Topic: Array Out-of-Bounds When It's Not
Replies: 5
Views: 1237

Re: Array Out-of-Bounds When It's Not

I am such a dork; I can't believe I started a thread over this. I would consider naming global variables something other than a, b, c, etc. That was just a simplified example; the actual function started out like this: sub reconcileJump(ifPtr as long) 'print "------Reconciling-------"; ifP...
by azbluevw
Oct 31, 2017 2:15
Forum: General
Topic: Array Out-of-Bounds When It's Not
Replies: 5
Views: 1237

Array Out-of-Bounds When It's Not

I have a sub that reads from a global array of a user-defined data type. I'm compiling with -exx and getting an array out-of-bounds error. It's hard to post the code causing the problem as it's almost 8000 lines of code; I haven't been able to replicate the problem with something smaller. The functi...
by azbluevw
Dec 03, 2016 14:25
Forum: General
Topic: Can't get error code
Replies: 6
Views: 2299

Re: Can't get error code

Ah, thank you so much MichealW and fxm! I knew I had to be making some silly mistake :)
by azbluevw
Nov 26, 2016 2:30
Forum: General
Topic: Can't get error code
Replies: 6
Views: 2299

Re: Can't get error code

Yes, "catch" was the wrong term; nevertheless my problem remains: the error is indeed thrown and caught, it is passed to my error handler, but the error code is incorrect.
by azbluevw
Nov 25, 2016 23:54
Forum: General
Topic: Can't get error code
Replies: 6
Views: 2299

Can't get error code

I'm compiling with -exx (which should catch array overflows) and I've tried both -lang fb and lang -qb and can't seem to get an error code with an array overflow. Here's a short example that forces an array overflow: on error goto bad dim a(10) as integer dim x as integer x = 11 a(x) = 4 end bad: pr...
by azbluevw
Jun 27, 2015 15:57
Forum: General
Topic: Forward referencing labels in in-line assembly
Replies: 3
Views: 1018

Forward referencing labels in in-line assembly

(Note: I'm using the QB dialect, hence the double underscore prior to "asm." The problem doesn't go away when I use FB's primary dialect) In the following code the first jump works fine but the 2nd jump says "undefined reference to 'forward'. " back: __asm jmp back __asm jmp forw...
by azbluevw
Apr 04, 2015 22:39
Forum: Beginners
Topic: Can't find constants in fbgfx.bi
Replies: 6
Views: 1670

Re: Can't find constants in fbgfx.bi

Thank you so much for your help and your fast replies, DJ and dkl! :)
by azbluevw
Apr 04, 2015 22:28
Forum: Beginners
Topic: Can't find constants in fbgfx.bi
Replies: 6
Views: 1670

Re: Can't find constants in fbgfx.bi

Oh! That makes sense; thank you dkl.

Is there a command like:

Code: Select all

using namespace fb
Is there something in the tutorial where i can read up on namespaces? (Briefly looking around, I didn't find anything).
by azbluevw
Apr 04, 2015 22:20
Forum: Beginners
Topic: Can't find constants in fbgfx.bi
Replies: 6
Views: 1670

Can't find constants in fbgfx.bi

I've been having trouble using the fbgfx header file; I've made a few tweaks to try to figure out what the issue is and I can't quite pin it down. Here's a small program I wrote to demonstrate the problem: #include "fbgfx.bi" dim x as integer x = GFX_NULL print x'GFX_NULL while inkey$ = &q...
by azbluevw
Mar 28, 2012 23:52
Forum: Beginners
Topic: FB IDE DLL Problem
Replies: 2
Views: 1360

FB IDE DLL Problem

I downloaded the FB IDE and when I run it a popup says "The FBIDEFIX.DLL is linked to missing export USER32.DLL:IsHungAppWindow." It seems to be saying that it can't find user32.dll, or that it can find it but cannot find that particular function within the dll. I'm running this on Windows...
by azbluevw
Jan 05, 2012 18:37
Forum: Game Dev
Topic: My Sonic The Hedgehog game
Replies: 31
Views: 14944

Re:

Wow, it's nice to finally see another platformer in FreeBASIC. You can add a velocity vector to the player so he will keep moving to the left or right when the direction key is released. The first level did not have an exit. Is this a bug? Your game looks like it is in 8 bit. I have written some ve...
by azbluevw
Jan 05, 2012 18:10
Forum: General
Topic: Bug in 16 to 32 bit integer conversion
Replies: 4
Views: 946

Re: Bug in 16 to 32 bit integer conversion

D'oh! Sorry guys, I didn't see the correct place to post bugs until after I posted this; I felt kinda stupid :P

Thank you, Counting_pine, for correctly reporting it for me.