Jim Aston <[EMAIL PROTECTED]> writes:

> I'm profiling Wine with cprof  http://opensource.corel.com/cprof.html 
> and I am curious as to why lstrlenA has a __TRY, __EXCEPT wrapper 
> around a strlen call.  The exception handling is 2/3 of the execution time.
> I also noticed that the exception handling isn't used outside the string 
> functions. lstrlenA is in the top 20 function calls.

Unfortunately Windows has an exception handler in there and apps rely
on it. This is Microsoft way of writing a developer-friendly API:
instead of crashing on bad pointers they allow the app to continue and
merrily corrupt your files or do whatever other damage it feels like
doing today.

All we can do is to make sure that we never use these string functions
in Wine itself; I have already started cleaning up some of them.

-- 
Alexandre Julliard
[EMAIL PROTECTED]

Reply via email to