Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Monitoring Procedure in VB

Status
Not open for further replies.

windows98

Programmer
Nov 3, 1999
39
AU
I would like to be able to monitor the size of a procedure during writting it in VB 6. This is limited to 64 kB and if exceeded requires reworking or the programme cannot be compiled.<br>
Regards,<br>
Henry. <p>Henry Drillich<br><a href=mailto:drillich@tpgi.com.au>drillich@tpgi.com.au</a><br><a href= > </a><br>
 
Could I ask why you're limited to 64k?<br>
<br>
Been a while since I saw a question like this... &lt;smile&gt;<br>
<br>
Mike<br>
<p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
VB6 is limiting the siaze of the procedure. If the procedure is "longer" than 64K,it comes with this warning. The program will not run (or compile). The remedy is to break the procedure into smaller parts.<br>
Regards,<br>
Henry.
 
so -- you mean the size of the source code?<br>
<br>
I would split the thing into two or three modules - 64k is quite big.<br>
<br>
-ml<br>
<p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
Yes, the size of the code. As I said in my previous message this is the way out of the problem, namely breaking the code into smaller parts. What I am really after is some monitoring the size of the code during writing it, so as to prevent overstepping the limit (wchich happens occasionally).<br>
Regards,<br>
Henry.
 
Dear Henry,<br>
<br>
I never hit this problem, and I code every day in VB and look after some other programmers as well.<br>
<br>
I hope you don't take it amiss if I suggest that if you're hitting 64000 bytes in one module that the module might not be modular enough.<br>
<br>
You're probably going to take that as a critiscm, but it's not meant that way. I'm well aware that it's easy for mature programs to grow in ways that you don't want to think about directly after a meal (some of mine have).<br>
<br>
Regards<br>
<br>
Mike<br>
<p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
Dear Mike,<br>
Thanks for your comments with which I must agree.Incidentally this problem happened to me only (once) recently when attacking some quite involved technical issue. However this still leaves the question unanswered: How one can monitor the size of the procedure?<br>
Regards,<br>
Henry.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top