Manju George
June 11th, 2004, 06:56 AM
Hi,
I have some problem in loading and playing some of the sample forcefeedback effects that are coming along with the DirectX SDK. It doesn't have with all but some like click1, rolling, dribble, machinegun etc. It is possible to play these effects without any problems from ForceEditor as well as the sample application ReadFFE. But when I try to load these effects with my application I get the following in the debug window:
HEAP[MyApp.exe]: Invalid Address specified to RtlFreeHeap( 130000, 1d61d0 )
and the callstack look like:
NTDLL! 77fb6972()
NTDLL! 77fb5bbe()
NTDLL! 77fa6afc()
NTDLL! 77fccc55()
KERNEL32! 7c5737b2()
DINPUT8! 04eac39c()
DINPUT8! 04ea5382()
DSCDirectInputCustomEffects::LoadEffectsInFile(CString {"C:\DX90SDK\Samples\Media\click1.ffe"}) line 35 + 32 bytes
The enumeration code is as follows:
if (lpdirindeDevice)
{
HRESULT hr = lpdirindeDevice->EnumEffectsInFile(cstrPath, EnumEffectsInFileCallBkFunc, (LPVOID)this, DIFEF_MODIFYIFNEEDED);
}
Here I run to some userbreak points and while debugging I could see that the callback function 'EnumEffectsInFileCallBkFunc' is never called.
I have created a similar effect as click1.ffe, it that file I could load with my application.
Can anybody help me to solve this problem?
Thanks
I have some problem in loading and playing some of the sample forcefeedback effects that are coming along with the DirectX SDK. It doesn't have with all but some like click1, rolling, dribble, machinegun etc. It is possible to play these effects without any problems from ForceEditor as well as the sample application ReadFFE. But when I try to load these effects with my application I get the following in the debug window:
HEAP[MyApp.exe]: Invalid Address specified to RtlFreeHeap( 130000, 1d61d0 )
and the callstack look like:
NTDLL! 77fb6972()
NTDLL! 77fb5bbe()
NTDLL! 77fa6afc()
NTDLL! 77fccc55()
KERNEL32! 7c5737b2()
DINPUT8! 04eac39c()
DINPUT8! 04ea5382()
DSCDirectInputCustomEffects::LoadEffectsInFile(CString {"C:\DX90SDK\Samples\Media\click1.ffe"}) line 35 + 32 bytes
The enumeration code is as follows:
if (lpdirindeDevice)
{
HRESULT hr = lpdirindeDevice->EnumEffectsInFile(cstrPath, EnumEffectsInFileCallBkFunc, (LPVOID)this, DIFEF_MODIFYIFNEEDED);
}
Here I run to some userbreak points and while debugging I could see that the callback function 'EnumEffectsInFileCallBkFunc' is never called.
I have created a similar effect as click1.ffe, it that file I could load with my application.
Can anybody help me to solve this problem?
Thanks