Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Components
|
VB Components Issues specific to components in VB.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 7th, 2004, 02:34 AM
Registered User
 
Join Date: Dec 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Finding Memory Occupied By a Object

Hi all, I trying to find the memory occupied by the object in the RAM i didnt succeded. please help me.

Thanx in advance

Satish Kumar J
 
Old December 7th, 2004, 05:55 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Which "the" object?
Marco
 
Old December 7th, 2004, 11:57 PM
Registered User
 
Join Date: Dec 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am Creating a object like,
Dim Obj As new AdoDB.RecordSet

Or

Set Obj = CreateObject("AdoDB.RecordSet")

So i want to know the memory occupied by "Obj" in the RAM.

Thanks for responding....

Satish Kumar J
 
Old December 10th, 2004, 03:58 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ahh, if it was that simple how easy would be to debug memory leeks...
Unfortunatelly there is no way to know how much memory has been allocated by an object. If the 'object' is an array, then you can use ubound. Len returns the length of a string or the size of a udt, but that it pretty much it.
Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Remove Excel Object From Memory jatinp82 BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 2 May 30th, 2007 03:53 PM
Memory akkad C# 0 January 9th, 2007 10:01 AM
Out of Memory ocabrera70 Classic ASP Components 0 February 15th, 2006 09:08 PM
create a Line object ,Box object in CR at Runtime? thanhnt Pro VB 6 1 May 16th, 2005 06:51 AM
Memory linguva Access 2 December 19th, 2003 07:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.