Click here to Skip to main content
15,887,477 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Nuclear Alpha Blending: A C++ war story Pin
Nelek21-Jun-23 11:46
protectorNelek21-Jun-23 11:46 
GeneralRe: Nuclear Alpha Blending: A C++ war story Pin
Single Step Debugger21-Jun-23 5:44
Single Step Debugger21-Jun-23 5:44 
GeneralRe: Nuclear Alpha Blending: A C++ war story Pin
jmaida21-Jun-23 11:18
jmaida21-Jun-23 11:18 
GeneralRe: Nuclear Alpha Blending: A C++ war story Pin
honey the codewitch21-Jun-23 11:23
mvahoney the codewitch21-Jun-23 11:23 
GeneralRe: Nuclear Alpha Blending: A C++ war story Pin
jmaida21-Jun-23 12:16
jmaida21-Jun-23 12:16 
GeneralRe: Nuclear Alpha Blending: A C++ war story Pin
jmaida21-Jun-23 13:19
jmaida21-Jun-23 13:19 
GeneralRe: Nuclear Alpha Blending: A C++ war story Pin
Greg Utas21-Jun-23 14:14
professionalGreg Utas21-Jun-23 14:14 
GeneralRe: Nuclear Alpha Blending: A C++ war story Pin
honey the codewitch21-Jun-23 14:38
mvahoney the codewitch21-Jun-23 14:38 
I doubt it's anything that complicated. I suspect some foolery in either my lifetime management or somehow, somewhere I'm not copying memory correctly.

At one point - after I ported some of it to use the STL, I needed to pull pointers out of a vector to pass to a function, but that concerned me due to the potential for the vector reallocating, even though I called reserve() - I don't trust the inner machinations of the STL and it's too much to remember all of its intricacies.

Instead I went back to my tried and true new/delete and stashing pointers in my simple_vector class. I don't think that's the problem.

However, there's a lot of spinning plates to balance. Incoming serial data can cause a lot of deallocations and reallocations, and while that is NOT happening while my on_paint callbacks are being summoned, it still makes me nervous.

In the end I'm thinking of a total rewrite of the firmware to see if I can make it more cohesive. I have some ideas.
Check out my IoT graphics library here:
https://honeythecodewitch/gfx

GeneralRe: Nuclear Alpha Blending: A C++ war story Pin
Greg Utas21-Jun-23 15:12
professionalGreg Utas21-Jun-23 15:12 
GeneralRe: Nuclear Alpha Blending: A C++ war story Pin
honey the codewitch21-Jun-23 17:53
mvahoney the codewitch21-Jun-23 17:53 
GeneralRe: Nuclear Alpha Blending: A C++ war story Pin
jschell22-Jun-23 8:24
jschell22-Jun-23 8:24 
GeneralThis looks like an odd one... Pin
Graeme_Grant21-Jun-23 1:03
mvaGraeme_Grant21-Jun-23 1:03 
GeneralRe: This looks like an odd one... Pin
Richard MacCutchan21-Jun-23 1:11
mveRichard MacCutchan21-Jun-23 1:11 
GeneralRe: This looks like an odd one... Pin
Graeme_Grant21-Jun-23 3:35
mvaGraeme_Grant21-Jun-23 3:35 
GeneralRe: This looks like an odd one... Pin
Richard MacCutchan21-Jun-23 3:39
mveRichard MacCutchan21-Jun-23 3:39 
GeneralRe: This looks like an odd one... Pin
Slacker00721-Jun-23 5:15
professionalSlacker00721-Jun-23 5:15 
GeneralRe: This looks like an odd one... Pin
Nelek21-Jun-23 11:48
protectorNelek21-Jun-23 11:48 
Questionfree parking planning software Pin
Joan M20-Jun-23 22:08
professionalJoan M20-Jun-23 22:08 
AnswerRe: free parking planning software PinPopular
pkfox20-Jun-23 22:15
professionalpkfox20-Jun-23 22:15 
AnswerRe: free parking planning software Pin
Daniel Pfeffer21-Jun-23 1:44
professionalDaniel Pfeffer21-Jun-23 1:44 
GeneralRe: free parking planning software Pin
megaadam21-Jun-23 1:53
professionalmegaadam21-Jun-23 1:53 
GeneralRe: free parking planning software Pin
Nelek21-Jun-23 11:49
protectorNelek21-Jun-23 11:49 
AnswerRe: free parking planning software Pin
Jeremy Falcon21-Jun-23 4:43
professionalJeremy Falcon21-Jun-23 4:43 
GeneralRe: free parking planning software Pin
jmaida21-Jun-23 11:22
jmaida21-Jun-23 11:22 
AnswerRe: free parking planning software Pin
englebart21-Jun-23 5:57
professionalenglebart21-Jun-23 5:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.