[vorbis-dev] ( Possible vorbisfile + win32 bug ) or stupid mistake

OmegaDan omegadan at thehumbleguys.com
Thu Feb 8 13:54:17 PST 2001



I'm working on some sound code for a pet project, and can't get it working
right ... I've tried this with both beta3 and todays cvs (feb 07) 
basically I run this code :

bool vorbisfile_interface::Open(char *filename)
{

        if ( status == INUSE ) { return FAILURE ; /*already have a file
open */$

        f = fopen(filename, "rb") ;

        if ( f == NULL ) { return FAILURE ; }

        if ( ov_open( f, &ovf, NULL, 0 ) < 0 ) { return FAILURE; }

        status = INUSE ;

        return SUCCESS;

}

And it segfaults with this traceback :

NTDLL! 77f82460()
NTDLL! 77f823e5()
_fseek64_wrap(_iobuf * 0x10048078, __int64 0, int 1) line 588 + 20 bytes
ov_open_callbacks(void * 0x10048078, OggVorbis_File * 0x0012fbc0, char *
0x00000000, long 0, ov_callbacks {...}) line 614 + 15 bytes
ov_open(_iobuf * 0x10048078, OggVorbis_File * 0x0012fbc0, char *
0x00000000, long 0) line 607 + 49 bytes
vorbisfile_interface::Open(char * 0x10043b0c `string') line 23 + 22 bytes
bankset::LoadBank(char * 0x0042901c `string') line 38 + 16 bytes
CCatsound::LoadBank(char * 0x0042901c `string') line 50
main(int 1, char * * 0x00930d90) line 19 + 16 bytes
mainCRTStartup() line 206 + 25 bytes
KERNEL32! 77e992a6()

The operating system is Windows 2000 Pro SP1, the compiler Visual Studio 6
SP4, and its vorbisfile_dynamic I'm using.... Its been driving me crazy,
I've been looking at it for about 6 hours now ... time to defer to the
professionals :)

OD

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list