Page 1 of 1

IntelliCAD freeze during saveas

Posted: Fri Jul 09, 2004 5:32 am
by kenn
Occasionally my IntelliCAD freezes during the saveas command. Has anyone else seen this happen? I'm using version 4.0.27.1 PE. It saves the <drawing name>.vbi file, but hangs while it is saving the .dwg file. The timestamp on the .dwg is one or two seconds after the .vbi file. It happened twice today and the .dwg file was 3kb once and 12kb the second time. Both AutoCAD and IntelliCAD were not able to open the .dwg since it was not completely saved.

I've had it happen both when running the saveas command manually, and when using the VBA IntelliCAD.ActiveDocument.SaveAs command. IntelliCAD becomes unresponsive and I have to end the task. The same problem has happened on two different computers. The files I am saving are sometimes very simple... once with just five 3d polylines of ~80 vertices each. They are always saved to the c: drive.

The freezing doesn't happen consistently. It is fairly rare but enough to be a major concern, especially since it ends up corrupting the .dwg file and I have to make sure I have a backup saved.

Has anyone run across this problem or can offer suggestions to prevent it from occurring?

Thanks...

Kenn

Posted: Fri Jul 09, 2004 6:37 am
by kenn
I believe I have found the cause. IntelliCAD seems to freeze during a saveas command if the drawing has not previously been saved (if its a new drawing called Drawing1, 2, etc.), AND the following VBA code is run before the saveas:

Public Sub TestSaveasCrashes()
Dim ptsPline As Points, obj3dpoly As Polyline3D, ptNew As Point, i As Integer

Set ptsPline = Library.CreatePoints
ptsPline.Add 1, 1, 0
ptsPline.Add 2, 2, 0
Set obj3dpoly = IntelliCAD.ActiveDocument.ModelSpace.Add3DPoly(ptsPline)
For i = 1 To 4
Set ptNew = Library.CreatePoint(i + 2, i + 2)
obj3dpoly.AppendVertex ptNew
Next i
End Sub

It will only crash if 4 or more points have been added using .AppendVertex. The crash seems to be avoided by doing a VBA .SaveAs at the beginning.

Kenn

Posted: Fri Jul 09, 2004 12:43 pm
by CW
I tutor people from time to time. The first thing that I have them do is get in the habit of naming and saving their file before they do anything else. That way, it is just a matter of hitting the save icon. Avoids a lot of lost work.