{"id":70,"date":"2010-11-16T21:30:52","date_gmt":"2010-11-16T21:30:52","guid":{"rendered":""},"modified":"2010-11-16T21:30:52","modified_gmt":"2010-11-16T21:30:52","slug":"disappearing-application","status":"publish","type":"post","link":"http:\/\/www.icetips.com\/blog_wp\/2010\/11\/16\/disappearing-application\/","title":{"rendered":"Disappearing application&#8230;"},"content":{"rendered":"<p>I'm sure we have all seen this from time to time!  We run our newly compiled program only to have it disappear all of a sudden for no apparent reason.  We search and search and search...  Finally we find, using whatever debugging methods we choose, that the program goes down when it assigns a value to a variable.  Doesn't make any sense at all until we, hours later, realize that the darn variable is a REFERENCE variable!  Yep, we accidentally hit the \"Reference\" checkbox on the column property window.<\/p>\n<p><a href=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/clarion_data_reference.png\" target=\"_blank\"><img decoding=\"async\" src=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/clarion_data_reference_sm.jpg\" border=\"0\" style=\"float:right;margin:10px 0px 10px 10px\" \/><\/a><\/p>\n<p>This looks all so simple and happy, doesn't it?  <\/p>\n<p>But there is a deadly problem lurking on that window that is <u>so easy<\/u> to overlook!  <\/p>\n<p>Do you see what it is?  <\/p>\n<p>No?  <\/p>\n<p>Look again!<\/p>\n<p><b>The \"Reference\" checkbox!  <\/b><\/p>\n<p><a href=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/clarion_data_reference_hl.png\" target=\"_blank\"><img decoding=\"async\" src=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/clarion_data_reference_hl_sm.jpg\" border=\"0\" style=\"float:right;margin:10px 0px 10px 10px\" \/><\/a><\/p>\n<p>In the past years I have probably lost more time to this than anything else and it is nobody's fault but my own!  <\/p>\n<p>It happens once in a while and that is the problem.  If it happened every day I'd expect it, but it happens perhaps every 3 months or so.  <\/p>\n<p>I'm still not sure what I do to accidentally check it!  The hot key for it is Alt-F and I'm very used to very quickly hit Alt-F-S to save.  Years ago I found that key combination to be easier and more universal than Ctrl-S for Save so I stuck with Alt-F-S and I'm wondering if that's what I'm accidentally doing.  Or maybe I accidentally click on it.  Don't know.  <\/p>\n<p>Whatever the reason is, every so often I check the \"Reference\" checkbox and it's always when I'm implementing something new.  So I, rather logically, assume that it is whatever new I'm adding, not that new variable I just added.  After all, what in the world could go wrong when creating a simple variable?  As it turns out, quite a lot can go wrong;)  <\/p>\n<p>So what happens when you try to assign the \"July 31, 2009\" date value to a reference variable?  Chances are very good that the program is going to fall over in a dramatic way - no GPF, no nothing.  It just disappears!  It is unlikely that the value 76186 is pointing to anything useful!  <\/p>\n<p>It would be nice if a warning message was implemented in Clarion 7 as an option so that it would warn when the Reference checkbox was checked when creating or modifying a variable with something like:  \"Are you sure you want to create a Reference variable?\" or \"Are you sure you want to change \"Loc:FromDate\" into a Reference variable (&amp;Loc:FromDate)?\"  It would save me some time and definitely some frustration when I accidentally check the \"Reference checkbox\"!<\/p>\n<p>Happy bug hunting:)<\/p>\n<p>Arnor Baldvinsson<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_70\" class=\"pvc_stats all  \" data-element-id=\"70\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I'm sure we have all seen this from time to time! We run our newly compiled program only to have it disappear all of a sudden for no apparent reason. We search and search and search... Finally we find, using whatever debugging methods we choose, that the program goes down when it assigns a value <a href=\"http:\/\/www.icetips.com\/blog_wp\/2010\/11\/16\/disappearing-application\/\" class=\"more-link\">...continue reading <span class=\"screen-reader-text\">Disappearing application&#8230;<\/span><\/a><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_70\" class=\"pvc_stats all  \" data-element-id=\"70\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-70","post","type-post","status-publish","format-standard","hentry","category-technical"],"_links":{"self":[{"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/posts\/70","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/comments?post=70"}],"version-history":[{"count":0,"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/posts\/70\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/media?parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/categories?post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/tags?post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}