[Issue 8222] Optlink crashes when debug info is enabled

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 10 13:23:40 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8222



--- Comment #1 from Rene Zwanenburg <renezwanenburg at gmail.com> 2012-07-10 13:23:38 PDT ---
Today I finally managed to work around the issue. The offending line was:

auto list = _messageListeners.get(listener.type, new MessageListener[0]);

But the module containing that code hasn't been touched in months. The
workaround was as easy as replacing it with:

auto listPtr = listener.type in _messageListeners;
auto list = listPtr ? *listPtr : new MessageListener[](0);

I still haven't been able to get a similar crash with a reduced code base. I'll
document any future problems and their workarounds here to see if there's a
pattern.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list