Похожие чаты

Does anyone know a convenient pattern for a c++ library

that can pass errors to other languages ​​that call it?
https://github.com/ggerganov/ggml/blob/master/src/ggml.c#L244
I want to improve this error that calls to abort. The problem with it is that, for example, in Windows the program will crash without any error (in Linux it's even more likely that you can see the error in the terminal...)

4 ответов

5 просмотров

Just add fflush(stderr); before abort();?

Jacob- Автор вопроса
Thomas
Just add fflush(stderr); before abort();?

Eventually I use this library in desktop app so it's not running from the terminal. I don't collect stderr by default in terms of performance so I won't catch it. Should I?

Jacob
Eventually I use this library in desktop app so it...

There's so much text on stderr that it affects performance if you collect it?

Jacob- Автор вопроса
Thomas
There's so much text on stderr that it affects per...

Didn't really thought about that much. I'm not sure if it's even possible to collect stderr in non terminal mode

Похожие вопросы

Обсуждают сегодня

30500 за редактор? )
Владимир
47
Ⓐrtto, [4/23/24 7:02 PM] Please explain more fully how it is not working exactly, and what are the steps you are taking, and what error messages come or what happens. Ⓐrtto, ...
Ezza Kezza
2
any reference of this implementation?
BitBuddha
29
Страшнейшая правда про списки ЦБ. С первых дней жизни P2P сферы, молодые человеки, начитавшись законодательной базы и "внутренних" документов, решили, что им противостоит сер...
Foxcool
3
Недавно Google Project Zero нашёл багу в SQLite с помощью LLM, о чём достаточно было шумно в определённых интернетах, которые сопровождались рассказами, что скоро всех "ибешни...
Alex Sherbakov
5
So much speculation in the last week. So much volatility in price. This is because Hedera has a GC that isn't using the network it's governing. Why aren't people asking why a...
Summit Seeker R
8
Question: How viable is it to use Anvil as the backend infrastructure for managing a TradFi portfolio, while integrating Flexa for instant liquidity and payment solutions? Cou...
Kevin
2
sounds like people have lost their kaspa on tradeogre... does this mean tradeogre not trustworthy?
Ezza Kezza
15
Heard a news that Jared had a meeting with Elon Musk.. is it true ?
Thomas
15
Hi everyone I'm considering writing linker for Windows x86-64 How hard it should be? I want to write it to link rust/cpp programs faster in with parallel ways
Jacob
22
Карта сайта