473,587 Members | 2,227 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5782
* "George Copeland" <vb***@DELETETH IStechie.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_Hotm ail.com> wrote in message
news:ec******** ******@TK2MSFTN GP09.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_Hotm ail.com> wrote in message
news:uM******** ******@TK2MSFTN GP12.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***@DELETETH IStechie.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
1302
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 seems to load OK none of the projects within the workspace load, I get an error message that just tells me that they failed to load and thats it. ...
3
1656
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 project built successfully and saved successfully. The next day when I opened the solution, I received an error stating that the web project was...
12
1648
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 application working, everything compiled and was troubleshooted. Ready for delivery, the owner decided to change the Name of the application and DLL....
0
1377
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 the same thing with a Visual C++ project, I get the "Project <foo.vcproj> failed to load". I created a simple example of this to make sure it...
4
11133
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: <debugger_error_message> Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be...
4
1998
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 just the manager) for my company. although we attempt to use good practices for development, we have no real experience in documentation of a project...
0
5546
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 ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
49
3907
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 isomorphism between filesystem and namespace, doesn't seem very well suited for big projects. However, I might not really understand the Pythonic way....
2
356
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.. But the same code is working fine in my lead machine. What is the problem?? can anyone please suggest a solution to this problem.
0
7915
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8205
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5712
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2347
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.