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?
Re: Limitation of Code lines in Class File (VB6)
No specific comments on Net also.
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.
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.
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.
Re: Limitation of Code lines in Class File (VB6)
Lines including the class attribute settings, or available memory.
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.