Feedback
ByRef string argument crashes from bare instance event handler call
- Status
- Fixed
- Fixed in
- v26.5.8
- Source discussion
- https://forum.objo.dev/d/211-byref-crash-with-string-parameter
- Last updated
- 2026-06-01
Public summary
Calling an instance method with a ByRef String parameter from a desktop event handler can crash the VM when the method is invoked with bare instance-call syntax, for example Test(st). The same ByRef String pattern is expected to work when the argument is a variable, so the runtime should not throw an internal InvalidCastException.