Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Server.CreateObject vs. CreateObject

Posted on 2000-05-15
4
Medium Priority
?
270 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 100 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…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

719 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