7.5 => 7.8 : edge select on cube creates crash

I have a test program where I generate a cube and activate the edge selection with myAISContext->Activate(AIS_Shape::SelectionMode(TopAbs_EDGE));
In 7.5 it works fine, in 7.8 I get a crash in StdPrs_WFShape::Add at line 127

const Handle(Prs3d_LineAspect)& anIsoAspectV = theDrawer->VIsoAspect();
if (anIsoAspectV->Aspect()->IsEqual (*anIsoAspectU->Aspect()))
{
  aVPolylinesPtr = aUPolylinesPtr;  // put both U and V isolines into single group
}

In 7.8 theDrawer->VIsoAspect returns an empty handle which is not well digested in the next line.

I read in the upgrade guide that this change is likely to come from 7.7 changes.

Question is how I'm supposed to resolve this transition from 7.5 to 7.8 in my code?

gkv311 n's picture

Why would theDrawer->VIsoAspect() return NULL in first place? This doesn't make sense.

Please provide the complete code sample reproducing the issue to give some advices or to analyze but location.

Luc Wens's picture

Can I send you a dropbox link with the complete project? (woud require an E-mail address for that)

Luc Wens's picture

...

Dmitrii Pasukhin's picture

Hello, it is not recommended way of collaboration. Please share the code sample or public link to your repo. Any kind of commercial developments are part of commercial activities,

Best regards, Dmitrii.

Luc Wens's picture

I understand.
In the mean time, the reason of the null pointers were not calling SetupOwnDefaults on the Prs3d_Drawer objects created to set the highlightstyle.