Wrox Home  
Search P2P Archive for: Go

  Return to Index  

proasp_howto thread: Re: How To


Message #1 by "Fredrik Normen" <fredrik.normen@s...> on Mon, 31 Jul 2000 18:4:7
Choice 1. The reason it's marked as Apartment Threaded is that some of the
OLEDB Providers (Jet 2.51 for example) aren't thread safe. ADO itselft is
thread safe. There's a .reg file int he MDAC install directory (\Program
Files\Common Files\system\ado) to change the registry settings to free
threaded.

Dave


"Yogesh" wrote in message news:8111@p..._howto...
>
> Hi !
>
> Can anybody help me by giving correct anwers to following questions.
>
> Which of the following statements is true?
> Choice 1
>  The ADO library is free-threaded, but listed in the Windows Registry as
> apartment model.
> Choice 2
>  You should use ADO as free-threaded unless you can verify that all of the
> underlying components can be used apartment model.
> Choice 3
>  The ADO library is neither free-threaded model nor apartment model, but
is
> listed in the Windows Registry as free-threaded.
> Choice 4
>  The ADO library is apartment model, but listed in the Windows Registry as
> free-threaded.
> Choice 5
>  The ADO library is single-threaded model, but listed in the Windows
> Registry as free-threaded.
>
>
> <% strStatus = Response.Status %>
> What will the above code accomplish?
> Choice 1
>  It will set the contents of the browser's status line text only until the
> document is loaded, then it will revert to "done".
> Choice 2
>  It will set the contents of the browser's status line text, usually
> located below the browser's content window.
> Choice 3
>  It will report if the request is complete or in progress to the server.
> Choice 4
>  It will clear the server cache.
> Choice 5
>  It will return the status of the server, which begins with a three digit
> code. [Change to:] It will set the status of the server, which begins with
> a three digit code.
>
>
> Result = exp1 Eqv exp2
> The line of VBScript above is functionally equivalent to which code sample
> below:
>
>
> Choice 1
>      If IsNull(exp1) OR IsNull(exp2) Then
>        Result = Null
>     ElseIf (exp1 AND exp2) OR (Not exp1 AND Not exp2) Then
>        Result = True
>     Else
>        Result = False
>     End If
> Choice 2
>      If exp1 = True AND exp2 = True Then
>        Result = False
>     Else
>        Result = True
>     End If
> Choice 3
>      If IsNull(exp1) OR IsNull(exp2) Then
>        Result = Null
>     ElseIf (exp1 = True AND exp2 = True) Then
>        Result = True
>     Else
>        Result = False
>     End If
> Choice 4
>      If (exp1 = True AND exp2 = True) Then
>        Result = True
>     Else
>        Result = False
>     End If
> Choice 5
>      If IsNull(exp1) OR IsNull(exp2) Then
>        Result = Null
>     End If
>
> When does the Application onStart event fire?
> Choice 1
>  When the web server is started.
> Choice 2
>  When the first request for an .asp document in the application occurs.
> Choice 3
>  When the user requests the global.asa file.
> Choice 4
>  When the Application.onStart event handler is called from within an .asp
> document.
> Choice 5
>  When the first request occurs for any document in the application virtual
> directory.
>
> Thanx in advance.
>
> Yogc
>
>



  Return to Index