CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Aug 2003
    Location
    London
    Posts
    515

    Class module size \ Memory usage

    What are the implications for a large class module and memory usage?

    We've recently inherited a project that has a huge class module that is basically a data access layer, has lots of methods for retrieving & updating data etc - it exposes hundreds of methods. (I can sort of see what the programmer was thinking, but he could've encapsulated into smaller classes!)

    I remember having a problem with large standard modules, since all the code contained is loaded into memory when you call a procedure within the module - client machines were running out of available memory! Does anyone know if it is the same thing for classes when you instansiate a new object, or does it just locate & allocate memory when you call methods?

    eg;
    Code:
    Set x = new MyObject
    'All the code contained is now loaded into memory???
    Any thoughts?

    Cheers
    Last edited by Dmorley; August 4th, 2005 at 07:31 AM.
    If it helped, then please rate the post by clicking "Rate this post"!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured