Sample crashes in the StrokesCollected event handler in Release Mode
Opened this issue · 3 comments
ThaineNorris commented
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.
raifordb commented
Try using
foreach (InkStroke item in strokes)
{
container.AddStroke(item.Clone());
}
instead of
container.AddStrokes(from item in strokes
select item.Clone());
ThaineNorris commented
Thank you! This workaround does avoid the problem, and now we have full functionality in Release Mode!
mscherotter commented
Thanks for pointing this out - I will modify the code.