That is why I am a tech user [upsidedown].
Dind'nt understand all you said, but I dind't correct the code to ensure that there were problems (for example than cleanbuffer is never freed). The buffer==NULL comparation is remnant of previous intent of solving the issue.
Thanks I'll pass this to...
Think I got It.
I just have too free memory (i.e. closing other running software) before calling the same function again.
My program is very non economical so 3 Gb of RAM is not enough sometimes. I'll have to do something with that. Not many time right now (I must USE the program not reprogram...
Thanks fot the code, It worked to check the pointer value returned by malloc, but after that, if repeating the function, memory never gets allocated. For some reason, when memory for _buffer is not allocated, the same happens to cleanbuffer. I thought that because this occurs sometimes, retrying...
Very good answer.
So, if elementos is well defined, should I just expect to use something like
if (_buffer==NULL)
MessagePopup ("here I am", "try again");
??
In that case, I'd repeat the whole procedure (reloading the file) until the error stops??
I tried a stupid thing before
if(...
When errors appear at random, say, when the identical procedure sequences of a program crash only sometimes, first we doubt about the reliability of the code. But as in this example, I can't imagine how a simple initialization fails sometimes. Like the one below. The image shows an example of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.