Wednesday, February 8, 2012

New Guts for PA3

I ripped out the internals of my PA3 code and replaced them with Win32 file handling functions.  As a result, some of the code looks a little cleaner, but it doesn't run without access violations.  But that's been the norm for most of my work in this class, so I'm no worse off than I have been.

My interface was barely changed, but perhaps it should be.





Tuesday, February 7, 2012

Hey PA2, Are We Having Fun Yet?

No!  PA2 still is not fun.  If I were a consumer of alcohol, I would be driven to do so now.  I worked on this assignment for most of the day, and barely have any progress to show for it.

The memory tests from last night continue to work well, so I decided to tackle the basic alignment tests next. After a few hours of desperate troubleshooting, I was able to get the custom new operator to stop crashing, but only by ignoring parameters and cutting things down to their most basic forms.

Now, approaching the end of the day and the end of my sanity, the test I'm hopelessly stuck on at the moment is this:

(mem_Info.currBytesUsed == 5*sizeof(Dog))

How in the world can I make this condition true?  Logic says that it should be, but how to get the code to agree, I do not yet know.

I'm tempted to stay up all night again to keep working on this, but I'm rapidly reaching a point of diminishing returns by doing so. I'm ready to cut my losses for today and try to get some rest.  The mental energy I've expended on PA2 has been immense, even if my results are not.  I'm going to rest up, re-read the online documentation on the Win32 memory functions, and try again tomorrow.

For tonight, I'm leaving PA2 like this:







PA2 Finally Shows Progress

PA2 is still not a comfortable area for me, but I can proudly say that after two days of work, the first set of tests is passing.  The tests defined in memory_test.cpp are out of the way...though I know full well that the destroyHeap method has a huge leak because I can't figure out how to delete a heap without throwing access violations.  But that's a problem for another day.

First set of tests down!



Friday, February 3, 2012

Even PA4 Conspires Against Me!

As you could see from my last few posts, PA4 was going along great.  I made progress steadily until the very, very end.  The getInv() method's unit test fails, and I have absolutely no idea why.  I've fought with it off and on for the last nine hours, and I've made no progress.  For now, I give up.  I'll work on other stuff and come back to this later if there's time.

I'm leaving PA4 right here:

Curse you, getInv!



Thursday, February 2, 2012

PA4 Progress Report 3


PA4 Unit Test Status
Tests currently passing:  18/20  (90%)

Unit Test CategoryStatus
COMBO_TEST
Fail
VECT_TEST_BOOLEANPASS
VECT_TEST_ADDSUBPASS
VECT_TEST_BRACKETPASS
VECT_TEST_CONSTRUCTORPASS
VECT_TEST_FUNCTIONSPASS
VECT_TEST_MATRIXPASS
VECT_TEST_SCALEPASS
VECT_TEST_SETPASS
VECT_TEST_UNARYPASS
MATRIX_TEST_ADDSUBPASS
MATRIX_TEST_BRACKETPASS
MATRIX_TEST_CONSTRUCTORPASS
MATRIX_TEST_MULTIPLYPASS
MATRIX_TEST_SCALEPASS
MATRIX_TEST_UNARYPASS
MATRIX_TEST_SPECIALPASS
MATRIX_TEST_SETPASS
MATRIX_TEST_FUNCTIONSPASS
MATRIX_TEST_INVERSEFail

PA4 Progress Report 2

PA4 Unit Test Status
Tests currently passing:  17/20  (85%)

Unit Test CategoryStatus
COMBO_TEST
Fail
VECT_TEST_BOOLEANPASS
VECT_TEST_ADDSUBPASS
VECT_TEST_BRACKETPASS
VECT_TEST_CONSTRUCTORPASS
VECT_TEST_FUNCTIONSPASS
VECT_TEST_MATRIXPASS
VECT_TEST_SCALEPASS
VECT_TEST_SETPASS
VECT_TEST_UNARYPASS
MATRIX_TEST_ADDSUBPASS
MATRIX_TEST_BRACKETPASS
MATRIX_TEST_CONSTRUCTORPASS
MATRIX_TEST_MULTIPLYPASS
MATRIX_TEST_SCALEPASS
MATRIX_TEST_UNARYPASS
MATRIX_TEST_SPECIALPASS
MATRIX_TEST_SETPASS
MATRIX_TEST_FUNCTIONSFail
MATRIX_TEST_INVERSEFail

Wednesday, February 1, 2012

PA4 Progress Report 1


PA4 Unit Test Status
Tests currently passing:  8/20  (40%)

Unit Test CategoryStatus
COMBO_TEST
Fail
VECT_TEST_BOOLEANPASS
VECT_TEST_ADDSUBPASS
VECT_TEST_BRACKETPASS
VECT_TEST_CONSTRUCTOR PASS
VECT_TEST_FUNCTIONSPASS
VECT_TEST_MATRIXFail
VECT_TEST_SCALEPASS
VECT_TEST_SETPASS
VECT_TEST_UNARYPASS
MATRIX_TEST_ADDSUBFail
MATRIX_TEST_BRACKETFail
MATRIX_TEST_CONSTRUCTORFail
MATRIX_TEST_MULTIPLY Fail
MATRIX_TEST_SCALEFail
MATRIX_TEST_UNARYFail
MATRIX_TEST_SPECIALFail
MATRIX_TEST_SETFail
MATRIX_TEST_FUNCTIONSFail
MATRIX_TEST_INVERSEFail