P
Peter Judge
Guest
Tim, One thing that becomes important when working with MEMPTRs is that they can only have a size allocated once in the ABL. You cannot resize them dynamically (although hopefully this will be mitigated/solved soon). This is especially pertinent when working with sockets - you cannot be sure how many chunks of data you are receiving and how much data is in each chunk. Now you get into a game of copying data and and/or reallocating memory and general pain ensues. I ran into this when writing the HTTP Client and ended up creating a wrapper about all that painful, annoying stuff. It's called a ByteBucket: documentation.progress.com/.../OpenEdge.Core.ByteBucket.html . You can just throw data into/at it and it'll do the internal resizing and allocations for you.
Continue reading...
Continue reading...