I installed the SDL 1.1.8 development for Win32.
My app. that used SMPEG 0.4.2 sucessfully with SDL 1.1.7, now crashes (with
SDL 1.1.8) with a SEG fault in SMPEG_new().__________________________________
I?aki Idigoras Igartua <@Idigoras_Inaki>
I installed the SDL 1.1.8 development for Win32.
My app. that used SMPEG 0.4.2 sucessfully with SDL 1.1.7, now crashes (with
SDL 1.1.8) with a SEG fault in SMPEG_new().__________________________________
I?aki Idigoras Igartua <@Idigoras_Inaki>
I installed the SDL 1.1.8 development for Win32.
My app. that used SMPEG 0.4.2 sucessfully with SDL 1.1.7, now crashes (with
SDL 1.1.8) with a SEG fault in SMPEG_new().
Can you build a debug version of the SDL library and find out where it
crashes?
Thanks,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software
SMPEG calls SDL_mutexP() in MPEGSystem::Read (MPEGsystem.cpp line 570)
this goes to SDL_endian.c line 85:
int SDL_WriteLE32 (SDL_RWops *dst, Uint32 value)
{
value = SDL_SwapLE32(value);
return(SDL_RWwrite(dst, &value, (sizeof value), 1));
}
It is SDL_RWwrite() who causes the segfault:
The thread 0x1C4 has exited with code -11 (0xFFFFFFF5).
First-chance exception in winview.exe: 0xC0000005: Access Violation.
The dissasembly is:
88: return(SDL_RWwrite(dst, &value, (sizeof value), 1));
1003101F push 1
10031021 push 4
10031023 lea ecx,[ebp+0Ch]
10031026 push ecx
10031027 mov edx,dword ptr [ebp+8]
1003102A push edx
1003102B mov eax,dword ptr [ebp+8]
1003102E call dword ptr [eax+8]
10031031 add esp,10h
89: }
the call (with eax = 20321536) goes to :
00000011 ???
00000012 ???
00000013 ???
which causes the exception
Hope this helps : )__________________________________
I?aki Idigoras Igartua <@Idigoras_Inaki>
-----Mensaje original-----
De: Sam Lantinga [SMTP:slouken at devolution.com]
Enviado el: martes 13 de febrero de 2001 20:40
Para: sdl at lokigames.com
Asunto: Re: [SDL] SMPEG 0.4.2 causes seg fault with SDL 1.1.8 in
Windows NTI installed the SDL 1.1.8 development for Win32.
My app. that used SMPEG 0.4.2 sucessfully with SDL 1.1.7, now crashes
(with
SDL 1.1.8) with a SEG fault in SMPEG_new().Can you build a debug version of the SDL library and find out where it
crashes?Thanks,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software