473,396 Members | 2,011 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,396 software developers and data experts.

Data in a Module

We are in the process of converting a VB-6 DLL with about 100 classes to .NET as
part of the process of transforming a VB-6 app into an ASP app. Data that is
used by more than one of the Classes (e.g. configuration) is stored in variables
in a Module in the DLL.

Question: When more than one user is using the ASP app (and hence the DLL) at
the same time, do they have separate instances of the Module-level data or is
that shared amongst all users?

--
// Lee Silver
// Information Concepts Inc.
// http://www.information-concepts.com

Facilitating the automated conversion of Data into Information
since 1982

Nov 18 '05 #1
4 1002
A VB.net Module is the same as a Shared Class. Everything in it is Shared.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Lee Silver" <LS*****@information-concepts.com> wrote in message
news:lu***********************@news4.srv.hcvlny.cv .net...
We are in the process of converting a VB-6 DLL with about 100 classes to ..NET as part of the process of transforming a VB-6 app into an ASP app. Data that is used by more than one of the Classes (e.g. configuration) is stored in variables in a Module in the DLL.

Question: When more than one user is using the ASP app (and hence the DLL) at the same time, do they have separate instances of the Module-level data or is that shared amongst all users?

--
// Lee Silver
// Information Concepts Inc.
// http://www.information-concepts.com

Facilitating the automated conversion of Data into Information
since 1982

Nov 18 '05 #2
Kevin:

Thanks for the fast response.

A VB.net Module is the same as a Shared Class. Everything in it is Shared.

I suspected that was true because I thought I remembered reading it somewhere;
but I wasn't sure what the ramifications were for an ASP app.

I guess a little re-designing is in order.
--
// Lee

Nov 18 '05 #3
Hi Lee Silver ,
Thank you for using Microsoft Newsgroup Service. Based on your description,
youp're converting a set of vb6 dlls to dotnet dlls and use them in ASP.NET
web application. Also, you want to know the Module-level data in VB.NET is
shared as you put many data which will be used by several classes in the
VB.NET module? Please correct me if my understanding is not quite exact.
First, in ASP.NET, every webapplication run within AppDomain which is
smaller than a process. And Each web request from the client will be
processed in seperate thread. And the dlls(.net assembly) the web
application used are all shared in the same webapplications. For more
information on the Asp.net webapplication's runtime, you can view the tech
article throuth the following link:
http://msdn.microsoft.com/library/en...PNETHTTPRuntim
e.asp?frame=true
As for the "Module" in VB.NET, yes, just like what Kevin said, it is the
same as a shared class, you can put some shared functions there. But in
VB.NET or C# there is no global variables, you can use the Class's static
members to provide the same function.

If you have any questions on it, please feel free to let me know.
Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #4
Steven:

Thanks for confirming what Kevin said. Like I said to him,
a little re-design will solve the problem.

--
// Lee Silver
// Information Concepts Inc.

-----Original Message-----
Hi Lee Silver ,
Thank you for using Microsoft Newsgroup Service. Based on your description, youp're converting a set of vb6 dlls to dotnet dlls and use them in ASP.NET web application. Also, you want to know the Module-level data in VB.NET is shared as you put many data which will be used by several classes in the VB.NET module? Please correct me if my understanding is not quite exact.

First, in ASP.NET, every webapplication run within AppDomain which is smaller than a process. And Each web request from the client will be processed in seperate thread. And the dlls(.net assembly) the web application used are all shared in the same webapplications. For more information on the Asp.net webapplication's runtime, you can view the tech article throuth the following link:
http://msdn.microsoft.com/library/en...PNETHTTPRuntim
e.asp?frame=true
As for the "Module" in VB.NET, yes, just like what Kevin said, it is the same as a shared class, you can put some shared functions there. But in VB.NET or C# there is no global variables, you can use the Class's static members to provide the same function.

If you have any questions on it, please feel free to let me know.

Steven Cheng
Microsoft Online Support


Nov 18 '05 #5

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

Similar topics

2
by: RickMuller | last post by:
I really appreciate the ease that the distutils make distributing Python modules. However, I have a question about using them to distribute non-Python (i.e. text) data files that support Python...
5
by: jqpdev | last post by:
Hello all... I'm coming from a Borland Delphi background. Delphi has a specific component called a Data Module. In the designer the Data Module behaves like a windows form. A developer can...
3
by: Phillip Ian | last post by:
Just a quick architecture question. I'm just looking for discussion, not a flame war, please. In the past, I've tended to use a public module for my data layer functions. Something like: ...
1
by: Larry Bird | last post by:
I've created a AlertDataClass below within the class I have tables and column that I've create. In the AlertDataAccess class I'm trying to insert data into my tables. AlertDataAccess is a Module...
12
by: Steven Bethard | last post by:
Ok, so I have a module that is basically a Python wrapper around a big lookup table stored in a text file. The module needs to provide a few functions:: get_stem(word, pos, default=None)...
18
by: Joel Hedlund | last post by:
Hi! The question of type checking/enforcing has bothered me for a while, and since this newsgroup has a wealth of competence subscribed to it, I figured this would be a great way of learning...
1
by: Nathan Harmston | last post by:
Hi All, I ve got a single module which I m using to contain a lot of dictionaries, constants, general information, which are used by various other modules. However I can't seem to access them: ...
3
by: Peter J. Bismuti | last post by:
How do you define a "module data member" (I want to understand out how this works before making converting to a Class)? Right now I'm defining variables in a module that get put into the global...
3
by: James Mills | last post by:
On Thu, Oct 9, 2008 at 2:26 PM, Warren DeLano <warren@delsci.comwrote: Yes it does :) I second this. It's far better to use Data Structures rather than Programming Constructs
0
by: Gabriel Genellina | last post by:
En Wed, 19 Nov 2008 20:06:37 -0200, Yann Vonder <yann.vonderscher@gmail.comescribió: If you put tmod in both libraries, you'll have two copies of it, and two copies of the data. Can't you join...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.