# Bug: Oxygene event handling in Wasm causes a link error in runtime

**URL:** https://talk.remobjects.com/t/bug-oxygene-event-handling-in-wasm-causes-a-link-error-in-runtime/24384
**Category:** Oxygene
**Tags:** webassembly
**Created:** [March 11, 2021, 11:52am UTC](https://talk.remobjects.com/t/bug-oxygene-event-handling-in-wasm-causes-a-link-error-in-runtime/24384 "2021-03-11T11:52:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Theo69](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/35a633/32.png) [@Theo69](https://talk.remobjects.com/u/Theo69)
#### Post date: [March 11, 2021, 11:52am UTC](https://talk.remobjects.com/t/bug-oxygene-event-handling-in-wasm-causes-a-link-error-in-runtime/24384/1 "2021-03-11T11:52:33Z")

</div>

When wireing an event on the xx\_Event types from Oxygene, a link error is raised on the start of the webassembly code - in runtime.

The error is caused by the line

```
MyButton_Events.Click += @MyButton_Click;

```

in index.pas.

Project to reproduce: [Module8 3.bugreport.zip](https://talk.remobjects.com/uploads/short-url/zjMkLV5fLZ19UEgmD21I0eQJ1PU.zip) (1.7 MB)

Build log: [Module8 3.bugreport.txt](https://talk.remobjects.com/uploads/short-url/k1DQeTTiWQe2trOLLyCGe3osZLQ.txt) (21.8 KB)

Print screen:

 ![image](https://talk.remobjects.com/uploads/default/original/2X/d/d0177c1d36b3c4657ed1ccac822aefa1eb72fb50.png)

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [March 11, 2021, 1:10pm UTC](https://talk.remobjects.com/t/bug-oxygene-event-handling-in-wasm-causes-a-link-error-in-runtime/24384/2 "2021-03-11T13:10:46Z")

</div>

Thanks, logged as [bugs://85716](https://www.remobjects.com/portal/bugs/?id=85716)

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [May 26, 2021, 1:08pm UTC](https://talk.remobjects.com/t/bug-oxygene-event-handling-in-wasm-causes-a-link-error-in-runtime/24384/3 "2021-05-26T13:08:48Z")

</div>

[bugs://85716](https://www.remobjects.com/portal/bugs/?id=85716) got closed with status fixed.
