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 sEnd 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
I've submitted a bug report for you. Unfortunately, we will not be able to fix it for SP1.
Regards,
Hendrik
Hendrik Wagenaar said: I've submitted a bug report for you. Unfortunately, we will not be able to fix it for SP1. Regards, Hendrik
Thank you!.
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!
Yea Mo. I think this one gave everyone a headache at least once.
Caused me some headaches too, so I do things like this...
If Not s Is Nothing then sr.Add s
...or more often than not I send it to an error handler to help with debugging or a prevent a crash.