0
0

hi,

got a problem with my opengl fmod app.
Occasionally it crashes.
stack trace:
[…]
fmod.dll
msvcrt.dll

Is there anybody who stumbled over the same problem?

my system:
winXP
Creative SBLive!

cu

  • You must to post comments
0
0

Can you give us more info? Like, what FMOD functions are you calling when it crashes? Are you using streams? Samples? DSP units? endcallbacks? Have you tried cutting things out of your program until it stops crashing? Making a small test case that reproduces the crash?

We’re not psychic y’know ๐Ÿ˜€

  • You must to post comments
0
0

oh sry, maybe i should think before i write something ๐Ÿ˜‰

ok, it must have to do something with the
[b:35njojyq]FSOUND_Record_StartSample [/b:35njojyq](m_pSample, true) function. (and i think only when setting the second param to true)
I call this when staring the app and then i don’t call any FMOD functions.
Setting the second param to false or not calling the function prevents the app from crashing.

I think it only occurs when messages are send to the app, i.e. when i minimize or maximize the windows. But also when i stop and start a mp3 in e.g. winamp it sometimes crashes…

thx

[added example code ]

[code:35njojyq]#define GLUT_DISABLE_ATEXIT_HACK

define WIN32_LEAN_AND_MEAN

include <gl/glut.h>

include <windows.h>

include <fmod.h>

FSOUND_SAMPLE *g_pSample;

void init()
{
FSOUND_Init (44100, 1, 0);
FSOUND_Record_SetDriver (0);
g_pSample = FSOUND_Sample_Alloc( 0, 1024, FSOUND_16BITS | FSOUND_SIGNED | FSOUND_STEREO, 44100, 10, 0, 1);
FSOUND_Record_StartSample (g_pSample, true);
}

void display()
{
}

void keyboard(unsigned char key, int x, int y)
{
switch (key)
{
case ‘d’:
FSOUND_Record_Stop();
FSOUND_Close();
PostQuitMessage (0);
break;
}
}

int main(int argc,char *argv[])
{
glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
glutInitWindowSize(800,600);
glutCreateWindow("FMod Test");

glutDisplayFunc(display);
glutIdleFunc(display);
glutKeyboardFunc(keyboard);
init();
glutMainLoop();
return 0; 

}

[/code:35njojyq]

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.