Windows版(Demo)でもう一個発見。
Window1にMyProp As Integerを作り、Window1.Openに以下を記述する。

Dim num, d As Integer
Dim p As Picture

MyProp = 2

If p = Nil Then
d = 2
num = 1 Mod MyProp
MsgBox Str(num)
End If

あとはビルドして実行。
デバッグ環境では起きないけどビルドして実行するとnumが0になる。
致命的なのが多くて参ったなぁ。