473,320 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

VB6 project group load problem

This is a request for assistance analyzing a problem we are experiencing in
our VB6 development environment. All our code is developed in VB6, and our
persistance layer is SQL Server. We are planning to convert this project to
dot net sometime in the future.

Our architecture is an exe project with references to four business object
dlls. Also, each one of our tables is encapsulated in a data object dll.
The data objects are referenced by the exe and the business object dlls as
needed.

This project is currently in production with installs at over 300 customer
sites. The project has been in development for over three years, and has
steadily gotten larger as additional functionality is added.

In our development environment, we load the exe project in the VB IDE with
whichever business objects we happen to be working on at the time. We load
these in a project group in a single instance of the VB6 IDE.

Recently, we have started running into a problem where when we load the
project group containing the exe project and a business dll, we start taking
numerous errors that look like this:

"Could not create reference '<path to dll>'."

The number and order of the errors depends on the order in which projects
are loaded in the project group. It does not matter what else is running on
the machine, nor does it matter what system resources are available.

We already have a workaround for this problem. Instead of loading the exe
and the business objects in a single project group, we have started loading
the exe in one VB6 instance and the business objects in another VB6
instance. This workaround is fine for our development purposes, and we are
continuing using this technique.

However, since I am not certain precisely what limitation is causing this
problem, I am concerned that our current architecture is not supportable and
we are going to run into this limitation again sometime in the future and
will be unable to continue with our development.

Note that we plan to migrate the application to dot net in the future, as we
have customer demand and develop the customer support that we will need to
support it in the field.

Analysis of our exe vbp shows references to the following code modules:
- 18 class modules
- 87 forms
- 25 bas modules
- 1 resource file

In addition, the exe vbp has references to the following:
- 23 ocx modules, 21 of which are 3rd party, two are in-house
- 131 dll references, 126 are in-house, one is 3rd party, and four are
Microsoft:
* Microsoft ActiveX Data Objects 2.7 Library
* Microsoft Data Formatting Object Library 6.0 (SP4)
* Microsoft Data Report Designer 6.0 (SP4)
* OLE Automation

This number of references does not seem particularly large to me, and I have
worked on much larger projects in the past.

Research on MSDN shows plenty of information on VB limitations, specifically
Microsoft Knowledge Base Article 229756:
http://support.microsoft.com/default...b;en-us;229756

After analyzing these limitations, these are the ones that concern me with
regard to my project, which I quote here from the KB article:

1. Project-Name Table - The entire application uses a single table that
contains all names. These include: Constant names; Variable names;
User-defined - type definition names; Module names.

2. DLL-procedure declaration names - The project name table is unlimited in
total size, but is limited to a total of 32K case-sensitive unique entries.
If the limit is reached, reuse private identifiers in different modules to
limit the number of unique entries to 32K.

3. Import Table - Every reference to an identifier in a different module
creates an entry in the Import Table. Each such entry is a minimum of 24
bytes and is restricted to 64K, resulting in roughly 2,000 references per
module.

These limitation descriptions may be technically correct, but they do not
give me the information that I need to analyze the problem we are currently
experiencing in our development environment. Also note that these quotes do
not specify whether they refer to a single project or a project group.

My questions are these:
1. Do the "Could not create reference" errors that we take when loading our
project group indicate a problem with our project architeture?
2. If there is a problem with our architecture, what changes should we make?
3. Will our planned dot net conversion affect this arcitecture problem
positively or negatively?

I would be grateful for any information anyone has to offer. Thank you very
much for your time.
Nov 20 '05 #1
7 5771
* "George Copeland" <vb***@DELETETHIStechie.com> scripsit:
[...]

Your question is not related to VB.NET programming, so please don't post
to groups that are not related to the question.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
George Copeland wrote:

"Could not create reference '<path to dll>'."


About the only thing I can suggest is to open the VBG file in notepad
and make sure the EXE project gets loaded last. At least that way, all
dll projects should be loaded by the time the EXE starts looking for
references. I've never tried debugging DLLs from 2 separate instances of
VB. btw... make sure you're registry is kept clean! Run RegClean if you
don't have commercial cleaners available.

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..
Nov 20 '05 #3
"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in message
news:ec**************@TK2MSFTNGP09.phx.gbl...
About the only thing I can suggest is to open the VBG file in notepad
and make sure the EXE project gets loaded last. At least that way, all
dll projects should be loaded by the time the EXE starts looking for
references. I've never tried debugging DLLs from 2 separate instances of
VB. btw... make sure you're registry is kept clean! Run RegClean if you
don't have commercial cleaners available.


Thanks, I already know I can change the behavior by loading the projects in
different orders. I'm not sure about the reg cleaner idea: MS no longer
supports regclean so it worries me, and I have yet to find a commercial one
that is worth a flip.
Nov 20 '05 #4
George Copeland wrote:

Thanks, I already know I can change the behavior by loading the projects in
different orders. I'm not sure about the reg cleaner idea: MS no longer
That's why I usually add my 'RegClean Disclaimer' stuff when suggesting
RegClean... fwiw, I only know of one combination of OS/Office that
causes problems after RegClean's done it's work (listed in my disclaimer)

Subject: Re: DLL showing on the Project/reference in Visual Basic
http://groups.google.com/groups?selm...&output=gplain
supports regclean so it worries me, and I have yet to find a

commercial one that is worth a flip.

I like (and use) this one... I have their 'pro' version (with all of the
add-on's) but the registry cleaner part is identical to the "non-pro"
version. I still use RegClean for quick cleans though. It targets only
the part of the registry that deals with activeX components so it's quick.

System Mechanic
http://www.iolo.com/sm/4/index.cfm

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..
Nov 20 '05 #5
"Ken Halter" <Ken_Halter@Use_Sparingly_Hotmail.com> wrote in message
news:uM**************@TK2MSFTNGP12.phx.gbl...
I like (and use) this one... I have their 'pro' version (with all of the
add-on's) but the registry cleaner part is identical to the "non-pro"
version. I still use RegClean for quick cleans though. It targets only
the part of the registry that deals with activeX components so it's quick.

System Mechanic
http://www.iolo.com/sm/4/index.cfm


Thanks a million for the info and reference.
Nov 20 '05 #6
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c6************@ID-208219.news.uni-berlin.de...
Your question is not related to VB.NET programming, so please don't post
to groups that are not related to the question.


Apparently you didn't read my post. Try again.
Nov 20 '05 #7
* "George Copeland" <vb***@DELETETHIStechie.com> scripsit:
Your question is not related to VB.NET programming, so please don't post
to groups that are not related to the question.


Apparently you didn't read my post. Try again.


Sure, I read it.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Neil Alford | last post by:
I've got a project that has been developed in C++ using Visual Studio .NET Professional and I'm trying to load it into Visual C++ .NET Standard, however, although the main project workspace file...
3
by: Cemoran | last post by:
I am fairly new to .Net and I am having a problem opening a web project in visual studio .Net. I created a web project from an existing project in the manner described in an MSDN article. The...
12
by: Jones | last post by:
I am having problems with my C# project. The project was built using VS.net (original release with service pack 1). The project includes windows forms and a DLL (dot.net) After getting the...
0
by: Ricardo Lopez | last post by:
When I load a Visual C# project which has assembly references (dll references) that do not exist, I get a little yellow triangle with an exclamation point. But the project still loads. If I do...
4
by: Stephen Miller | last post by:
Hi, I am running v1.1.4322 on Win2K server and unable to debug a ASP.Net application running locally, using a full URL (ie www.mysite.com). When I hit F5, I get the following error message: ...
4
by: Josh Golden | last post by:
i lead a small development team (based on some of my posts that might cause some people to choke themselves, but have no fear, i am NOT the lead developer, the people on my team are great - i'm...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
49
by: Martin Unsal | last post by:
I'm using Python for what is becoming a sizeable project and I'm already running into problems organizing code and importing packages. I feel like the Python package system, in particular the...
2
by: suneelid2000 | last post by:
Hi, I am trying to open a solutions containing around 8 projects. But for one project when i am trying to load it is giving the error that The project type is not supported by this installation.....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.