I have newly made my bcstring class, and it is having some strange errors.
I have given it the ability of dynamically allocating memory. If the memory to be allocated is already allocated, nothing happens (correct/non-problematic); If the memory to be allocated is greater than that that is allocated, and correct parameters are set to allow the automatic allocation, memory is allocated (correct/non-problematic); If the memory to be allocated is less than that that is already allocated, memory is checked against the threshold to see if a new amount of space should be allocated. Then if the difference of the two amounts does exceed the threshold, memory is allocated (error/problematic).
So far these seem to be the only major errors, but this error is in the function that is used most commonly throughout the class, so any function that makes a call to "bcautoallocate" with those specified parameters has errors.
This error causes a sudden termination of the application using this class.
bcstringClass can be downloaded from:
http://brentsite.bravehost.com/
--Use the 'box'
--Please don't comment on the site, it hasn't been updated in about 9 months with the exception of this upload. I am particularly unskilled in web programming and my only internet access is through the public library.
tester.cpp is the executable source code.
bcstring.h is the bcstring class
errors.h contains no actual code, but rather details of some errors.
bcqueue.h contains a class for a futere addition to the bcstring class (ignore this)
bcparams.h constains a class for a future addition to the bcstring class (ignore this)
Those 2 files were included only because they are a part of the dev-cpp project file.
It should be attached to this thread, but just in case...
I am asking for help on how to fix the error, I have told you essentially all I know about the error.
I have spent about 2 weeks trying to solve this error, where the rest of the code took about 3 days to write and 1 day to debug. I was hoping not to have to use daniweb this time, but it seems I have failed.