Click here to Skip to main content
15,893,401 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralActive Desktop Pin
Grep14-Nov-02 22:47
Grep14-Nov-02 22:47 
GeneralCreateFile on COM1 Pin
Anonymous14-Nov-02 22:21
Anonymous14-Nov-02 22:21 
GeneralRe: CreateFile on COM1 Pin
NormDroid15-Nov-02 8:49
professionalNormDroid15-Nov-02 8:49 
GeneralGDI+ weird problems Pin
Vije14-Nov-02 22:14
Vije14-Nov-02 22:14 
Generaldialog apps with popups Pin
MattG14-Nov-02 21:55
MattG14-Nov-02 21:55 
GeneralRe: dialog apps with popups Pin
Christian Graus14-Nov-02 22:16
protectorChristian Graus14-Nov-02 22:16 
GeneralCOM server threading model / ASP Pin
devvvy14-Nov-02 21:42
devvvy14-Nov-02 21:42 
GeneralRe: COM server threading model / ASP Pin
Daniel Turini14-Nov-02 21:58
Daniel Turini14-Nov-02 21:58 
norm wrote:
How can you do this from an ASP application?
You can't. The thread model will follow that of the server component.

norm wrote:

<% Set Session("ad") = Server.CreateObject("MSWC.AdRotator")%>

This will store the com server in session scope.

Try not to do this. I don't know for this specific component, but storing an STA component on the Session or Application objects will impact your server performance and scalability very soon. The ASP engine has only one STA thread for creating and executing components. This means it will create a bottleneck for your pages and can hang your entire server.


My latest article:
SQL Server DO's and DONT's[^]
GeneralRe: COM server threading model / ASP Pin
devvvy14-Nov-02 22:06
devvvy14-Nov-02 22:06 
GeneralStatusbar update problem Pin
Equinoxe14-Nov-02 21:19
Equinoxe14-Nov-02 21:19 
GeneralChange Cursor again Pin
Dennis L14-Nov-02 21:11
Dennis L14-Nov-02 21:11 
GeneralRe: Change Cursor again Pin
georgiek5014-Nov-02 23:22
georgiek5014-Nov-02 23:22 
GeneralRe: Change Cursor again Pin
Dennis L15-Nov-02 0:51
Dennis L15-Nov-02 0:51 
GeneralHe PocketPC developers, PLEASE HELP! Pin
Daniel Strigl14-Nov-02 20:19
Daniel Strigl14-Nov-02 20:19 
GeneralRe: He PocketPC developers, PLEASE HELP! Pin
Daniel Strigl17-Nov-02 23:35
Daniel Strigl17-Nov-02 23:35 
Generalwindows hooks & move messages Pin
Dan_P14-Nov-02 20:18
Dan_P14-Nov-02 20:18 
GeneralHappy Birthday CodeProject! Pin
Anonymous14-Nov-02 20:17
Anonymous14-Nov-02 20:17 
GeneralRe: Happy Birthday CodeProject! Pin
Rickard Andersson2014-Nov-02 21:07
Rickard Andersson2014-Nov-02 21:07 
GeneralRe: Happy Birthday CodeProject! Pin
Christian Graus14-Nov-02 22:18
protectorChristian Graus14-Nov-02 22:18 
GeneralRe: Happy Birthday CodeProject! Pin
Anonymous14-Nov-02 22:27
Anonymous14-Nov-02 22:27 
GeneralRe: Happy Birthday CodeProject! Pin
Rickard Andersson2014-Nov-02 22:37
Rickard Andersson2014-Nov-02 22:37 
GeneralRe: Happy Birthday CodeProject! Pin
Ravi Bhavnani15-Nov-02 2:43
professionalRavi Bhavnani15-Nov-02 2:43 
GeneralGets the coordinates of the cursor's hot spot Pin
Eugene Pustovoyt14-Nov-02 19:51
Eugene Pustovoyt14-Nov-02 19:51 
GeneralRe: Gets the coordinates of the cursor's hot spot Pin
dabs14-Nov-02 23:23
dabs14-Nov-02 23:23 
GeneralRe: Gets the coordinates of the cursor's hot spot Pin
Dimitri Rochette16-Nov-02 10:33
Dimitri Rochette16-Nov-02 10:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.