WordPress database error: [INSERT, UPDATE command denied to user '51213-2'@'10.10.20.76' for table 'wp_options']
INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('_transient_doing_cron', '1715819942.9731190204620361328125', 'yes') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`)


Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372

Warning: Cannot modify header information - headers already sent by (output started at /home/lexiqued/www/WordPress/wp-includes/wp-db.php:1502) in /home/lexiqued/www/WordPress/wp-includes/rest-api/class-wp-rest-server.php on line 1372
{"id":359,"date":"2011-09-19T01:02:45","date_gmt":"2011-09-19T00:02:45","guid":{"rendered":"http:\/\/www.jonathanantoine.com\/?p=359"},"modified":"2011-10-21T15:57:01","modified_gmt":"2011-10-21T14:57:01","slug":"wpf-4-5-part-2-improved-weakeventmanager","status":"publish","type":"post","link":"http:\/\/www.jonathanantoine.com\/2011\/09\/19\/wpf-4-5-part-2-improved-weakeventmanager\/","title":{"rendered":"WPF 4.5 – Part 2 : Improved WeakEventManager"},"content":{"rendered":"

\"\"<\/a>Memory leaks were, are and always will be a concern in an application. One of it’s classical origin is unsubscribed events handler. <\/p>\n

The weak event pattern is here to the rescue but it is quite tedious to implement.<\/p>\n

In this post we’ll see how the WPF teams ease up our life when using the WeakEventManager class.<\/strong>
\nThis post is a part of a
serie about the new features of WPF 4.5<\/a>.
\n<\/p>\n

Generic Weak Event Manager<\/h3>\n

Prior to WPF 4.5 you had too create a weak event manger for every event you want to subscribe too. <\/p>\n

Now it’s over and you can use a generic version of the WeakEventManager class. <\/strong><\/p>\n

It takes as a generic parameters the type of the event’s source and the type of the dealed event arguments.
\n[csharp]
\n\/\/ Type parameters:
\n\/\/ TEventSource:
\n\/\/ The type that raises the event.
\n\/\/
\n\/\/ TEventArgs:
\n\/\/ The type that holds the event data.
\npublic class WeakEventManager<TEventSource, TEventArgs> :
\n WeakEventManager where TEventArgs : EventArgs
\n[\/csharp]<\/p>\n

It also exposes two statics methods on it:<\/p>\n