New Blog Post: PDF/A and Metadata

EOutOfResources with TppRichText

edited June 2001 in General
Hello,

In my application, I get an error EOutOfResources when RB tries to preview
(I think) a TppRichText with big stream.
Here is what I do :

procedure TFrm.ppDetailBandBeforeGenerate(Sender: TObject)
zM : TMemoryStream;
begin
zM := Obj.DoStream; (Obj is a object which gives to me a created
TMemoryStream);
zM.Position := 0;
ppRichText.LoadFromRTFStream(zM);
zM.Free;
end;

How to do to not have this error ?

Thank's a lot,

Laurent VARES.

DECALOG. FRANCE. www.paprika.net
decalog@paprika.net

Comments

  • edited June 2001
    Hello - bis,

    the problem occurs only where PrintDevice is 'screen'. No problem with
    printer or RTF document (with TExtraDevice).

    Thank's for your help.

    Laurent.
  • edited June 2001
    Laurent:

    Can you create a small example and send it to support@digital-metaphors.com?
    This will get you the quickest solution. You should also mention your OS
    version and what your hardware is.

    HTH,
    Ed Dressel
    Team DM

  • edited June 2001
    Thank's for your response.

    Few precisions on my configuration :

    W98 SE, Delphi 4 SP3, RB 5.56

    On NT 4, it runs correctly !!!

    I'm going to send to you an example.

    Laurent.
  • edited June 2001
    > Few precisions on my configuration :

    I could have guess this. NT has a lot more resources then W98.

    Ed Dressel
    Team DM
  • edited June 2001
    did you create all forms on start of your application?
    This will bind many resources. Perhaps you can create the forms on demand,
    and destroys them when not needed. This will decrease the use of windows
    resources. Win9x has not many of them and if some other resorce eating
    programs like office is open then its a problem.

    chris
  • edited June 2001
    I've sent to Digital Metaphors tech support a little project, with one form
    wich contains :
    TppReport, TppViewer, 3 buttons and TppJITPipeline.

    When I click on 'Preview button', I load a rtf file (8 Ko) in a ppRichText
    and when RB try to show it, I get an error. With the 'Print button', it
    runs.
    However, on NT station, no problem.

    Laurent.
This discussion has been closed.