# Hxcpp runtime error

**URL:** <https://community.haxe.org/t/hxcpp-runtime-error/4274>\
**Category:** Haxe\
**Tags:** haxe-cpp\
**Created:** [June 26, 2024, 8:19am UTC](https://community.haxe.org/t/hxcpp-runtime-error/4274 "2024-06-26T08:19:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![acarioni](https://avatars.discourse-cdn.com/v2/letter/a/65b543/32.png) [@acarioni](https://community.haxe.org/u/acarioni)\
**Post date:** [June 26, 2024, 8:19am UTC](https://community.haxe.org/t/hxcpp-runtime-error/4274/1 "2024-06-26T08:19:01Z")

</div>

I have a C++ Haxe program that often crashes. The debugger indicates the crash is due to `EXC_BAD_ACCESS (code=1, address=0xd0)`.

The stack trace is as follows:

```cpp
// this is the top of the stack
// the line below causes EXC_BAD_ACCESS
inline ::Dynamic operator()(const Dynamic &inArg0) { CheckFPtr(); return mPtr->__run(inArg0); }

// this is the frame just below the top
void HttpClientAdapter::onText(const char* line){
HX_STACKFRAME(&_hx_pos_31dfed2f121c5749_150_onText)
HXDLIN( 150) ::Dynamic _hx_tmp = this->_onText;
HXDLIN( 150) _hx_tmp(::String(line)); // this is the active line
}

```

It appears that `inArg0` corresponds to the `line` string (which is not null) in the `onText` method.

Can anyone provide insight into this issue?
