Call it a compiler error - I moved one call from the constructor of the
class over to an initialiation routine, and voild, it works.


Regards

Thomas Tomiczek
THONA Consulting Ltd.
(Microsoft MVP C#/.NET)



-----Original Message-----
From: Thomas Tomiczek 
Sent: Dienstag, 16. April 2002 17:35
To: [EMAIL PROTECTED]
Subject: [DOTNET] Anyone knows what causes NullReferenceException in
__CxxCallUnwindDtor? (unmanaged C++, called from managed C++)


Hi,

I am just trying to constrcut com objects (A com object, actually)
manually without the registry keys being present :-) This is done
thorugh a factory method, just "creating the object" with new in managed
C++ (Actually with __nogc new)

The object in question is a Csource inheriting class (DirectShow
Filter), and in its constructor it is creating an object with a class
inheriting from CSourceStream (as output pin).

Now, when I single-Step this, I get an exception in the constructor of
this pin, and MY code for this is extremely simple - actually ust
calling the base constructor.

The error in question is even more helpless:

System.NullReferenceException: Object reference not set to an instance
of an object.
   at __CxxCallUnwindDtor(IntPtr , Void* )
   at DataSource.__ctor(DataSource* , SByte* pName, IUnknown* lpunk,
Int32* phr) in
c:\#work\quadra\quadra.videophone\quadra.videophone.conferencing.filters
\datasource.cpp:line 98
   at Quadra.Videophone.Conferencing.Filters.Factory.CreateDataSource()
in
c:\#work\quadra\quadra.videophone\quadra.videophone.conferencing.filters
\factory.cpp:line 21
   at Quadra.Videophone.Terminals.VideoRenderTerminal.OnConnect() in
c:\#work\quadra\quadra.videophone\quadra.videophone.terminals\videorende
rterminal.cs:line 68

Anyone has any idea what this means? I never heard of
__CxxCallUnwindDtor.

Regards

Thomas Tomiczek
THONA Consulting Ltd.
(Microsoft MVP C#/.NET)

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to