|
-
June 9th, 2011, 02:24 PM
#1
Make executable error (VB6)
Hello everyone!
I got a VB6 project thrown into may hands and finally got to a point I don't know what to do. I did not write the original code, although I am trying to improve it, but I'm new to Visual Basic, so I'm still figuring out lots of stuff.
The project is actually a group of 2, consisting mainly of an app project and a ActiveX dll project.
While developing, everything works ok, functions get called allright and I never get errors. However, when I tried to build an executable version, for eventually building an installer for the app using InstallShield, I got an error saying one of the functions (I added) couldn't be found. After trying that, the whole project would never compile again, stating an infinite number of errors when loaded. I had to revert to a backup (lucky I backed up...) and start over.
I decided to guess that maybe when running the program from the developer (VB) it uses the projects source codes directly, buy when trying to build the .exe, it will look for the .dll file instead, so I tried to build the .dll file before. That's when I got to the second boom, getting a linker error, "fatal error LNK1102: out of memory". The resulting .dll is a 4kb file (when the original was over 500kb)
Now the fun part... making the .exe file works, but the app itself crashes, obviously. So guessing again, the .dll build managed to create a list of function prototypes, but not the code itself? Which would partially confirm my first guess.
I'm not sure how to split the .dll class to make it smaller and avoid the out of memory issues.
Does anyone have some pointers on how to setup the project? Where to look for any key info, files I can/should trash, references? Code analisys?
Thank you very much! Regards,
Nikel
Tags for this Thread
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
|