Board index » delphi » EOutOfResources Error

EOutOfResources Error

I was trying to add dynamically a ssVertical scrollbar to a Tmemo whenever the
number of lines exceed a number when I got this error whenever this is true.  I
don't get this when I added the ssVertical at design time.  I tried to trap it
using the OnChange event of the Tmemo like this

procedure MemoChange(Sender: TObject);
begin
     with Memo do begin
        if Lines.Count > 8 then ScrollBars := ssVertical
         else  ScrollBars := ssNone;
     end;
end;

Appreciate any help.
Ike.

 

Re:EOutOfResources Error


I had that problem before and it went away when I did....

Go to option screen in the project manager, and in linking option screen,
change your stack and heap size to double.

Sandra Kim
--
                                               ______________________  
                                          o O /                      \  
                                        o    |  What's Delphi? GPF??  |  
                                              \______________________/  
               <>+<>                 //////      __v__        __\/__  
   `\|||/      /---\     """""""    | _ - |     (_____)   .  / ^  _ \  .
    (q p)     | o o |   <^-@-@-^>  (| o O |)   .( O O ),  |\| (o)(o) |/|
_ooO_<_>_Ooo_ooO_U_Ooo_ooO__v__Ooo_ooO_u_Ooo_ooO__(_)__Ooa__oOO_()_OOo___
[_____}_____!____.}_____{_____|_____}_____i____.}_____!_____{_____}_____]

SSDS*SSDS*SSDS*SSDS*SSDS*SSDS*SSDS*SSDS*INC*INC*INC*INC*INC*INC*INC*INC*I
NC

Other Threads