Author Topic: Delete points crashes DC when run twice in a group.  (Read 127 times)

bdeck

  • Hero Member
  • *****
  • Posts: 815
Delete points crashes DC when run twice in a group.
« on: May 09, 2017, 08:48:41 PM »
See Attached drawing.

DC 26.2 (32 bit 3d max, win7) crashes very reliably when I follow the directions in the drawing. Lost a days work in the crash, so decided to look into it. Is this unique to my system?
 
Here's the delpts macro that caused the crash, run from the command line.
Code: [Select]
>DeletePoints
{
}
end

Here's a fix that DID NOT avoid the crash:  (Edit 5/10)
Code: [Select]
>DeletePoints
{
}
>deselect
{
}
>selectprevious
{
}
end

« Last Edit: May 10, 2017, 09:51:21 AM by bdeck »

bdeck

  • Hero Member
  • *****
  • Posts: 815
Re: Delete points crashes DC when run twice in a group.
« Reply #1 on: May 10, 2017, 10:19:02 AM »
Oops, on retry, the fix above does not work reliably. 

The crash comes when using the delete points command when
1)  no points are set,
2)  a group is selected.

Below is a solution that seems to work better.

Any ideas?

Code: [Select]
If Not Sys(345) Then end

>setselectedpoints   ' put selected points in buffer
{
}
if sys(1)<1 then          ' check buffer count
message "no points selected"
end
endif
>DeletePoints
{
}
>deselect    'erase vestigial point marks
{
}
>selectprevious
{
}
end
« Last Edit: May 10, 2017, 10:31:10 AM by bdeck »