VBA long standing crash problem needs fixed. Please pass to Alex.

Hi.

This has been around for a long time. I posted a long time ago on Oberon Place but it's still there.

This causes crash in all versions.It's still here in X6.

Sub test()
    Dim s As Shape, sr As New ShapeRange
    sr.Add s
End Sub

 

Yes I know s should not be nothing but sometimes when testing code you might lose your object or it doesn't even get set for reason of other errors from either program glitches or user coding error. This will cause unnecessary  program crashes when one is testing/debugging code. Please fix so it doesn't crash.

It's more stable similar function AddRange can take anything without causing the program to crash.

~John

Parents
  • RunFlaCruiser said:
    Yes I know s should not be nothing but sometimes when testing code you might lose your object or it doesn't even get set for reason of other errors from either program glitches or user coding error

    This caused me headaches for weeks! Simply to know that Corel crashes on THIS gets me sleeping much better now... Thanks John!

Reply Children
No Data