472,353 Members | 1,939 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 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 5672
* "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,...
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...
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...
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...
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...
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...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM...
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...
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...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...

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.