- Roland Smith
- PowerBuilder
- Monday, 8 May 2023 02:23 PM UTC
PB 2022
I'm allocating a blob to use for the output from a Windows API function:
lblb_Buffer = Blob(Space(lul_BufferSize), EncodingAnsi!)
Buffer size is 262,164,339.
The result is:
---------------------------
PowerBuilder application execution error (R0108)
---------------------------
Application terminated.
Error: Not enough memory to execute the operation at line 28 in function compress of object n_compression.
---------------------------
OK
---------------------------
This is a demo app just for the Windows API functions so nothing else is going on in the app.
Customer stated that the built-in CompressorObject/ExtractorObject are too slow so I put together an example of the Windows functions Compress/Decompress. They are fast but the above problem limits use.
Is there some other way to allocate a blob? This is a little under 256 MB which isn't that large when dealing with files.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.