Hi,
the meantime I tried different ways to override the compiler flags, but without success. I was in contact with the VisualMicro team, but no success too.
https://www.visualmicro.com/forums/YaBB.pl?num=1736952506/0#2
Of course, I compiled everthing with the Nano Standard library.
As you ...
Search found 6 matches
- Sat Jan 25, 2025 10:43 pm
- Forum: General discussion
- Topic: new does not always throw a badalloc exception if memory cannot be allocated
- Replies: 11
- Views: 2884
- Tue Jan 14, 2025 5:55 pm
- Forum: General discussion
- Topic: new does not always throw a badalloc exception if memory cannot be allocated
- Replies: 11
- Views: 2884
Re: new does not always throw a badalloc exception if memory cannot be allocated
Hi,
in my post from Fri Jan 10, 2025 9:34 pm I was too optimistic that I can solce the problem. Today I got
https://www.visualmicro.com/forums/YaBB.pl?num=1736003983/0#0
from the VisualMicro team. That's why I have to come back to my posts and ask you again to change your build settings so that ...
in my post from Fri Jan 10, 2025 9:34 pm I was too optimistic that I can solce the problem. Today I got
https://www.visualmicro.com/forums/YaBB.pl?num=1736003983/0#0
from the VisualMicro team. That's why I have to come back to my posts and ask you again to change your build settings so that ...
- Fri Jan 10, 2025 8:34 pm
- Forum: General discussion
- Topic: new does not always throw a badalloc exception if memory cannot be allocated
- Replies: 11
- Views: 2884
Re: new does not always throw a badalloc exception if memory cannot be allocated
In the meantime I got the answer from the Visual Micro team
https://www.visualmicro.com/forums/YaBB ... 003983/0#2
Thanks a lot for all the answers. They were a great help.
Richard
https://www.visualmicro.com/forums/YaBB ... 003983/0#2
Thanks a lot for all the answers. They were a great help.
Richard
- Fri Jan 10, 2025 6:09 pm
- Forum: General discussion
- Topic: new does not always throw a badalloc exception if memory cannot be allocated
- Replies: 11
- Views: 2884
Re: new does not always throw a badalloc exception if memory cannot be allocated
Thanks fpiSTM,
can you please tell me where I can find these *.local files for the Arduino IDE?
Are these the same files for the "Arduino IDE for Visual Studio 2022" extension from Visual Micro? If not, where can I find them?
Can I set these flags in the Arduino IDE or in the Visual Micro ...
can you please tell me where I can find these *.local files for the Arduino IDE?
Are these the same files for the "Arduino IDE for Visual Studio 2022" extension from Visual Micro? If not, where can I find them?
Can I set these flags in the Arduino IDE or in the Visual Micro ...
- Fri Jan 10, 2025 3:31 pm
- Forum: General discussion
- Topic: new does not always throw a badalloc exception if memory cannot be allocated
- Replies: 11
- Views: 2884
Re: new does not always throw a badalloc exception if memory cannot be allocated
Since the C++ standard requires new to throw an exception if memory cannot be allocated, you should provide a version compiled with -fexception .
Without, functions relying on this will not behave as expected. For example
std::vector<int> v;
int too_much_push_backs()
{
Serial.printf("Start too ...
Without, functions relying on this will not behave as expected. For example
std::vector<int> v;
int too_much_push_backs()
{
Serial.printf("Start too ...
- Fri Jan 10, 2025 2:04 pm
- Forum: General discussion
- Topic: new does not always throw a badalloc exception if memory cannot be allocated
- Replies: 11
- Views: 2884
new does not always throw a badalloc exception if memory cannot be allocated
Hi,
I have asked Visual Micro
https://www.visualmicro.com/forums/YaBB ... 003983/0#0
why new does not always throw a badalloc exception if memory cannot be allocated. They recommended me to ask you.
Thanks
Richard
I have asked Visual Micro
https://www.visualmicro.com/forums/YaBB ... 003983/0#0
why new does not always throw a badalloc exception if memory cannot be allocated. They recommended me to ask you.
Thanks
Richard