2023-01-23 05:47 AM
Hello, I want to ask why simulator turn off when I call function in other class like that:
2023-01-23 07:47 PM
Hi,
What do you mean by the simulator turns off ? Do you mean it crashes ? It could be because your project is actually crashing at that line. If you can try to debug step by step your project.
/Romain
2023-01-23 09:37 PM
When I call a function in another class and set pointer to other screen it crashes:
But if I not use one of them it working fine
2023-01-31 09:31 PM
up
2023-01-31 09:42 PM
Not easy to help with what you shared without the context of those functions/code. I mean if it works fine without calling them then it comes from the function themselves.
Share the log file as well because "simulator" crash is too vague once again, or better the project itself so that other users can replicate it.
Is it only the simulator that crashes as well or do you also hit hardfault on target ?
/Romain
2023-01-31 11:32 PM
Where I can find log file? It crashes also on target.
2023-02-01 12:46 AM
The log file is found in the %appdata%/roaming/TouchGFX-4.21.1/
If it crashes on target then it is not just the simulator but the function itself then. What do you see when you debug ?
/Romain
2023-02-01 01:32 AM
When I call a function in another class and there are also pointer which goes in to same screen as first one. I marked red where crashes
2023-02-01 03:53 AM
@Romain DIELEMAN After debugging I found out that my pointer is 0. What can cause this problem?
2023-02-01 04:14 AM