Dennis Log
Thursday Sept 5, 2013
- Spent Thursday working on lab 1. I'll be working on lab 2 on Thursday this week.
Saturday Sept 7, 2013
- Spent Saturday working on the display function of assignment 1 and got it working. Huda has already finished most of the edit. function for A1. I will be working on the Backspace and Delete components of the edit function.
- A few notes though from working on the lab and assignment.
Anti virus applications need to be temporarily deactivated before running labs and assignments compiled by the Borland compiler due to AV programs mistakenly treating compiled labs and assignments as viruses.
I've been having an issue with ghost keys on my laptop due to degradation of the bus(?) that controls my laptop's keyboard though it hopefully should not pose any issues with working on the assignment.
Monday Sept 9
- Got the delete and backspace function working after 3 hours working on this application. Found an issue with the insert function in that it is not working. Will be looking at it later this week.
Thursday Sept 12
- Fixed the insert issue, it turns out we forgot to put in a condition that detects when the insert button is clicked in our switch case statement. There was also an issue with compiling it in matrix due to using the strlen and strcpy methods. After adding #include<cstring> the application now compiles in matrix as well. Ran through the test a few times and it passed all of the. Sent the application over to Huda for her to take a look at it and see if there's any bugs or issues missed.
Friday Sept 20
- Huda informed me of a bug wherein the null character that terminates a string is showing up when the program is run on a GNU environment and the backspace or delete key is used.
Tuesday Sept 24
- looked at the backspace and delete function but couldn't come up with anything that fixed the issue. Realized that since the application is still passing all the A1main tests that the issue isn't with the string but with how it is being displayed and that the issue could rest with the display function. After looking at the display function realized that the display function is currently printing out the entire string and then printing out spaces at the end. It should actually be writing the str to a temporary string, buffing the string with spaces until it is the same length as fieldLen and then adding the null character to properly terminate the string.
Wednesday Sept 25
- Implemented the bug fix and it works. Matrix running painfully slowly for me so only tested it on Ubuntu where the issue was also showing up. So far no problems. Emailed fixed copy of the application to Huda and Shianne, one of us can later test the app on matrix once that environment is a bit more manageable.