Subject | [IBO] Re: application using up ram |
---|---|
Author | Michael Vilhelmsen |
Post date | 2004-03-05T08:28:05Z |
--- In IBObjects@yahoogroups.com, Helen Borrie <helebor@t...> wrote:
I open a cursor like this:
MyCursor.ParamByName('something....
MyCursor.Open
SomeInsQuery.FIeldByNAme('SomeValue') := MyCursor.FieldByName
('Some').
SomeInsQuery.ExecSQL;
MyCursor.Close;
Commit;
Or am I using Cursors the wrong way ?
My customer types a number on the screen, and when he presses ENTER I
find the according record with a cursor, like:
Select VALUES from TABLE Where Number = :PNumber.
Thank you for your fast reply.....
I'm starting to get a problem on one of our Terminal Servers because
the appl. is using up all RAM as time goes......
Michael
> At 08:06 AM 5/03/2004 +0000, you wrote:objects,
>
> > >
> > > Can you show the SQL for a couple of these dsql and cursor
> >and thecommit ?
> > > code that you use with them?
> >
> >I could, but before I do, I would like to ask another thing.
> >
> >What happens if I open a cursor, and do not close it before a
> >Will this affect this ?the last
>
> No, you don't open and close cursors. There is no buffering.
> You call First on tib_cursor to "open" it and it's "finished" when
> row has been fetched.Maybe I have missed something.
>
> How many rows are you reading? Where are you putting the data?
I open a cursor like this:
MyCursor.ParamByName('something....
MyCursor.Open
SomeInsQuery.FIeldByNAme('SomeValue') := MyCursor.FieldByName
('Some').
SomeInsQuery.ExecSQL;
MyCursor.Close;
Commit;
Or am I using Cursors the wrong way ?
My customer types a number on the screen, and when he presses ENTER I
find the according record with a cursor, like:
Select VALUES from TABLE Where Number = :PNumber.
Thank you for your fast reply.....
I'm starting to get a problem on one of our Terminal Servers because
the appl. is using up all RAM as time goes......
Michael
>
> Helen