?
Solved

Too Many Blobfields Open

Posted on 1997-05-07
4
Medium Priority
?
215 Views
Last Modified: 2010-04-06
After we have printed several reports using rppro 2.0g we get the too many Blobfields open error and have to terminate the app in order to restore the system resources. The error occurs after about seven or so printouts on a 24 MB system.
We have narrowed this error down to what we believe is a database problem. One of our tables has a blobfield in the record. I believe this occurs on the following section of code.
Ch1BlobStream := TBlobStream.Create(MyoexorciserMain.TreatmentsCh1SessData, bmRead);
   Ch2BlobStream := TBlobStream.Create(MyoexorciserMain.TreatmentsCh2SessData, bmRead);
   Ch1BlobStream.Read(Ch1Array^, TotalPoints);
   Ch2BlobStream.Read(Ch2Array^, TotalPoints);
   MyoexorciserMain.Treatments.Cancel;
   Ch1BlobStream.Free;
   Ch2BlobStream.Free;

The arrays which are being assigned to the blobstreams are defined as follows:
{allocate storage for the raw channel data}
   Ch1Array, Ch2Array: PChanArray;
.....
PChanArray = ^TChanArray;
   TChanArray = Array[0..Max] of Byte; { MAX = 65,000}
   PAdaptArray = ^TAdaptArray;  

Is there a problem in the way we are assigning the arrays to the blobstreams? Does Delphi really free up these blobstreams and if so why do we get this error?

BTW we were unable to get the SET method to work for assigning the dynamic array directly to the bloblstream and the use of the filestream was very slow, although at this juncture I am open to any work around.
0
Comment
Question by:billmee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 

Author Comment

by:billmee
ID: 1335996
Edited text of question
0
 

Author Comment

by:billmee
ID: 1335997
Edited text of question
0
 

Author Comment

by:billmee
ID: 1335998
Incidentally, if we access the same record more than three times we get an exception violation.  The Too Many Bloblfiels open error is good for about 7 - 10 accesses of different records, if this is any help
0
 
LVL 3

Accepted Solution

by:
sperling earned 660 total points
ID: 1335999
Try not cancelling until you've freed the blobstreams. Might help, but I'm not sure.

Regards,

Erik.

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question