TheSwamp

Code Red => .NET => Topic started by: hellios8502 on October 12, 2011, 04:56:49 PM

Title: Transient graphics AutoCad crash
Post by: hellios8502 on October 12, 2011, 04:56:49 PM
Hi, while playing with the transient graphics I came across a strange crash and I am wondering if anybody has observed the same strange crashes. I can create the entities with no problem and for about 1 minute Autocad is stable but after that it suddenly crashes without any apparent reason. I have tried Kean's (http://through-the-interface.typepad.com/through_the_interface/2011/03/using-transient-graphics-to-simulate-autocads-move-command-using-net.html) code from the ThroughTheInterface blog. I just modified the ClearTransGraphics void by removing everything so that I can keep the graphics

Code: [Select]
private static void ClearTransGraphics(

      List<Drawable> drawables

    )

    {

      // Clear the transient graphics for our drawables
      //TransientManager.CurrentTransientManager.EraseTransients(

    //   TransientDrawingMode.DirectShortTerm,

      //  128, new IntegerCollection()
      );

       // Dispose of them and clear the list

      // foreach (Drawable d in drawables)
   //   {
   //     d.Dispose();
   //   }
     // drawables.Clear();
   // }

  }


Title: Re: Transient graphics AutoCad crash
Post by: Jeff_M on October 12, 2011, 05:00:17 PM
"strange crash" being defined as....? What version? What kind of graphics?
Title: Re: Transient graphics AutoCad crash
Post by: hellios8502 on October 12, 2011, 05:04:27 PM
Both acad 2010 and 2012. For example it crashes after I span the selection window twice over the transient graphics  :|.