crash when trying to instance actor class in 3 dimensionnal array

i have an actor class Block and this code make the editor crash

	// The blocks data
	ABlock*** m_pBlocks;

	// Create the blocks
	m_pBlocks = new ABlock**[16];
	for (int i = 0; i < 16; i++)
	{
		m_pBlocks[i] = new ABlock*[16];

		for (int j = 0; j < 16; j++)
		{
			m_pBlocks[i][j] = new ABlock[16];
		}
	}

But this one dont crash

	// The blocks data
	ABlock*** m_pBlocks;

	// Create the blocks
	m_pBlocks = new ABlock**[16];
	for (int i = 0; i < 16; i++)
	{
		m_pBlocks[i] = new ABlock*[16];
	}

why i can loop create [x] and [y] without editor crash and when i add the loop to create [z] the ue4 editor crash?

Hey skeleton60-

I added your code to an actor class and placed an instance of the class into a level and did not crash when trying to PIE. If I create three nested for() loops with a large condition value (1000 each) then the editor will lockup/crash due to trying to process such a large amount in a single cycle. If possible please send your callstack and log files so I can compare to mine to see if we’re getting the same crash.

Cheers

Hey skeleton60-

I’ve not heard from you in a few days. I will be marking this post as resolved for tracking purposes. Let me know if you’re still getting a crash with the multi-dimensional array and we will continue to investigate. Please be sure to include the callstack and log files from the crash to help provide additional information.

Cheers