So, I modified the code to use WRITE PICTURE FILE. Nice. Runs much faster. It 
did quit late last night. And again this morning when I was also reading email, 
this time with a system crash message - unable to grow buffer.

Once I finish with email, and the web, I’ll restart the machine and restart the 
export from where it left off. It is having its problems when it goes to export 
a series of 40Mb retinal scans.

> On Apr 1, 2020, at 5:51 PM, Keisuke Miyako via 4D_Tech <[email protected]> 
> wrote:
> 
> only speculating,  but maybe the intense creation of BLOBs is saturating or 
> fragmenting the 32-bit cache management of v15.
> 
> it seems like you don't really need to use a BLOB, you could simply call 
> WRITE PICTURE FILE
> https://doc.4d.com/4Dv15/4D/15.6/WRITE-PICTURE-FILE.301-3818335.en.html
> 
> since you are on Mac, you could monitor the memory usage of 4D with Activity 
> Monitor.
> I suspect it keeps on growing until a crash near 4GB.
> 
> perhaps you could launch a new process and export a few hundred records at a 
> time.
> every time the process dies, maybe you would see that the memory usage 
> returns to normal.
> 
>> 2020/04/01 12:19、Robert McKeever via 4D_Tech <[email protected]>のメール:
>> 
>> If (([ScannedDocuments]FileType="JPEG") | ([ScannedDocuments]FileType="JPG"))
>> PICTURE TO BLOB([ScannedDocuments]FullImage;$MyBlob;".jpg")
>> Else 
>> PICTURE TO BLOB([ScannedDocuments]FullImage;$MyBlob;".bmp")
>> End if 
>> BLOB TO DOCUMENT(document;$MyBlob)
> 
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************

_________________________________________
Bob McKeever                      http://www.mswl.com <http://www.mswl.com/>
McKeever's Software Wizardry
Port Coquitlam, B.C.
[email protected]




**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to