Re: wstring throws exception
- From: viresh <viresh@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 9 May 2005 08:49:30 -0700
"Peter Koch Larsen" wrote:
>
> "viresh" <viresh@xxxxxxxxxxxxxxxxxxxxxxxxx> skrev i en meddelelse
> news:88EC6211-4CD2-4C41-A373-99CC6293C5F8@xxxxxxxxxxxxxxxx
> >
> >
> > "Peter Koch Larsen" wrote:
> >
> >>
> >> "viresh" <viresh@xxxxxxxxxxxxxxxxxxxxxxxxx> skrev i en meddelelse
> >> news:D042E61A-6CF1-49B7-AC79-A7313CB1FDC4@xxxxxxxxxxxxxxxx
> [snip]
> >> > it can be large. Every once in a while when i assign the BSTR to
> >> > wstring
> >> > local variable an unhandled exception is thrown. The length of the BSTR
> [snip]
> >> Looks as you have blown the heap.
> >>
> >> /Peter
> >
> > You mean the allocation failed bcoz of insufficient memory ?
> > I checked the mem usage on m/c and there was plenty of available memory.
>
> I meant you somehow destroyed your heap - read Stephens excellent
> explanation.
>
> /Peter
>
Thanks for all the suggestion and insights.
I applied the patches on stl as per the link provided by Carl. I am still
getting the exception. So i went ahead and looked at my code for any
mismatches for new/delete. I don't use any C mem alloc function( mine are MS
COM components)
I don't have any mismathes in my code. However there might be mismatch in
the 3rd party API' that i use( C API for JMS)
Is there a way to determine the location of these mismatches ?
.
- Follow-Ups:
- Re: wstring throws exception
- From: Stephen Howe
- Re: wstring throws exception
- References:
- wstring throws exception
- From: viresh
- Re: wstring throws exception
- From: Peter Koch Larsen
- Re: wstring throws exception
- From: viresh
- Re: wstring throws exception
- From: Peter Koch Larsen
- wstring throws exception
- Prev by Date: Re: converting std::basic_string to upper or lower case.
- Next by Date: Re: string format
- Previous by thread: Re: wstring throws exception
- Next by thread: Re: wstring throws exception
- Index(es):