|
 |
asp_components thread: Using VC++ Components from ASP
Message #1 by "Vijaykumar P (RBIN/DBA-MST)" <Vijaykumar.P@i...> on Tue, 27 Nov 2001 14:44:48 +0100
|
|
Hi,
We have VC++ Dll which we are using from ASP. But we found that there were memory leak problems. So we troubleshooted further by
making use of PDH component (Refer MSDN Article: Your Right to Know, Part II More on Windows NT Performance Counters by Rick
Anderson, Microsoft Corporation).
But when we tried to use the PDH component from ASP, it is not getting instantiated. We put the code in global.asa.
==========
Sub Session_OnStart
Session("G_cnt") = 0
Dim vx
Dim v(2)
v(0) = "\Process(Wrapper)\Private Bytes"
v(1) = "\Process(Wrapper)\Handle Count"
v(2) = "\\pcp_k3_nts\Process(_Total)\Handle Count"
Session("rx") = CreateObject("R1PHDMOD.rx4VB") ' Is not working - Error: Missing Default Property
vx = v
Session("rx").initLog vx, "C:\Wrapper", False, True
End Sub
==========
What is the reason for the above error?
Also, have you guys faced problems using VC++ components from ASP? Is it robust?
TIA,
- Vijay
Message #2 by "Lewis, James" <James.Lewis@i...> on Tue, 27 Nov 2001 10:08:38 -0700
|
|
The only time I have encountered this error is when the IDL for an
automation control omits the [default] keyword from the default interface.
Because the universal marshaller does not not know how to Query Interface
for IDispatch you have to define at least one interface as the default
interface. Below are examples:
This is a good example:
library REPLISTLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(E91C7A45-81CA-4E3F-9237-AD2749EB4E69),
helpstring("Replist Gen Class")
]
coclass CoRepGen
{
[default] interface IRepList2; <--- good
};
};
This is a bad example:
library REPLISTLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(E91C7A45-81CA-4E3F-9237-AD2749EB4E69),
helpstring("Replist Gen Class")
]
coclass CoRepGen
{
interface IRepList2; <--- bad, missing default
};
};
-----Original Message-----
From: Vijaykumar P (RBIN/DBA-MST) [mailto:Vijaykumar.P@i...]
Sent: Tuesday, November 27, 2001 6:45 AM
To: ASP components
Subject: [asp_components] Using VC++ Components from ASP
Hi,
We have VC++ Dll which we are using from ASP. But we found that there were
memory leak problems. So we troubleshooted further by making use of PDH
component (Refer MSDN Article: Your Right to Know, Part II More on Windows
NT Performance Counters by Rick Anderson, Microsoft Corporation).
But when we tried to use the PDH component from ASP, it is not getting
instantiated. We put the code in global.asa.
==========
Sub Session_OnStart
Session("G_cnt") = 0
Dim vx
Dim v(2)
v(0) = "\Process(Wrapper)\Private Bytes"
v(1) = "\Process(Wrapper)\Handle Count"
v(2) = "\\pcp_k3_nts\Process(_Total)\Handle Count"
Session("rx") = CreateObject("R1PHDMOD.rx4VB") ' Is not working
- Error: Missing Default Property
vx = v
Session("rx").initLog vx, "C:\Wrapper", False, True
End Sub
==========
What is the reason for the above error?
Also, have you guys faced problems using VC++ components from ASP? Is it
robust?
TIA,
- Vijay
$subst('Email.Unsub')
Message #3 by "devanand" <devanand@p...> on Tue, 27 Nov 2001 22:21:56 -0500
|
|
Boss
did u go to this URL?
http://support.microsoft.com/support/kb/articles/Q263/2/21.ASP
dev
---------- Original Message ----------------------------------
From: "Vijaykumar P (RBIN/DBA-MST)" <Vijaykumar.P@i...>
Reply-To: "ASP components" <asp_components@p...>
Date: Tue, 27 Nov 2001 14:44:48 +0100
Hi,
We have VC++ Dll which we are using from ASP. But we found that there were memory leak problems. So we troubleshooted further by
making use of PDH component (Refer MSDN Article: Your Right to Know, Part II More on Windows NT Performance Counters by Rick
Anderson, Microsoft Corporation).
But when we tried to use the PDH component from ASP, it is not getting instantiated. We put the code in global.asa.
==========
Sub Session_OnStart
Session("G_cnt") = 0
Dim vx
Dim v(2)
v(0) = "\Process(Wrapper)\Private Bytes"
v(1) = "\Process(Wrapper)\Handle Count"
v(2) = "\\pcp_k3_nts\Process(_Total)\Handle Count"
Session("rx") = CreateObject("R1PHDMOD.rx4VB") ' Is not working - Error: Missing Default Property
vx = v
Session("rx").initLog vx, "C:\Wrapper", False, True
End Sub
==========
What is the reason for the above error?
Also, have you guys faced problems using VC++ components from ASP? Is it robust?
TIA,
- Vijay
--
Devanand Ganesan
Sr.Systems Analyst
Pinnacle Software Pvt Ltd
207 R.K.Mutt Road
Mandaveli
Chennai,India
ZIP:600028
email:devanand@p...
web:www.pinnacle-aims.com
--
Message #4 by "Vijaykumar P (RBIN/DBA-MST)" <Vijaykumar.P@i...> on Wed, 28 Nov 2001 05:23:17 +0100
|
|
yes checked this articles too...! but it is applicable to win2k but we use
winnt. and it says about memory leak in pdh. does it affect finding out
memory leak in vc++ component (in winnt)?
> -----Original Message-----
> From: devanand [SMTP:devanand@p...]
> Sent: Wednesday, November 28, 2001 8:52 AM
> To: ASP components
> Subject: [asp_components] Re: Using VC++ Components from ASP
>
> Boss
> did u go to this URL?
> http://support.microsoft.com/support/kb/articles/Q263/2/21.ASP
>
> dev
> ---------- Original Message ----------------------------------
> From: "Vijaykumar P (RBIN/DBA-MST)" <Vijaykumar.P@i...>
> Reply-To: "ASP components" <asp_components@p...>
> Date: Tue, 27 Nov 2001 14:44:48 +0100
>
>
> Hi,
>
> We have VC++ Dll which we are using from ASP. But we found that there were
> memory leak problems. So we troubleshooted further by making use of PDH
> component (Refer MSDN Article: Your Right to Know, Part II More on Windows
> NT Performance Counters by Rick Anderson, Microsoft Corporation).
> But when we tried to use the PDH component from ASP, it is not getting
> instantiated. We put the code in global.asa.
> ==========
> Sub Session_OnStart
> Session("G_cnt") = 0
> Dim vx
> Dim v(2)
> v(0) = "\Process(Wrapper)\Private Bytes"
> v(1) = "\Process(Wrapper)\Handle Count"
> v(2) = "\\pcp_k3_nts\Process(_Total)\Handle Count"
> Session("rx") = CreateObject("R1PHDMOD.rx4VB") ' Is not working
> - Error: Missing Default Property
> vx = v
> Session("rx").initLog vx, "C:\Wrapper", False, True
> End Sub
>
> ==========
>
> What is the reason for the above error?
>
> Also, have you guys faced problems using VC++ components from ASP? Is it
> robust?
>
> TIA,
> - Vijay
>
>
>
> devanand@p...
> $subst('Email.Unsub')
>
>
>
> --
> Devanand Ganesan
> Sr.Systems Analyst
> Pinnacle Software Pvt Ltd
> 207 R.K.Mutt Road
> Mandaveli
> Chennai,India
> ZIP:600028
> email:devanand@p...
> web:www.pinnacle-aims.com
> --
>
>
> Vijaykumar.P@i...
> $subst('Email.Unsub')
>
> Read the future with ebooks at B&N
> http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&category
> id=rn_ebooks
|
|
 |