Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General » View Thread |
Messages 1 to 4 of 4 total |
Out of memory while adding large files |
Fri, Feb 29 2008 1:21 PM | Permanent Link |
Tomas | Hi,
When I try to add large file(about 300mb) to blob field and post record I get "Out of Memory". How to avoid this error? Regards, Tomas |
Mon, Mar 3 2008 6:46 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Tomas,
<< When I try to add large file(about 300mb) to blob field and post record I get "Out of Memory". How to avoid this error? >> What version of DBISAM ? Local or C/S ? Disk table or in-memory table ? Are you using the default Delphi memory manager, FastMM4, or the DBISAM memory manager in your application ? -- Tim Young Elevate Software www.elevatesoft.com |
Mon, Mar 3 2008 3:04 PM | Permanent Link |
Tomas | I get the same errro in Local and CS. I use disk tables.
I am not sure about memory manager, I use Delphi 2007 and DBISAM 4.25 Build 6. As I know Delphi 2007 use FastMM4 by default, how to check it? The below code where I get error procedure ResizeBuffer(Value: Integer; var BufferToResize: PChar; var ExistingSize: Integer; ShrinkBuffer: Boolean=False); begin if (Value > 0) then begin if (Value > ExistingSize) then begin if (ExistingSize=0) then BufferToResize:=AllocMem(Value) else begin >>>Error -> ReAllocMem(BufferToResize,Value); FillChar((BufferToResize+ExistingSize)^,(Value-ExistingSize),#0); "Tim Young [Elevate Software]" <timyoung@elevatesoft.com> wrote: Tomas, << When I try to add large file(about 300mb) to blob field and post record I get "Out of Memory". How to avoid this error? >> What version of DBISAM ? Local or C/S ? Disk table or in-memory table ? Are you using the default Delphi memory manager, FastMM4, or the DBISAM memory manager in your application ? -- Tim Young Elevate Software www.elevatesoft.com |
Tue, Mar 4 2008 2:45 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Tomas,
<< I get the same errro in Local and CS. I use disk tables. I am not sure about memory manager, I use Delphi 2007 and DBISAM 4.25 Build 6. As I know Delphi 2007 use FastMM4 by default, how to check it? >> If you're using D2007, then you're using FastMM4. You're probably not going to be able to do anything about this other than to try and compress the contents of the BLOB before storing it to the database since this is simply being caused by the address space not being capable of allocating the block of memory that is necessary to store that large of a BLOB. -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Saturday, April 27, 2024 at 08:52 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |