-
C++ program
Hello there people.
I've a problem here, related to this: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse).
I'd like to know if it's possible for you to help me out here with this.
What could be causing this error? It pops up when the program finish running.
The code is in C++ with standard library and I'm using classes.
If someone could help me out, I can send the code.
Best regards,
Charles
-
You're somehow trashing your memory. You're going to have to show the code to get further help.
-
Well, I could put in here but I rather prefer to send by PM. I've tried to send to you but I think I don't have that previlege (some message tell me that).
How can I send to you?
Best regards,
Charles
-
Posting it on the forum will get you the quickest (and eventually) the most accurate (in case the early responders get it wrong) answer.
Plus everyone else has an opportunity to learn - which is why we're all here.
> What could be causing this error?
- You didn't allocate it to begin with
- You deleted it more than once
- You tried to use it after deleting it
- You did new [ ], but only delete (or new + delete [ ])
- You allocated x elements, but tried to access more than that
+ some others as well, take your pick.