Apr. 9th, 2004

gazerwolf: (Default)
Just 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.
gazerwolf: (Default)
Just 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.

Profile

gazerwolf: (Default)
gazerwolf

December 2018

S M T W T F S
      1
2345678
9101112131415
1617 181920 2122
23242526272829
3031     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 4th, 2025 05:05 am
Powered by Dreamwidth Studios