LotusScript to C API Programming Guide

rtLib Domino Rich Text Management template
Home
Show details for ContentContent
Purchase
Ready-to-use samples
Hide details for Online resourcesOnline resources
Technotes and goodies
Reference
Header files
Forum
Links
Happy readers

Anonymous

login


 

Hosted by Prominic.NET, Inc.
Main topic: ODSReadmemory NotesRichtext item

ODSReadmemory NotesRichtext item (by Normunds Kalnberzins, 11/20/2006 02:17:33 PM)

well, you have to be a bit careful. The code you use, reads from item and write the data to iType. As it is Integer variable you won't be able to store there much -- 2 bytes or 1 DWORD. If you write more data, you'd overwrite something else in memory, hence the crash/hanging.

If you need more data, you can for example create an integer array with size large enough to accommodate all the data you will read. Then you could print out this data to a file without ever having to allocate/release memory that you do by using the MemoryManager class.