-2

Here is the uploaded image

enter image description here

i am getting on inconsistent crash in my project sometimes, same screen shot is uploaded.

Is there any thing to avoid crashes access violation memory , i am using boost version 1.64

sehe
  • 374,641
  • 47
  • 450
  • 633

1 Answers1

3

Is there any thing to avoid crashes access violation memory , i am using boost version 1.64

Yes, avoid Undefined Behaviour.

Undefined Behaviour can have many reasons:

  • stale references (e.g. reference to objects whose lifetime ended, most likely because of scopes, dynamic allocations, or use of globals in destructors outside of main triggering the Static Initialization Order Fiasco)
  • data races (lack of thread synchronization)
  • many other things (out of bounds addressing, null pointer dereference, illegal reinterpret/const casting, very specific things like calling members through null-pointer this, calling virtual methods inside constructor, etc. etc.)

If you want more specific help, or can't find it

sehe
  • 374,641
  • 47
  • 450
  • 633