Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: June 10, 2024, 7:50 am

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom error message for stack overflow in C++
#15
RE: Custom error message for stack overflow in C++
HappySkeptic Wrote:I don't know if I have the time to do a fork and fix them.
Nevertheless, thank you for writing all that information, it will probably help.
And what do you think about my project in general? Is it interesting?
HappySkeptic Wrote:I might, but, increasing the stack size is probably your solution.
So, you think I should add in the README that CLANG on Windows and Visual Studio C++, but not GCC, provide a too small stack by default to compile the Analog Clock program?
HappySkeptic Wrote:Of course, to use this, you would have to "new" the AssemblyCode from within the method, and use it with "->" dereference operators instead of "." .
Is it important whether I create the
Code:
shared_ptr<AssemblyCode> assemblyCode=new AssemblyCode();
inside the method, or can I write
Code:
AssemblyCode *assemblyCode=new AssemblyCode();
and only later
Code:
return assemblyCode
for the raw pointer to be automatically converted to the smart pointer upon returning? I have no idea how it works.
Reply



Messages In This Thread
RE: Custom error message for stack overflow in C++ - by FlatAssembler - August 11, 2021 at 4:40 pm

Possibly Related Threads...
Thread Author Replies Views Last Post
  What is the most absurd error message a program you have made was outputting? FlatAssembler 38 4246 June 14, 2023 at 8:01 am
Last Post: FlatAssembler
  Error 502 bad gateway for Rational Responders Brian37 13 1415 April 23, 2022 at 4:17 pm
Last Post: BrianSoddingBoru4
  How Do I Send an SMS message From UK mobile to a US one ReptilianPeon 11 1867 July 9, 2018 at 5:17 pm
Last Post: bennyboy
  HELPPPPP Blue screen error just now!!! Edwardo Piet 114 11096 November 10, 2015 at 2:26 am
Last Post: Aractus
  Disk read error. Creed of Heresy 12 4100 July 27, 2012 at 9:19 am
Last Post: Tiberius
  Video Error: Grey circle with a white exclaimation mark inside. Reforged 5 3815 July 5, 2012 at 1:19 am
Last Post: Reforged



Users browsing this thread: 1 Guest(s)