Results 1 to 7 of 7

Thread: Limitation of Code lines in Class File (VB6)

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    3

    Limitation of Code lines in Class File (VB6)

    Anybody know, if there is any limitation of no of lines of code in Class file?

    I am facing some issues, my class file contains 52535 lines of code. When I compile the code, VB6 compiler hangs. When I comment one of the procedure/function (almost 100 lines of code) anywhere in file, I am able to compile the project.

    Not sure whats happening..

    Anybody faced such issue? Any idea guys?

  2. #2

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    3

    Re: Limitation of Code lines in Class File (VB6)

    No specific comments on Net also.

  3. #3
    Lively Member
    Join Date
    Dec 2005
    Posts
    92

    Re: Limitation of Code lines in Class File (VB6)

    wow, i really have no idea? i dont think there'd be a limit without a general error message.. im not sure though.

  4. #4
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918

    Re: Limitation of Code lines in Class File (VB6)

    From the Microsoft VB 6.0 Programmer's Guide:

    The amount of code that can be loaded into a Form, Class, or standard module is limited to 65,534 lines. A single line of code can consist of up to 1023 bytes. Up to 256 blank spaces can precede the actual text on a single line, and no more than twenty-five line-continuation characters (_) can be included in a single logical line.
    Pete

    No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    3

    Re: Limitation of Code lines in Class File (VB6)

    Thanks for replies.

    But still the problem persist.
    Any Idea what could be the reason of not compiling.

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Limitation of Code lines in Class File (VB6)

    Lines including the class attribute settings, or available memory.

  7. #7
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Limitation of Code lines in Class File (VB6)

    Why on earth would you have a code segment that is that large???? Break it down into a few modules.

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