# Hashlink target with Heaps fails to work on 4.2.X

**URL:** https://community.haxe.org/t/hashlink-target-with-heaps-fails-to-work-on-4-2-x/3049
**Category:** Haxe
**Tags:** haxe-hl
**Created:** [May 18, 2021, 7:46pm UTC](https://community.haxe.org/t/hashlink-target-with-heaps-fails-to-work-on-4-2-x/3049 "2021-05-18T19:46:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kevansevans](https://community.haxe.org/user_avatar/community.haxe.org/kevansevans/32/1241_2.png) [@kevansevans](https://community.haxe.org/u/kevansevans)
#### Post date: [May 18, 2021, 7:46pm UTC](https://community.haxe.org/t/hashlink-target-with-heaps-fails-to-work-on-4-2-x/3049/1 "2021-05-18T19:46:25Z")

</div>

Latest working version of Haxe I can use for my Heaps/Hashlink projects is `4.1.5`. With any newer versions of Haxe, the .hl file it produces (even on a basic new hxd.App) creates a program that, as best as I can explain, does absolutely nothing. Regardless of where I compile it from HaxeDevelop or via the CLI, the program does nothing on boot, and when using HaxeDevelop, I get a terminal that ends on “press any key to continue…”

 ![Screenshot 2021-05-18 12.13.38](https://community.haxe.org/uploads/default/original/2X/5/5a880a0b9e18b58eb18b86ee1c2c3a6a80c596bb.png)  
 ![Screenshot 2021-05-18 12.23.01](https://community.haxe.org/uploads/default/original/2X/a/a854764593d3c86114605be1419d955a3a906c57.png)

Minimum needed to reproduce this is as follows:

```haxe
package;

import hxd.App;

class Main extends App
{
	
	static function main() 
	{
		new Main();
	}
	
	public function new()
	{
		super();
	}
}

```

This should create a new window with a black background, using the haxelibs `heaps`, `hlsdl`, and `hlopenal`. On Haxe 4.1.5, this runs as expected, anything newer produces the aforementioned problem of “doing nothing”. Problem does not occur with JavaScript target, C target is unknown because I have never been able to compile a HLC program to begin with.

---

<div class="post-metadata">

### Author: ![RealyUniqueName](https://community.haxe.org/user_avatar/community.haxe.org/realyuniquename/32/10_2.png) [@RealyUniqueName](https://community.haxe.org/u/RealyUniqueName)
#### Post date: [May 18, 2021, 7:49pm UTC](https://community.haxe.org/t/hashlink-target-with-heaps-fails-to-work-on-4-2-x/3049/2 "2021-05-18T19:49:05Z")

</div>

Try git version of heaps

---

<div class="post-metadata">

### Author: ![kevansevans](https://community.haxe.org/user_avatar/community.haxe.org/kevansevans/32/1241_2.png) [@kevansevans](https://community.haxe.org/u/kevansevans)
#### Post date: [May 18, 2021, 7:52pm UTC](https://community.haxe.org/t/hashlink-target-with-heaps-fails-to-work-on-4-2-x/3049/3 "2021-05-18T19:52:31Z")

</div>

This worked, thank you.
