-
Aug 13th, 2024, 11:31 PM
#1
Thread Starter
Fanatic Member
Command Line vs IDE compile - something weird...
I've got a big project. The IDE would crash when I compiled so I wrote up a little batch file to compile from the command line and that worked well. Out of memory or something? No idea.
Later I switched computers and did a full VB6 reinstall and now the program compiles without crashing inside the IDE. But just for fun I tried the command line compile.
When I compile the project inside the IDE it compiles with no error. When I compile it from the command line I get an error Line 662 User Defined Type Not Defined. Is this a big deal? No idea. But the program is acting up a bit. When I use frmTest.show(1) I get an error. When I use Dim TestForm as new frmTest and TestForm.show(1) it works. So that's weird.
I just know there's something up. But what?
I really don't know how the command line compile reads lines. Does it count comments? Does it include blank lines or exclude them? I don't see any way to determine which line the command line is choking on.
I opened the form with NotePad++ and scrolled down to the 662nd line of the form and it was just Exit Sub.
Any ideas how I can see if there is really an error of some type and how I can figure out where it is?
Any help would be much appreciated.
-
Aug 13th, 2024, 11:38 PM
#2
Re: Command Line vs IDE compile - something weird...
Originally Posted by Darkbob
I opened the form with NotePad++ and scrolled down to the 662nd line...
Notepad++Line 662 <> VB6IDE-Line662
Olaf
-
Aug 14th, 2024, 01:27 AM
#3
Re: Command Line vs IDE compile - something weird...
Open the form’s codepane in VBIDE and as you scroll down there is a position indicator on the toolbar right saying “Ln 123” — this matches the line which compiler is reporting on compile errors. It does not match line in NPP as it skips form designer data in front and attributes throughout the code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|