EXCEPTION_ACCESS_VIOLATION reading address 0x00000239

This makes no sense. So I’ve been working on a tutorial to create a pickup script. Everything built fine with no issues then suddenly the game crashed and now I can’t get on. The issue is on line 23 of my cpp script.

Section with the issue:

// Create Collider
	this->BoxCollider = CreateDefaultSubobject<UBoxComponent>(TEXT("BoxCollider"));
	this->BoxCollider->SetGenerateOverlapEvents(true);
	this->BoxCollider->SetWorldScale3D(FVector(1.0f, 1.0f, 1.0f));
	this->BoxCollider->OnComponentBeginOverlap.AddDynamic(this, &APickupActor::OnOverlapBegin);
	this->BoxCollider->AttachToComponent(this->RootComponent, FAttachmentTransformRules::SnapToTargetIncludingScale);

The this->BoxCollider->SetGenerateOverlapEvents(true); Line is the issue line. I’ve tried deleting the line, removing the whole code from the project but nothing fixes the error and I can’t access my project.

If you need more code please ask and I’ll provide more.

The this->BoxCollider->SetGenerateOverlapEvents(true); Line is the issue line. I’ve tried deleting the line, removing the whole code from the project but nothing fixes the error

Then it’s quite clear that this line is not the issue.

Also, do you really need to use “this” keyword?

The error still says it’s that line which I don’t understand because I’ve tried removing the line and removing the code altogether and it still says there’s an error on that line even though the whole code doesn’t “exist”.

Also what’s wrong with this?

The error still says it’s that line which I don’t understand because I’ve tried removing the line and removing the code altogether and it still says there’s an error on that line even though the whole code doesn’t “exist”.

Make a backup, clean and rebuild the project.

Also what’s wrong with this?

Nothing. But, if it’s unnecessary, then it’s noise.

Tried to clean the project and got this error.

1>UnrealBuildTool : error : Unable to delete C:\Users\Liamm\Documents\Game Design\Unreal Projects\ZombieShooter\Binaries\Win64\UE4Editor-ZombieShooter.dll (Unable to delete ‘C:\Users\Liamm\Documents\Game Design\Unreal Projects\ZombieShooter\Binaries\Win64\UE4Editor-ZombieShooter.dll’: Access to the path ‘C:\Users\Liamm\Documents\Game Design\Unreal Projects\ZombieShooter\Binaries\Win64\UE4Editor-ZombieShooter.dll’ is denied.)

1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(40,5): error MSB3073: The command "C:\WINDOWS\System32\chcp.com 65001 >NUL

1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(40,5): error MSB3073: “C:\Users\Liamm\Documents\Game Design\UE_4.25\Engine\Build\BatchFiles\Clean.bat” ZombieShooterEditor Win64 Development -Project=“C:\Users\Liamm\Documents\Game Design\Unreal Projects\ZombieShooter\ZombieShooter.uproject” -WaitMutex -FromMsBuild" exited with code -1.

So confused!

Exit editor and visual studio.

Delete directories:

  • binaries
  • build
  • intermediate
  • saved
  • .vs

Delete files:

  • *.sln
  • *.vc.db

Generate vs files and rebuild project.

PS: don’t forget to backup.