Graphics

 View Only
  • 1.  Reentrency error in visual studio first time playing in mode debug

    Posted 05-13-2013 17:12
    Hi all,

    We have an error each time we restart our sotfware with visual studio 2010 in mode debug :

    the error is :

    Reentrancy was detected + a long microsoft message about managed code.

    the code is simple :

    MyScene.GetObjectByName("TheText", MyXpBaseobject)

    MyXptxtObject = CType(MyXpBaseobject, xpTextObject)

    We have a break at the last line (i.e. yellow arrow at this line)

    Then we continue debugging (F5) and it works normally.

    The strange thing is every thing we do before the initalization work properly (loading project, etc ...)

    Any idea ???

    Best


  • 2.  RE: Reentrency error in visual studio first time playing in mode debug

    Posted 05-13-2013 17:28
    Hi Guillaume,

    I'm not sure what language you're using but if it's C#, try this instead:

    MyXptxtObject = (xpTextObject)MyXpBaseobject;

    Best regards,

    Kenneth

    #XPression


  • 3.  RE: Reentrency error in visual studio first time playing in mode debug

    Posted 05-13-2013 17:31
    Hi Kenneth, we use VB.NET.

    Best

    #XPression


  • 4.  RE: Reentrency error in visual studio first time playing in mode debug

    Posted 05-13-2013 17:44
    Oh ok,

    In that case it should be possible to use MyScene.GetObjectByName("TheText", MyXpTxtobject)

    It's not neccessary to convert it from xpBaseObject to xpTextObject, you could define it as an xpTextObject right away.

    Kenneth

    #XPression