Re: User exception

From: Alexander Nickolov (agnickolov_at_mvps.org)
Date: 05/08/04


Date: Sat, 8 May 2004 00:24:53 -0700

I stay by my original post - you have memory corruption.
This usually happens when you (e.g. somebody in your process)
free something and then the memory manager does housekeeping
and finds out about the mess. By then, the error is long since
masked... I suggest you get a good defect analysis tool, like
Purify, BoundsChecker, or Insure++, and analyze your program.
These aren't cheap...

-- 
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Dave" <dave5397@btinternet.com> wrote in message
news:eC4ondBNEHA.620@TK2MSFTNGP10.phx.gbl...
> No, it's a simple (non COM) dll and as previously suggested, I am not
using
> BSTR's at all, only LPSTR variables and I do no calls to SysFreeString.
>
> How is an LPSTR variable actually passed as it's held as Unicode, so VB, I
> assume must actually make an ANSI copy pointed to by LPSTR.
>
> Thanks for looking at this - any other ideas?
>
> "Kim Gräsman" <kim@mvps.org> wrote in message
> news:OgxF#DANEHA.1392@TK2MSFTNGP09.phx.gbl...
> > Dave,
> >
> > > > "User breakpoint called from code at ..."
> > >
> > > That's an assert. May happen because the memory is corrupted.
> >
> > More specifically, IIRC, this is from one of the OS allocators. I
/think/
> > I've seen this before when someone calls SysFreeString multiple times on
> the
> > same pointer, i.e. frees an already freed BSTR.
> >
> > My immediate guess is you have a property or method returning a BSTR,
and
> > that you're not copying it for [out]. If you have one of those, can you
> post
> > [parts of] the code?
> >
> > Kim
> >
> >
>
>


Relevant Pages

  • Re: Bsod irql_not_less_or_equal
    ... Your reads indicate memory corruption in the pagefile, and this is most frequently used during more memory intensive operations. ... Bugcheck Analysis * ... The exception code that was not handled ...
    (microsoft.public.windows.vista.performance_maintenance)
  • Memory Problem w/ASUS A7V133 MB in XP Pro - repost
    ... Original post 3/2/08 ... The problem begins when I try to upgrade the memory using 512MB ... it would not boot with one 256 + one512. ... a different scenario with more helpful info I hope. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Good Microsoft TV ad!
    ... ZnU wrote: ... The page does give an estimate for the frequency of memory corruption, however: roughly one bit error, per month, per gigabyte of memory. ... If that system would lose or corrupt data in the event of a memory failure, then it is a poorly designed system. ...
    (comp.sys.mac.advocacy)
  • Re: Good Microsoft TV ad!
    ... Steve de Mena wrote: ... The page does give an estimate for the frequency of memory corruption, however: roughly one bit error, per month, per gigabyte of memory. ... If that system would lose or corrupt data in the event of a memory failure, then it is a poorly designed system. ...
    (comp.sys.mac.advocacy)
  • Re: Memory leak
    ... Memory corruption can turn into leaks. ... > to think it was a memeory leak than a memory corruption. ... > I was wondering could XML COM compoenet is not properly ...
    (microsoft.public.windowsce.embedded.vc)