Need help with debugging a directx9 game crashing

Ken Thomases ken at codeweavers.com
Wed Jul 24 13:33:51 CDT 2013


On Jul 24, 2013, at 12:49 PM, Qian Hong wrote:

> Hi Ken,
> 
> On Sun, Jul 21, 2013 at 2:39 PM, Ken Thomases <ken at codeweavers.com> wrote:
>> Instead of enabling the trace, try replacing it with something like:
>> 
>>    char dummy[256];
>>    memset(dummy, 0x55, sizeof(dummy));
>> 
>> I bet the crash will change from a read access to 0x00000001 to 0x55555555.
>> 
> 
> Thanks for the advice, it sounds cool and I learned new things, thank you.
> However, it doesn't help in this case, I didn't found any change after
> the dummy hack.

Hmm.  You may need to mark the dummy array as volatile to prevent it from being optimized away.  Worth trying.  You might also increase the size of the array.

-Ken




More information about the wine-devel mailing list