Re: User exception
From: Alexander Nickolov (agnickolov_at_mvps.org)
Date: 05/08/04
- Next message: Alexander Nickolov: "Re: ActiveX Unload Me ATL7.1"
- Previous message: Ali Mehrolhassani: "How to create a watermark in RichEdit print output?"
- In reply to: Dave: "Re: User exception"
- Next in thread: Dave: "Re: User exception"
- Messages sorted by: [ date ] [ thread ]
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 > > > > > >
- Next message: Alexander Nickolov: "Re: ActiveX Unload Me ATL7.1"
- Previous message: Ali Mehrolhassani: "How to create a watermark in RichEdit print output?"
- In reply to: Dave: "Re: User exception"
- Next in thread: Dave: "Re: User exception"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|