Hello, :hello:
As the title says, I'm experiencing the "0xC0000005 Access Violation at 0x0000000" error.
I fear I'm losing myself again into confusion between variables and pointers.
Help with this will considerably speed up the Taïga Lander developpement process. Thanks in advance. :tiphat:
Note : Crew.GetCrewNameBySlotNumber returns a char * (pointer to a char value ?)
As the title says, I'm experiencing the "0xC0000005 Access Violation at 0x0000000" error.
I fear I'm losing myself again into confusion between variables and pointers.
Help with this will considerably speed up the Taïga Lander developpement process. Thanks in advance. :tiphat:
Code:
// In the header file
char* Name;
...
// In the main.cpp file
...
// --------------------------------------------------------------------------
// METHOD FOR EVA
// --------------------------------------------------------------------------
void RLM::UmmuEvaCrewMember (void)
{
if (Crew.GetAirlockDoorState() == TRUE)
{
Name = Crew.GetCrewNameBySlotNumber(SelectedUmmuMember);
Crew.EvaCrewMember(Name);
if (Crew.EvaCrewMember(Name) == 2)
{
sprintf(SendHudMessage(), "Transfer successful");
}
} else {
sprintf(SendHudMessage(), "Transfer hatch closed, unable to proceed");
}
}
...
Note : Crew.GetCrewNameBySlotNumber returns a char * (pointer to a char value ?)