Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Server.CreateObject vs. CreateObject

Posted on 2000-05-15
4
Medium Priority
?
283 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 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses

783 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