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.
Wednesday, February 8, 2012
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:
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 Category | Status |
|---|---|
| COMBO_TEST |
Fail
|
| VECT_TEST_BOOLEAN | PASS |
| VECT_TEST_ADDSUB | PASS |
| VECT_TEST_BRACKET | PASS |
| VECT_TEST_CONSTRUCTOR | PASS |
| VECT_TEST_FUNCTIONS | PASS |
| VECT_TEST_MATRIX | PASS |
| VECT_TEST_SCALE | PASS |
| VECT_TEST_SET | PASS |
| VECT_TEST_UNARY | PASS |
| MATRIX_TEST_ADDSUB | PASS |
| MATRIX_TEST_BRACKET | PASS |
| MATRIX_TEST_CONSTRUCTOR | PASS |
| MATRIX_TEST_MULTIPLY | PASS |
| MATRIX_TEST_SCALE | PASS |
| MATRIX_TEST_UNARY | PASS |
| MATRIX_TEST_SPECIAL | PASS |
| MATRIX_TEST_SET | PASS |
| MATRIX_TEST_FUNCTIONS | PASS |
| MATRIX_TEST_INVERSE | Fail |
PA4 Progress Report 2
PA4 Unit Test Status
Tests currently passing: 17/20 (85%)
Tests currently passing: 17/20 (85%)
| Unit Test Category | Status |
|---|---|
| COMBO_TEST |
Fail
|
| VECT_TEST_BOOLEAN | PASS |
| VECT_TEST_ADDSUB | PASS |
| VECT_TEST_BRACKET | PASS |
| VECT_TEST_CONSTRUCTOR | PASS |
| VECT_TEST_FUNCTIONS | PASS |
| VECT_TEST_MATRIX | PASS |
| VECT_TEST_SCALE | PASS |
| VECT_TEST_SET | PASS |
| VECT_TEST_UNARY | PASS |
| MATRIX_TEST_ADDSUB | PASS |
| MATRIX_TEST_BRACKET | PASS |
| MATRIX_TEST_CONSTRUCTOR | PASS |
| MATRIX_TEST_MULTIPLY | PASS |
| MATRIX_TEST_SCALE | PASS |
| MATRIX_TEST_UNARY | PASS |
| MATRIX_TEST_SPECIAL | PASS |
| MATRIX_TEST_SET | PASS |
| MATRIX_TEST_FUNCTIONS | Fail |
| MATRIX_TEST_INVERSE | Fail |
Wednesday, February 1, 2012
PA4 Progress Report 1
PA4 Unit Test Status
Tests currently passing: 8/20 (40%)
| Unit Test Category | Status |
|---|---|
| COMBO_TEST |
Fail
|
| VECT_TEST_BOOLEAN | PASS |
| VECT_TEST_ADDSUB | PASS |
| VECT_TEST_BRACKET | PASS |
| VECT_TEST_CONSTRUCTOR | PASS |
| VECT_TEST_FUNCTIONS | PASS |
| VECT_TEST_MATRIX | Fail |
| VECT_TEST_SCALE | PASS |
| VECT_TEST_SET | PASS |
| VECT_TEST_UNARY | PASS |
| MATRIX_TEST_ADDSUB | Fail |
| MATRIX_TEST_BRACKET | Fail |
| MATRIX_TEST_CONSTRUCTOR | Fail |
| MATRIX_TEST_MULTIPLY | Fail |
| MATRIX_TEST_SCALE | Fail |
| MATRIX_TEST_UNARY | Fail |
| MATRIX_TEST_SPECIAL | Fail |
| MATRIX_TEST_SET | Fail |
| MATRIX_TEST_FUNCTIONS | Fail |
| MATRIX_TEST_INVERSE | Fail |
Subscribe to:
Posts (Atom)
