473,395 Members | 1,846 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,395 software developers and data experts.

Object creation using global.asa

The problem is that I cannot create an object at the Application level
using GLOBAL.ASA.

However, the aftfam object works perfectly well when created on an ASP page
using Server.createobject. It outputs "true556" which is expected.

The problems does not seem to be syntax since the reference to the
AUtils object seems to work just fine.

Is there some magic difference in my VB code that differs depending on how
I create the object?
From http://www.developmentnow.com/g/62_2...sp-general.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
Dec 8 '05 #1
2 1428
What's a "aftfam object" ?

Bob Lehmann

"PGCPAUL" <Pa**@fasttrack.net> wrote in message
news:47**********************************@msnews.m icrosoft.com...
The problem is that I cannot create an object at the Application level
using GLOBAL.ASA.

However, the aftfam object works perfectly well when created on an ASP page using Server.createobject. It outputs "true556" which is expected.

The problems does not seem to be syntax since the reference to the
AUtils object seems to work just fine.

Is there some magic difference in my VB code that differs depending on how
I create the object?
From http://www.developmentnow.com/g/62_2...sp-general.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com

Dec 8 '05 #2
Is the object free-threaded? If not, you must not attempt to store it in
Application or Session.

PGCPAUL wrote:
The problem is that I cannot create an object at the Application level
using GLOBAL.ASA.

However, the aftfam object works perfectly well when created on an
ASP page using Server.createobject. It outputs "true556" which is
expected.

The problems does not seem to be syntax since the reference to the
AUtils object seems to work just fine.

Is there some magic difference in my VB code that differs depending
on how
I create the object?
From
http://www.developmentnow.com/g/62_2...sp-general.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com


--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Dec 8 '05 #3

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

Similar topics

0
by: pavana | last post by:
Hi, I have a class with a constructor which does some socket initialisation. I need to call the constructor before the dll is loaded. For this, I do something like this in the code (written in...
8
by: Marty | last post by:
Hi, I'm new to C#, I used to code in VB.NET. Where is the best place to declare all my constants and global objects in my C# project to have them accessible globally? I have an event logger...
3
by: Balaji Kannan | last post by:
Hi, In dot net during component development i have used some member variables in the class file. Inside the class i have used the member declaration and the instant handling in the following...
8
by: Vishwanathan Raman | last post by:
Hi I have a declared a static DataSet object SOBJ in Global.asax.I also have a localy defined DataSet LSOBJ in Global.asax which I am storing in Application State.Is there any technical...
9
by: Rob Nicholson | last post by:
Is it possible to trap the creation of a new object and carry out other operations after it's been created? For example, if creating an object of a specific type, then add a reference to a global...
8
by: Gawain Lavers | last post by:
I have a script which uses a lot of object augmentation (in order to extend the functionality of DOM elements), and I'm clearly stressing out my browser (I rapidly get to a point where Firefox is...
12
by: Andrew Poulos | last post by:
With the following code I can't understand why this.num keeps incrementing each time I create a new instance of Foo. For each instance I'm expecting this.num to alert as 1 but keeps incrementing. ...
44
by: petermichaux | last post by:
Hi, I have been using the following line of code to create an object called "Serious" if it doesn't already exist. if (Serious == null) {var Serious = {};} This works in the scripts I use...
4
by: alex | last post by:
I am so confused with these three concept,who can explained it?thanks so much? e.g. var f= new Function("x", "y", "return x * y"); function f(x,y){ return x*y } var f=function(x,y){
1
by: Neo | last post by:
Hi Friends, I want to create a single instance of my class and use it through out my program. Simple solution is, I can make a static method and invoke it by different callers. So first caller...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.