Solved

Server.CreateObject vs. CreateObject

Posted on 2000-05-15
4
243 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

752 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