destructor is called recursively.

Hi all,
I have out of proc COM server, which is giving
exception saying stack overflow.

and the stack overflow is due to the destructor of
this component is called recursively.

any ideas will be greatly appreciated.

thanx,
manish


Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi,

What did you do in you outofproc component to cause the recursive destructor
? Check that destructor code does not contain something like “delete this”.
Or one of you static members do not call the same suicide code.
This also might be caused by an incorrect ref count. Something might have
called AddRef one too many times and then the destruction process will try
to destroy all instances or something of this sort.
Sorry my only guessing here cause you haven’t provided any source code to
tell precisely.

Hope this helps,
Stas

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Manish Sapariya
Sent: Wednesday, March 21, 2001 12:05 PM
To: NT Developers Interest List
Subject: [ntdev] destructor is called recursively.

Hi all,
I have out of proc COM server, which is giving
exception saying stack overflow.

and the stack overflow is due to the destructor of
this component is called recursively.

any ideas will be greatly appreciated.

thanx,
manish


Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/


You are currently subscribed to ntdev as: xxxxx@powernetsys.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Attach the debugger to a faulting server process and debug your code.
Be sure you understand the C++ rules related to destructors correctly.

Max

----- Original Message -----
From: “Manish Sapariya”
To: “NT Developers Interest List”
Sent: Wednesday, March 21, 2001 1:04 PM
Subject: [ntdev] destructor is called recursively.

> Hi all,
> I have out of proc COM server, which is giving
> exception saying stack overflow.
>
> and the stack overflow is due to the destructor of
> this component is called recursively.
>
> any ideas will be greatly appreciated.
>
> thanx,
> manish
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com