Post details: Fighting side effects

04/21/08

Permalink 10:01:58 pm, by Alexey Solofnenko Email , 106 words, 48 views   English (US)
Categories: Software

Fighting side effects

Today I was fixing few Windows forms. There few problems that usually should be easy to fix. However in this case none of direct approaches worked. After few attempts I found that there is a logic in a form Closing event, also in OnHandleDescroyed(). As if it was not enough, there was a secret order of calls to initialize the form. After direct approach failed, I reverted all changes and started refactoring the code to simplify internal relations, move code out of the form into custom controls... At the end the all main problems were fixed and I am preaching everybody not to program like that.

Trackback address for this post:

http://blog.asolofnenko.cjb.net/c\/trackback.php/147

Comments, Trackbacks:

No Comments/Trackbacks for this post yet...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))
This is a captcha-picture. It is used to prevent mass-access by robots.

Please enter the characters from the image above. (case sensitive)

Alexey Solofnenko blog

August 2008
Sun Mon Tue Wed Thu Fri Sat
<< <     
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

Search

Categories

Linkblog

links

Misc

XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 2

powered by
b2evolution