(no subject)
Apr. 9th, 2004 09:15 amJust finished tracking down a nasty bug in the tarot networks webmail program.
Took a long time...mainly because I couldn't reproduce the error in testing.
Occasionally the compose portion of the program would crash and burn.
After a LOT of testing I finally managed to reproduce the problem...I had to have a completely empty mailbox and compose a message and save a copy of what I sent.
BOOM every time.
So that told me WHAT.
I already had where from the error logs.
Come to find out it was complaing of an undefined reference to an array.
Apparently the original programer was using a slightly wrong method for putting the just sent message header in the array...if the array didn't have anything in it to begin with (whiich it doesn't with a completely empty mailbox) the new addition got ignored. The very next statement tried to write it to file and said "Hey!? I ain't got no data here!"
The original author was sending it to a sort routine which was checking to see where to put it relative to the other messages by time and date.
For some reason this routine (which works fine on incoming messages) completely ignores sent messages.
Since a sent message is by definition the newest message..I just poped it on the end of the array instead of sending it to sort.
Problem solved.
Took a long time...mainly because I couldn't reproduce the error in testing.
Occasionally the compose portion of the program would crash and burn.
After a LOT of testing I finally managed to reproduce the problem...I had to have a completely empty mailbox and compose a message and save a copy of what I sent.
BOOM every time.
So that told me WHAT.
I already had where from the error logs.
Come to find out it was complaing of an undefined reference to an array.
Apparently the original programer was using a slightly wrong method for putting the just sent message header in the array...if the array didn't have anything in it to begin with (whiich it doesn't with a completely empty mailbox) the new addition got ignored. The very next statement tried to write it to file and said "Hey!? I ain't got no data here!"
The original author was sending it to a sort routine which was checking to see where to put it relative to the other messages by time and date.
For some reason this routine (which works fine on incoming messages) completely ignores sent messages.
Since a sent message is by definition the newest message..I just poped it on the end of the array instead of sending it to sort.
Problem solved.