Josef Templ wrote:The change in the 'Start' procedure you mentioned is not really required
That was the different case. In Co_ObxSameFringe example r1.Start(r1) was called twice for the same coroutine. It results in BB crash, because of Kernel.RemoveCoroutine(c.impl) is called, but NEW(c.impl) not. I fixed it.
The problem with finalizers is fixed, thanks.
If this version is the one to be based upon, I must mention again the problem with stack overflow. The example below causes recusion in coroutine, causing "stack overflow" on TrapViewer. Naturally fibers stack limits are different from main stack. If you run this example, you can see some memory damage in other places. In my computer, I failed to unload some modules. Maybe some trap cleaners should be modified.
StdCoder.Decode ..,, ..nO....3QwdONl9RhOO9vRbf9b8R7fJHPNGomCrlAyIhgs,CbKBhZ
xi2,CoruKu4qouqm8rtuGfa4.hOO9vRb1Y66wb8RTfQ9vQRtIdvPZHWKqtCa.E.U5U.p.6.5Qw
dONlnayKmKKqCLLCJuGqayKm6F9vQ5nsH3.bnayKmKa2,Cor.kay4.qorGqmQCU2,CJuyKtQC9
8P9PP7ONbXmb.2.AW2k5k2G.,6.kd4.86.QC18RdfQHfMf9R9vQ7ONb1E.kHE.0.p.0.4.0EJ2
XkD.6.VQ.k4k.8Mtf.2.010.u,2.AU.E.4ItaqkmaM2y,.,6YU8.5.3cUZj0E.6A2U.US.,.1.
42.4.072U5V,ob,k,8Mtf.2.01,6.c5E.k.0.42.8.07s1M.p07cUZj06.,..u,2.AU.U,,U.E
.mP,U22U.M.T2,c,M.L.zTHT8Ff8H9865uPzuH39Sb8R1vML9HHPPH9RrN1P68Jd8,N1HsMTfP
dfQHfMwhmRi7gbUIY2hhdZimBjUoeiYcVxgVhgqJYBAVgBhXhgiRiZ3Yx2YW2epJggBhX3Y2xh
hBgdphWgVeIZdgVBAV7hdExdGZeUQco3YugbUQcj7J1vQLvQN765uP,dCv76cITPRdPORPNb99
,tG9fQRPNN99,7HTvNrN1HM1H6Jn8I9O1HM0b8R1vMGpmCLu0mS0GcyoYuIeKId0GeyIECJu44
EWKqtCqRqk2akd.YCQgUgbUIe3RcDJe23YcQcjpZ1xhmxhpZ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