Compile Error Procedure Too Large In Vb 6.0
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Is there a way to suppress “procedure too large” error in VB6? up vote 1 down vote favorite I am debugging an old application writeen in VB6. I am getting this compile error after doing a lot of debugging. Is there a way to stop these type of errors or should I do the manual process of dividing the big procedure into smaller ones. vb6 share|improve this question asked Sep 9 '14 at 9:03 Deepak Mishra 854822 How big does it need to be to trigger that? Hopefully there aren't that many to deal with .. and what made them [suddenly] "too large"? –user2864740 Sep 9 '14 at 9:05 3 Well you could have chopped it up into smaller ones by now. And the code would be 'better'. –Tony Hopkinson Sep 9 '14 at 9:06 1 Looks like there isn't: duckduckgo.com/?q=vb6+%22procedure+too+large%22 Are you expecting a different answer here than on all those other forums? –Jean-Francois Corbett Sep 9 '14 at 9:06 It has around 2600 lines and it is a existing one which runs without any error. It gives error while debugging only by adding it into a .vbg group. –Deepak Mishra Sep 9 '14 at 9:10 1 "It has around 2600 lines " - what could possibly go wrong..... –Mitch Wheat Sep 9 '14 at 10:25 | show 1 more comment 2 Answers 2 active oldest votes up vote 2 down vote Your compiled procedure cannot exceed 64kb. You should break it up into different sub routines as advised in the documentation. Or for VBA macros (which your code isn't) You might get this error message if the macro has been created using the 64-bit version of Office. Workaround share|improve this answer answered Sep 9 '14 at 11:45 community wiki MarkJ It should be 32 bit only as I don't think any 64-bit of vb6 enterprise edition is available and another point is that I am working on Windows server 2003 which is itself 32 bit. –Deepak Mishra Sep 9 '14 at 12:12 Agreed with the splitting of the operations. If you have that much going on inside of on
360 games PC games Windows games Windows phone games Entertainment All Entertainment Movies & TV Music Business & Education Business Students & educators Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet http://stackoverflow.com/questions/25740588/is-there-a-way-to-suppress-procedure-too-large-error-in-vb6 Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Lumia All https://support.microsoft.com/en-us/kb/983044 Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft
Unanswered Topics Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6 Procedure too large - Urgent User Name Remember Me? Password Reminder Password Register Register | http://p2p.wrox.com/beginning-vb-6/55310-procedure-too-large-urgent.html FAQ | Members List | Calendar | Today's Posts | Search Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET). Search Forums Show Threads Show Posts Advanced Search Find All Thanked Posts Go to Page... Welcome to the p2p.wrox.com Forums. You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is compile error a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free . Page 1 of 3 1 23 > Thread compile error procedure Tools Display Modes #1 (permalink) March 13th, 2007, 09:03 AM devireddybalu Registered User Join Date: Mar 2007 Location: , , . Posts: 3 Thanks: 0 Thanked 0 Times in 0 Posts Procedure too large - Urgent Hi All, This is related to Visual Basic 6.0. I am getting the compile error "Procedure too large". Is there any limitations while creating a huge procedure in Visual Basic 6.0. My procedure contains 2500 lines. All lines required. I splitted into sub procedures and call the subs into main procedure. Eventhough it is giving compile error. Can anyone help me. Thanks and advance Regards Balakrishna #2 (permalink) March 13th, 2007, 12:08 PM woodyz Friend of Wrox Join Date: May 2006 Location: San Diego, CA, USA. Posts: 643 Thanks: 0 Thanked 0 Times in 0 Posts First of all, hopefully all the lines your are coding are required!!! If you were writting code with lines that are NOT required - you'd really need help. So what is your problem? Once you have broken your sub into smaller subs everything should be working fine. Is there some new compiling error? Please clarify. So what is your new compile error? One bit of advice fro