Solved

Server.CreateObject vs. CreateObject

Posted on 2000-05-15
4
215 Views
Last Modified: 2010-05-02
CreateObject instantiates on the client and Server.CreateObject on the server - am I right?
0
Comment
Question by:maritimegirl
  • 2
  • 2
4 Comments
 
LVL 28

Expert Comment

by:AzraSound
ID: 2811424
Server.CreateObject vs CreateObject

http://www.4guysfromrolla.com/webtech/043099-1.shtml
0
 
LVL 28

Accepted Solution

by:
AzraSound earned 25 total points
ID: 2811639
another snippet i found on the web:

"Server.CreateObject vs. CreateObject

The ASP Developer should use the Server.CreateObject Object. If the ASP Developer uses MTS/COM+ library packages, use of Server.CreateObject would help to avoid blocking of threads. The reason being CreateObject equates to calling CoCreateInstance by the scripting engine. If the ASP Developer uses CreateObject, instead of Server.CreateObject, then the following can occur:

ASP is not aware of the object.
OnStartPage/OnEndPage page methods are not called.
ASP does not know the threading model of the object.
Server.CreateObject equates to GetObjectContext.CreateInstance. This means ASP is aware of the object and knows its threading model. In addition, by calling Server.CreateObject, the component will be in the same transaction as your ASP page if your ASP page is transactional."
0
 

Author Comment

by:maritimegirl
ID: 2811922
Adjusted points from 10 to 25
0
 

Author Comment

by:maritimegirl
ID: 2811923
Thanks - it is clearer now.  Hopefully it will solve a problem I have using createobject.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now