locked
Crash on new a instance which inherits from Windows::UI::Xaml::DependencyObject

    Question

  • My class as following, when migrate it from vs release preview to latest version, the unsealed class needs inheriting from a winrt base class. And I did it as introduciton, but my app crash when new a instance of this class. Does anyone shares me any idea?

    public ref class MVCObject: public Windows::UI::Xaml::DependencyObject, IMVCObject
    {
       internal:
           MVCObject(void)
          {
            Index = -1;
             Duration = 0;
             StartTime = 0;
       
            ObjectType = MVCObjectType::Unknow;
           }

    .....

    }

    void MyMethod()

    {

    MVCObject^ temp = ref new MVCObject();

    ....

    }

     

    Friday, August 17, 2012 10:47 AM

All replies

  • Hello,

    Would you please provide us the whole codes to reproduce this issue,

    You can upload your project to skydriver
    http://skydrive.live.com/

    It is not necessary that you send out the whole of your project. We just need a simplest sample to reproduce the problem. You can remove any confidential information or business details from it.

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Monday, August 20, 2012 9:15 AM