U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » Long time running program and Vector
Long time running program and Vector [message #52616] Wed, 30 October 2019 09:36 Go to next message
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
Hello community,

I have a programme running a raspberry which allocate somes vectors (3-5 vectors of object with ~3 object by vector).
It will sometime look at object of vectors and update it by calling getter and setter.

It run properly for 2 or 3 day then, it will crash with this message :
https://i.imgur.com/8B6bKuJ.png

Any ideas ?

Thanks in Advance
Best regard.
Re: Long time running program and Vector [message #52618 is a reply to message #52616] Wed, 30 October 2019 10:13 Go to previous messageGo to next message
cbpporter is currently offline  cbpporter
Messages: 1428
Registered: September 2007
Ultimate Contributor
Maybe you are storing pointers to the items in the vector?
Re: Long time running program and Vector [message #52619 is a reply to message #52618] Wed, 30 October 2019 11:16 Go to previous message
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
cbpporter wrote on Wed, 30 October 2019 10:13
Maybe you are storing pointers to the items in the vector?


thanks for your help Cbpporter, Sadly, I dont store any ptr in my vector however some function return ptr like A* getAFromName(String nameOfA);
but I always check for nullptr before doing any operation on myPtr. Also the programme crash only after few days of running.

[Updated on: Wed, 30 October 2019 11:17]

Report message to a moderator

Previous Topic: How to serialize a new data type
Next Topic: [solved] CParser GetColumn bugfix
Goto Forum:
  


Current Time: Tue Jun 02 00:23:53 GMT+2 2026

Total time taken to generate the page: 0.01059 seconds