# Hello, guys would you mind teaching me how to run Stat Startfile via C++?

**URL:** <https://forums.unrealengine.com/t/hello-guys-would-you-mind-teaching-me-how-to-run-stat-startfile-via-c/433963>\
**Category:** C++\
**Tags:** error, console-commands, stat-system, unreal-engine, UE4, CPP, question\
**Created:** [September 17, 2018, 5:19pm UTC](https://forums.unrealengine.com/t/hello-guys-would-you-mind-teaching-me-how-to-run-stat-startfile-via-c/433963 "2018-09-17T17:19:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yli327](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yli327](https://forums.unrealengine.com/u/Yli327)\
**Post date:** [September 17, 2018, 5:19pm UTC](https://forums.unrealengine.com/t/hello-guys-would-you-mind-teaching-me-how-to-run-stat-startfile-via-c/433963/1 "2018-09-17T17:19:09Z")

</div>

Hello, guys

Would you mind teaching me how to run Stat Startfile console command in C++? First, I have tried the `Exec()`. It does not work. And then I have tried the `DirectStatsCommand(TEXT("stat startfile"));` . It give me a critical error

> [2018.09.17-17.09.10:306][788]LogCore: === Critical error: ===  
> Unhandled Exception: SIGSEGV: invalid attempt to read memory at address 0x0000000000000000  
> So, what should I do?  
> Thanks  
> Bests  
> YL
