Memory Issues

Warren Kuhl warrenkuhl at gmail.com
Tue Mar 29 07:54:09 CDT 2011


Ivan/Ruslan,

I was looking at this page which is why I never picked up on the
vcursor_decontructor...

http://www.valentina-db.com/dokuwiki/doku.php?id=valentina:products:adk:api:vcursor_class:vcursor_class

Something that might want to be added?

Have a great day!
Warren

On Tue, Mar 29, 2011 at 7:02 AM, Warren Kuhl <warrenkuhl at gmail.com> wrote:

> Ruslan/Ivan,
>
> Thanks for your help!  I will give the command a try.  I do apologize as I
> must of overlooked the VCursor_Destructor command.
>
> Warren
>
>   On Tue, Mar 29, 2011 at 1:37 AM, Ruslan Zasukhin <
> ruslan_zasukhin at valentina-db.com> wrote:
>
>> On 3/28/11 8:19 AM, "Warren Kuhl" <warrenkuhl at gmail.com> wrote:
>>
>> Hi Warren,
>>
>> > Is there anything I have to do to a empty my memory when doing select
>> > statements with Valentina?  It seems like each of my select statements
>> are
>> > increasing the storage in my memory when I run my application.
>> Eventually
>> > the software bogs down my pc.  When I comment out the select statements,
>> > this doesn't happen.  I was under the impression that as long as I empty
>> my
>> > cursor when I don't need it anymore, this should take care of the
>> problem.
>> >
>> > Here is my code in Runtime Revolution....
>> >
>> > put VDataBase_SqlSelect(mDatabase,"SELECT term1 FROM MyTable where
>> Keyword1
>> > = '" & tphrase & "'") into curs
>> > put  VCursor_FieldValue( curs, 1 ) into tTerms
>>
>>
>> > put empty into curs
>> ^^^^^^^^^^^^^^^^^
>>    I think this is wrong line.
>>
>>
>>
>> Curs  is CursorRef.
>>
>> In V4REV architecture, you create objects using V4REV funcs,
>> And you must destroy them using V4REV funcs.
>>
>> You should call something as
>>
>>    VCursor_Destructor( curs )
>>
>>
>>
>> --
>> Best regards,
>>
>> Ruslan Zasukhin
>> VP Engineering and New Technology
>> Paradigma Software, Inc
>>
>> Valentina - Joining Worlds of Information
>> http://www.paradigmasoft.com
>>
>> [I feel the need: the need for speed]
>>
>>
>> _______________________________________________
>> Valentina mailing list
>> Valentina at lists.macserve.net
>> http://lists.macserve.net/mailman/listinfo/valentina
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macserve.net/pipermail/valentina/attachments/20110329/a84234f9/attachment-0001.htm>


More information about the Valentina mailing list