mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-02-16 18:50:44 +00:00
Compare commits
4 Commits
254-imscar
...
testcrash
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e25f2b0382 | ||
|
|
e91fee7186 | ||
|
|
bfe9cfd41b | ||
|
|
d4f40ca889 |
10
src/main.cpp
10
src/main.cpp
@@ -54,6 +54,16 @@ int main(int argc, char** argv) try {
|
||||
Application::Console().InitializeLuaConsole(LuaEngine);
|
||||
Application::CheckForUpdates();
|
||||
|
||||
Sentry.LogError("test error", __FILE__, std::to_string(__LINE__));
|
||||
|
||||
error("goodbye, crashing now");
|
||||
volatile int* a = nullptr;
|
||||
// oh boy
|
||||
*a = -0;
|
||||
a[318008]++;
|
||||
// bye now
|
||||
abort();
|
||||
|
||||
// TODO: replace
|
||||
while (!Shutdown) {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(50));
|
||||
|
||||
Reference in New Issue
Block a user