Unreal engine behavior problem

Thank you NicholasMont for your time and effort in replying to my problem. I am having problems in responding to you using the reply and add new comment buttons above. They don’t seem to be working when I press the comment button to submit my reply.

I am also having problems attaching the requested .h and .cpp files to this reply. I am getting a invalid file type error. so I will have to try and communicate the problem here

I have further investigated the current problem I have, and it may not be as I stated above. The variables I have been using to pass values to the function are strings of text specifying the path name to a mesh asset I am trying to load.

An example of line of code of calling the function within the game mode base constructor I am using as a test to see if I can load a static mesh before it is used and displayed is

define_voxel_shapes_test("Sphere","/Game/Virtual_Worlds/Atom_Mesh_Shapes/Cursors/sphere_cursor");

and the function being called

  void AVirtual_WorldsGameModeBase::define_voxel_shapes_test(FString shape_name,FString shape_path_name){
    	UStaticMesh	 *voxel_mesh;
    
    	ConstructorHelpers::FObjectFinder<UStaticMesh>voxel_shape(*shape_path_name);
    
    	if (voxel_shape.Succeeded()) {
    		voxel_mesh  = voxel_shape.Object;
    		voxel_shapes->add_voxel_shape(shape_name,voxel_mesh);
    	} else
    GEngine->AddOnScreenDebugMessage(-1, 1000.f, FColor::Green, "voxel_shape not Succeeded : " + shape_path_name);
    }

The problem may actually be that the assets I am trying to load using the ConstructorHelpers::FObjectFinder are not being found by the editor, or it is something else I do not understand about how Unreal engine initialises and does things when starting up.

Everything complies just fine, but I am presently not being able to start the editor up at all after cleaning the solution and the project despite following the procedure mentioned above where commenting out function calls will solve things. I think the project may have become corrupted in some way. Fortunately I had backed it up just prior to stating my problem above, so I can recover the project if I can’t sort out what is going on. I am now clueless as to what is causing the problem I now have. Will get back when after trying to sort this out.

Regards