[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Silence an annoying exception in acmMetrics
From:       "James Hatheway" <james () macadamian ! com>
Date:       2000-09-29 14:28:28
[Download RAW message or body]

Sorry!! I sent this to the wrong mailing
list....


-James


-- 
James Hatheway
Software Designer - Macadamian Technologies, Inc.
james@macadamian.com ~ http://www.macadamian.com

   "Nothing is a problem once you debug the code."


----- Original Message ----- 
From: "James Hatheway" <james@macadamian.com>
To: "WineHQ Devel" <wine-devel@winehq.com>
Cc: "James Hatheway" <james@macadamian.com>
Sent: Friday, September 29, 2000 10:26 AM
Subject: Silence an annoying exception in acmMetrics


> Hi,
> 
> With this patch, it makes debugging in acm
> stuff a bit easier.  It silences an exception in
> acmMetrics.
> 
> Basically what is happening is that acmMetrics
> calls MSACM_GetObject on the incoming hao
> parameter.  Inside MSACM_GetObject, it calls
> IsBadReadPtr, if that fails it returns NULL.
> However, it is possible for the incoming 
> hao parameter to be NULL, so this IsBadReadPtr
> causes an exception (and breaks in the debugger).
> Of course, you can pass this exception and everything
> works fine, but it makes things confusing when 
> mixed in with REAL exceptions....
> 
> So I basically check for NULL, and if it is NULL
> I don't call MSACM_GetObject.  Nothing is really
> changed, just less times I have to type "pass."
> while debugging some ACM stuff.
> 
> 
> Changelog:
>   James Hatheway - james@macadamian.com
>   Silence unneeded exception to allow easier ACM
>   debugging
> 
> Modified:
>   dlls/msacm/msacm32_main.c
> 
> -- 
> James Hatheway
> Software Designer - Macadamian Technologies, Inc.
> james@macadamian.com ~ http://www.macadamian.com
> 
>    "Nothing is a problem once you debug the code."
> 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic