[V4MD] Cursor_Destroy

Martin Wright martin at kinetix.co.uk
Mon Jan 23 10:22:36 CST 2006


 
Hi Ruslan

When I call 'gMyCursor = VOID' there is no indication in the message window
thet the cursor is destroyed - 
i.e. no 'V4MD *:Cursor_Destroy...*'

I am creating many cursors in a repeat loop.

The following code:
	gMyCursor = new( xtra "VCursor", GetRef(gMyDB), sql)
	RecCount = GetRecordCount(gMyCursor) 
	subChapter_list = GetRecordsAsPropList(gMyCursor)
	gMyCursor = VOID


Produces the following message:
	* V4MD *: GetRef...done
	* V4MD *: new VCursor...done
	* V4MD *: Cursor_GetRecordCount...done
	* V4MD *: Cursor_GetRecordsAsPropList...done

Martin








On 1/22/06 2:10 PM, "Martin Wright" <martin at kinetix.co.uk> wrote:

Hi Martin,

> Even though I always us 'gMyCursor = VOID' there are always lots of 'V4MD
*:
> Cursor_Destroy...*' when I stop the application.
> Is there any better way of destroying the cursor?

= VOID is correct way.

> Or is there a way of checking if one exists?

Strange. 

* IS anything happens on  gMyCursor = VOID  ?
On this call Director should destroy cursor.

* Cursor_Destroy show show some number. This is address of cursor object.
    it is possible find where it was born.
    

MAY BE you have something as

    curs = select()

    curs = select()

    surs = VOID

I.e. You have lost first cursor ... Although Director should self destroy
first cursor after second select() and assignment done.



--
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






More information about the Valentina mailing list