Re: win32lib: Weird problems out of the blue.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Mario Steele wrote:
> 
> 
> This sounds like another Memory Leakage error, that is caused by using the
> RichEdit structures to change the Font, Escape, Color, and various other
> aspects of a RichEdit Control's Text.  I know I ran into this problem when
> working on my Simple RichEdit library.  Derek, you may want to double check
> your RichEdit functions, to make sure they are truely releasing the RichEdit
> structures, and they aren't just being nestled away, allowing memory to
> accumulate.
> 
> Mario Steele
> <a
> href="http://enchantedblade.trilake.net">http://enchantedblade.trilake.net</a>
> Attaining World Dominiation, one byte at a time...
> 

Thanks Mario,

While Derek ponders on this, let me just add to the knowledge base. My program
is currently spread out over 28 files (other than Win32lib, EUGrid, etc.) with
approx 19,600 lines of code so far. I am using RichEdit in about 17 places to
display on-screen reports (basically print previews). I have recently found a
better way to do this with Bitmap and bitBlt but would still like to see a better
RichEdit. As of now, when I try to output anything directly to RichEdit, the
display appears and disappears in a flash leaving a blank RichEdit box (no error
messages). So, I use a temporary variable to design the page with "\n" "\t" etc.
and then setText the variable to RichEdit to get a final display. Shoddy method,
I agree, but could not find a better way till I found Bitmap and bitBlt. (Any
suggestions from anybody for something even better?)

At present, I am converting all my RichEdit previews to Bitmap previews but,
like I said, why not an error-free RichEdit anyway?

Hope this helps.

Regards.
Anando

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu