[prev in list] [next in list] [prev in thread] [next in thread]
List: ms-atl
Subject: Re: Bug using ATL string macros in exception catch block
From: Stephen W Gissendaner <Stephen_W_Gissendaner () HCONTROLS ! COM>
Date: 1997-07-30 22:11:00
[Download RAW message or body]
Not really because I want to use the fewest methods of handling strings
that I can. I think Microsoft should fix the problem. Untill then I'll put
my logic in a seperate function.
Thanks for the expaination though. BTW how did you figure it out?
SGIS
pradeep@NUVIEW.COM on 07/30/97 03:51:38 PM
To: ATL@LISTSERV.MSN.COM
cc: (bcc: Stephen W Gissendaner/Horton Controls Inc.)
Subject: Re: [ATL] Bug using ATL string macros in exception catch block
Hi,
The problem is VC doesn't handle stack allocations properly in
a catch block. OLE2CT calls alloca() to create temporary buffer
space. Use wcs2mbs (or some other API) instead of OLE2CT and
your problem should disappear.
Hope this helps.
IPradeep
pradeep@nuview.com
----------------------------------------------------------------
Users Guide http://www.microsoft.com/sitebuilder/resource/mailfaq.asp
contains important info including how to unsubscribe. Save time, search
the archives at http://microsoft.ease.lsoft.com/archives/index.html
----------------------------------------------------------------
Users Guide http://www.microsoft.com/sitebuilder/resource/mailfaq.asp
contains important info including how to unsubscribe. Save time, search
the archives at http://microsoft.ease.lsoft.com/archives/index.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic