Search found 491 matches

by pestery
Feb 08, 2013 5:15
Forum: General
Topic: What causes threads to lock up?
Replies: 25
Views: 1539

Re: What causes threads to lock up?

Nice example dodicat, although it froze for me on the second run, deadlocked within one of FB's internal libraries I'd guess. Your thread implementation was rubbish, but its still a nice example :-) There are 2 potential problems that I saw.The first is the shared 'tally' string is accessed and chan...
by pestery
Feb 08, 2013 2:24
Forum: General
Topic: What causes threads to lock up?
Replies: 25
Views: 1539

Re: What causes threads to lock up?

Threads are very useful, but there are some rules you have to follow or else you'll get all sorts of random errors that are incredibly hard to trace. You also need to find tasks that can be passed off to different threads. Keep all your GUI stuff in one thread. You could put your network code in ano...
by pestery
Jan 29, 2013 13:01
Forum: General
Topic: [SOLVED] missing OpenGL symbols in fbc 0.24 / win32
Replies: 3
Views: 540

Re: missing OpenGL symbols in fbc 0.24 / win32

It looks like you need to include glext.bi for your Windows build because those value, and others, are considered extensions under Windows and are not defined in gl.bi. I just checked the latest version and they are there, but in glext.bi. Quote from gl.bi /' Under Windows, we do not define OpenGL 1...
by pestery
Jan 21, 2013 4:30
Forum: General
Topic: How to get a scancode for the pressed key
Replies: 9
Views: 694

Re: How to get a scancode for the pressed key

Could you give an example of what you want to do? MultiKey and ScreenEvent are both very good tools for reading user input, but they are suited for different types of input. MultiKey is better for situations when the key is going to be held for a length of time, movement keys in a game for example. ...
by pestery
Jan 19, 2013 0:30
Forum: General
Topic: What causes threads to lock up?
Replies: 25
Views: 1539

Re: What causes threads to lock up?

Correct me if I'm wrong, but I think you can use Sleep in threads, but you have to set it to not be interrupted, so "Sleep [time], 1". Then the Sleep command does not check for keyboard input and does not cause errors.
by pestery
Jan 18, 2013 23:58
Forum: General
Topic: Question for D.J.Peters ref server.bas
Replies: 56
Views: 4685

Re: Question for D.J.Peters ref server.bas

I think the post I made that had all 4 files (code snippets) is the most recent, but I've uploaded the files I have anyway, just in case they more recent. Here is the link. Luckily I tend to keep all my old code because we did this 9 months ago :P
by pestery
Oct 19, 2012 1:48
Forum: General
Topic: glExt - Shader Commands not declared
Replies: 6
Views: 613

Re: glExt - Shader Commands not declared

Hi guys, back again :-) Anyway, I thought I'd add a little to what Gonzo said. If your using FBGFX instead of GLFW to open your OpenGL window then the function to find the OpenGL pointers is ScreenGLProc() . Just a quick comparison: glfwOpenWindow(640, 480, 8, 8, 8, 8, 16, 0, GLFW_WINDOW) glGenBuffe...
by pestery
Jun 30, 2012 8:02
Forum: General
Topic: Stitch-up
Replies: 14
Views: 1188

Re: Stitch-up

Ah, the old glStencilxxx commands. Just had one small problem with the example. GL_BGRA was not defined, but including GL/glext.bi fixed the problem. Cool example by the way :-) Regarding mediafire, I've been using it for a while and it seems to be pretty good. It's free, seems to be reliable, no ti...
by pestery
Jun 30, 2012 7:35
Forum: Windows
Topic: Win 7, in fullscreen mode using Alt+Enter ends program
Replies: 8
Views: 981

Re: Win 7, in fullscreen mode using Alt+Enter ends program

It worked fine for me (on Win7). Maybe your having a problem with Alt+Enter counting as a key press, which would interrupt the Sleep command. You could try adding something so that the program will only exit when a certain key is pressed, just in case there is a change. Screen 17,,,0 Width 80, 25 Do...
by pestery
Jun 29, 2012 11:22
Forum: Projects
Topic: Mandelbrot Set Fractal viewer
Replies: 12
Views: 2013

Re: Mandelbrot Set Fractal viewer

@theoreticalpoodle No worries. It's just a quick example that uses shaders to make it run faster, but I had fun making it :-) @nobozoz The problem is on line 166. All the GL functions beyond what was included in GL/gl.bi and GL/glu.bi are found at runtime instead of being included in a library, if t...
by pestery
Jun 23, 2012 12:46
Forum: General
Topic: Strange behavior+crash, via GDB works !
Replies: 25
Views: 943

Re: Strange behavior+crash, via GDB works !

Fair enough. You could try removing (commenting out) other sections of your code until the bug goes away, just in case the bug is actually somewhere else. The lines that crash may be only be the result of the bug and not the cause.

Well Pete, I have no more ideas. Good luck finding your bug.
by pestery
Jun 23, 2012 12:08
Forum: General
Topic: Strange behavior+crash, via GDB works !
Replies: 25
Views: 943

Re: Strange behavior+crash, via GDB works !

Every line that you marked as 'crash' is converting the UShort imx(i4) to a String automatically. write #cilofi, .... ,imx(i4) ? imx(i4); .... This should not cause a problem by itself. Your test code says your checking for out-of-bound errors before using the lines that crash, and compiling with -e...
by pestery
Jun 22, 2012 6:11
Forum: General
Topic: Strange behavior+crash, via GDB works !
Replies: 25
Views: 943

Re: Strange behavior+crash, via GDB works !

@fxm True, for an array. I thought about that after I made the post. I guess I'm just too used to working with pointers instead :-) @petan One or two more ideas. Try replacing Write # with Print # , although it probably won't make a difference. Also check some of the values other your using like poz...
by pestery
Jun 22, 2012 3:37
Forum: General
Topic: Strange behavior+crash, via GDB works !
Replies: 25
Views: 943

Re: Strange behavior+crash, via GDB works !

petan said he's using ReDim so the memory would come from the heap, not the stack (unless I'm mistaken). My guess would be an out-of-bound memory access. @petan Try adding this to your code and see if i4 is what you expect or not. 'ReDim As UShort imx(1 To ica(poz,noX)) 'imx() is ushort datatype 'm ...
by pestery
Jun 21, 2012 11:55
Forum: Beginners
Topic: Program structure issue - "included" programs
Replies: 4
Views: 357

Re: Program structure issue - "included" programs

You'll pick it up eventually. Curiosity and persistence are useful traits to have when programming, patience also ;-) I've been using FB since 2007, just as a hobby. Over that time I've learnt all sorts of stuff by trying my hand a networking, OpenGL, a couple of physics engines, some sound stuff, g...

Go to advanced search