do you have run time type info enabled in your visual studio project? If you don't than, I believe that's your problem.
Project properties -> C/C++ -> Language -> Enable Run-Time Type Info

Bruno Marques

On 2/13/06, Josef Grunig <[EMAIL PROTECTED]> wrote:
Hi,

in the meantime I tried to extend ShadowMapViewport. I followed step
by step Dirk's post
(http://www.mail-archive.com/[email protected]/msg02309.html )
creating a SoftShadowMapVieport class + base class which extends
ShadowMapVieport.

Everything compiles and builds well, but at runtime, during newPtr
call in shallowCopy method the program crashes with this error:

not handled exception 0x7c81eb33 in rthdriClient.exe: Microsoft C++
exception: __non_rtti_object @ 0x0012f830.

Code where crash happens:

FieldContainerPtr SoftShadowMapViewportBase::shallowCopy(void) const
{
    SoftShadowMapViewportPtr returnValue;

here --->>    newPtr(returnValue, dynamic_cast<const
SoftShadowMapViewport *>(this));

    return returnValue;
}

The only change I made from the Dirk's check list was to remove the
fields already present in ShadowMapViewport; otherwise I get "WARNING:
ERROR: Double field description in ..."

--
Josef Grunig
www.blending-life.org


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to