# Failure to create a new project: "cannot access private member declared in class 'FHazardPointerCollection::FHazardRecord'"

**URL:** <https://forums.unrealengine.com/t/failure-to-create-a-new-project-cannot-access-private-member-declared-in-class-fhazardpointercollection-fhazardrecord/1548295>\
**Category:** Getting Started & Setup\
**Tags:** unreal-engine, bug-report, CPP, question\
**Created:** [December 23, 2023, 3:18pm UTC](https://forums.unrealengine.com/t/failure-to-create-a-new-project-cannot-access-private-member-declared-in-class-fhazardpointercollection-fhazardrecord/1548295 "2023-12-23T15:18:19Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![StBlueFire](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stbluefire/32/641418_2.png) [@StBlueFire](https://forums.unrealengine.com/u/StBlueFire)\
**Post date:** [February 21, 2024, 10:54pm UTC](https://forums.unrealengine.com/t/failure-to-create-a-new-project-cannot-access-private-member-declared-in-class-fhazardpointercollection-fhazardrecord/1548295/17 "2024-02-21T22:54:19Z")

</div>

Just to wrap up this thread you have three options. I would do them in this order if you can.

**Option 1: Rollback to 17.8.x in Visual Studio**  
How To:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/a/0eacd4cc6b37011dcecdcb1ee36bb97ec912082b.jpeg)

Downsides:

- If you did not install 17.8 you cannot roll back to it.

**Option 2: Update to Preview Version**  
How To:  
Same as above but select “Update” Settings and select Preview instead of current.

Downsides:

- Previews can be less stable so it may have conflicts with your particular project. (This is unlikely though)

**Option 3: Make the FHazard Variable Public**

How To:  
See frankmli’s suggestion above

Downsides:

- If you do a lot of .cpp surrounding that you may write code that relies on it being public that is not supported.
- It requires an engine change and rebuild of the engine for your team.

---

_[View the full topic](https://forums.unrealengine.com/t/failure-to-create-a-new-project-cannot-access-private-member-declared-in-class-fhazardpointercollection-fhazardrecord/1548295)._
