|
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
|
|
|
|
|
Time to bring out your rubber duck!
|
|
|
|
|
I traced the code to a routine in my graphics library. I think. I've just run it down and am trying to verify (without a debugger LOL)
Also without much reliable in the way of spew because I'm already using the serial port for communication. I've half bodged a logging system into it, but everything has to be working right for it to function, and i can't get stack traces out of dumps using this.
Check out my IoT graphics library here:
https://honeythecodewitch/gfx
|
|
|
|
|
honey the codewitch wrote: Instrument my code for heap testing.
I never did embedded stuff.
But I did use memory leak testing a lot. Just because, even with discipline, I figured I might have missed something. Reducing the testing to libraries with that in place with unit testing (I use that term very loosely - test the entire library and not just units) allows one to simplify the scope and be more sure of the stability.
Leak is also used loosely. A leak library can test for actual leaks, overwrites, underwrites, unallocated writes, etc.
|
|
|
|
|
A new account posting to a report ... his reply[^] .. could it be...
Also se this post[^]
Graeme
"I fear not the man who has practiced ten thousand kicks one time, but I fear the man that has practiced one kick ten thousand times!" - Bruce Lee
|
|
|
|
|
This the Lounge, I think you mean to go to Spam & Abuse.
|
|
|
|
|
I posted here as the spammer was watching.
Graeme
"I fear not the man who has practiced ten thousand kicks one time, but I fear the man that has practiced one kick ten thousand times!" - Bruce Lee
|
|
|
|
|
You're surely not paranoid Graeme?
|
|
|
|
|
These aren't the spammers you are looking for.
You can go about your business.
Move along. Move along.
|
|
|
|
|
Do not forget to move the fingers in front of his face...
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hello all,
We got a new car a week ago, and we are struggling to find the best way to park it in the company garage, no parking slots defined (no painting on the floor), two cars till the last week parked there, now three cars must be parked.
Everybody is open to move the cars.
Do you know of any free solution to find te best position for the three cars given car sizes, the garage size, columns placement and garage door size and placement? Does something like that exist?
Thank you all!
|
|
|
|
|
You've been working with robots too long , drive into the car park and park in any available space - Simples
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
For only 3 cars, I would just get a copy of the architects' drawing for the garage, cut out paper to scale to represent the cars, and see if they can be made to fit without overlap. If you can't spot a good arrangement by eye, I wouldn't risk parking 3 cars in there.
Why spend time and effort on learning a new software package?
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Yeah or a whiteboard with magnetic tiles cut to car-size in scale
Or a can of paint, for the floor.
"If we don't change direction, we'll end up where we're going"
|
|
|
|
|
I do that everytime I am moving to another flat with my furniture...
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Joan M wrote: Do you know of any free solution to find te best position for the three cars given car sizes, the garage size, columns placement and garage door size and placement? Does something like that exist? This sounds like a sitcom episode.
Jeremy Falcon
|
|
|
|
|
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
You will need to know all of the turning radii in addition to the length/width.
Just because cardboard cut-outs might fit, doesn’t prove that you could actually maneuver the cars into those positions.
Consider back-in versus pull-in as the turns and entry/exit for the driver will be different. (In other words, consider passengers’ doors almost touching)
When moving the various cut outs around, be sure to make the appropriate motor noise out loud.😛
|
|
|
|
|
|
First one in, last one out?
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
"What would you do if saw a space man?"
"I'd park in it, man!"
|
|
|
|
|
Biggest issue you will have is the ability of said drivers to actually execute the parking layout plan you come up with.
For Example, I have a 3 car garage. I can get all my tools and 2 cars plus, I can get my truck into my garage and get out of my truck. But no one else in the family could do it. There is less that 2 inches of clearance front to back and on one side.
Good luck.
To err is human to really elephant it up you need a computer
|
|
|
|
|
I'd wager that it took more time to compose your post than it would have just parking the cars. Why does everything have to be software-ized?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
David Crow wrote: Why does everything have to be software-ized?
This. A million times this. I honestly can't tell whether OP is being serious or not.
And just because some software says X number of cars should fit in Y amount of space (based on some calculations performed using N number of variables as input, where any of which could be based on inaccurate measurements), doesn't mean all drivers involved are good enough to get their own car in and out without tearing into another car.
Frankly, if parking is that tight, it's time to look elsewhere.
|
|
|
|
|
That might be confusing optimal with best.
From the intellectual (ok really emotional) point of view you probably want the new car 'behind' the older ones. That way when a car is sticking out, which I suspect is going to happen, and it gets clipped then it won't be the new one.
The other solution of course is just to sell one of the older cars.
|
|
|
|