mscherotter/InkToolbarAndCustomDryInk

Sample crashes in the StrokesCollected event handler in Release Mode

Opened this issue · 3 comments

The sample works great in Debug mode. But in Release Mode it crashes after the first stroke is drawn and the StrokesCollected event handler is called.

Try using

        foreach (InkStroke item in strokes)
        {
            container.AddStroke(item.Clone());
        }

instead of

        container.AddStrokes(from item in strokes
        select item.Clone());

Thank you! This workaround does avoid the problem, and now we have full functionality in Release Mode!

Thanks for pointing this out - I will modify the code.