<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Clarion Edge &#187; General</title>
	<atom:link href="http://www.clarionedge.com/category/clarion/general/feed" rel="self" type="application/rss+xml" />
	<link>http://www.clarionedge.com</link>
	<description>Get an Edge with Clarion!</description>
	<lastBuildDate>Mon, 06 Feb 2012 13:58:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Clarion syntax for the Sublime Text editor</title>
		<link>http://www.clarionedge.com/clarion/general/clarion-syntax-for-the-sublime-text-editor.html</link>
		<comments>http://www.clarionedge.com/clarion/general/clarion-syntax-for-the-sublime-text-editor.html#comments</comments>
		<pubDate>Fri, 30 Dec 2011 16:25:50 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Clarion]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=1028</guid>
		<description><![CDATA[&#160;
Sublime Text is a sophisticated text editor for code, html and prose. You&#8217;ll love the slick user interface and extraordinary features.

I must say that after a few days of use I totally agree! This is [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<blockquote><p align="center"><a href="http://www.sublimetext.com/" target="_blank">Sublime Text</a> is a sophisticated text editor for code, html and prose. You&#8217;ll love the slick user interface and extraordinary features.</p>
</blockquote>
<p align="left">I must say that after a few days of use I totally agree! This is looking like the top contender to replace <a href="http://textpad.com/" target="_blank">TextPad</a>, something I have been trying to do for years without any success. TextPad is great but falls short in a few places and until now I have not found anything that comes close to its ease of use and performance…</p>
<p align="left">Of course there is no syntax definition available for clarion files by default so I have made a start on one. </p>
<p align="left">Disclaimer, I am new to Sublime Text as well as GitHub but I will plug away at it for a while and see what comes out!</p>
<p align="left">You should take a look at the official help for <a href="http://sublimetext.info/docs/en/extensibility/syntaxdefs.html" target="_blank">creating Syntax Definitions</a> before trying to understand the files in the GitHub repo. When it is a little more mature I will create a package that can be loaded easily, for now you will have to do it the hard way <img src='http://www.clarionedge.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p align="left">Grab the code for <a href="https://github.com/fushnisoft/SublimeClarion" target="_blank">SublimeClarion on GitHub</a>.</p>
<p align="left"><a href="http://www.clarionedge.com/wp-content/uploads/image65.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.clarionedge.com/wp-content/uploads/image_thumb57.png" width="244" height="179" /></a></p>
<p align="left">-brahn</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/general/clarion-syntax-for-the-sublime-text-editor.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating AddIns For The C7 IDE&#8211;ClarionMag Article is out!</title>
		<link>http://www.clarionedge.com/everything-else/creating-addins-for-the-c7-ideclarionmag-article-is-out.html</link>
		<comments>http://www.clarionedge.com/everything-else/creating-addins-for-the-c7-ideclarionmag-article-is-out.html#comments</comments>
		<pubDate>Wed, 30 Mar 2011 18:34:53 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Addins]]></category>
		<category><![CDATA[Everything Else]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/everything-else/creating-addins-for-the-c7-ideclarionmag-article-is-out.html</guid>
		<description><![CDATA[I am very excited to announce that Dave from ClarionMag has published my very first clarion magazine article &#8211; Creating AddIns For The C7 IDE&#160;
Check it out, download the addin and play with the source [...]]]></description>
			<content:encoded><![CDATA[<p>I am very excited to announce that Dave from ClarionMag has published my very first clarion magazine article &#8211; <a href="http://www.clarionmag.com/cmag/v13/v13n03c7addin.html" target="_blank">Creating AddIns For The C7 IDE</a>&#160;</p>
<p>Check it out, download the addin and play with the source and get cracking writing your own addins <img src='http://www.clarionedge.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks for the opportunity Dave!</p>
<p>-brahn</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/everything-else/creating-addins-for-the-c7-ideclarionmag-article-is-out.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kinda quiet here&#8230;</title>
		<link>http://www.clarionedge.com/everything-else/kinda-quiet-here.html</link>
		<comments>http://www.clarionedge.com/everything-else/kinda-quiet-here.html#comments</comments>
		<pubDate>Tue, 29 Mar 2011 18:35:47 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Addins]]></category>
		<category><![CDATA[Everything Else]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/everything-else/kinda-quiet-here.html</guid>
		<description><![CDATA[Things have been pretty busy with work these last few weeks and I am waiting to see, along with everyone else, what happens with Clarion 8. There are still loads of addin ideas and plenty [...]]]></description>
			<content:encoded><![CDATA[<p>Things have been pretty busy with work these last few weeks and I am waiting to see, along with everyone else, what happens with Clarion 8. There are still loads of addin ideas and plenty of additional features and fixes waiting for the existing addins so things have certainly not stopped, just on a little break. </p>
<p>I suppose something I should be doing in the meantime is getting the source code uploaded!</p>
<p>(Also, stay tuned for the ClarionMag article. It should coming any day now I am sure…)</p>
<p>-brahn</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/everything-else/kinda-quiet-here.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ClarionMag article coming soon&#8230; !</title>
		<link>http://www.clarionedge.com/everything-else/clarionmag-article-coming-soon.html</link>
		<comments>http://www.clarionedge.com/everything-else/clarionmag-article-coming-soon.html#comments</comments>
		<pubDate>Wed, 19 Jan 2011 12:06:22 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Addins]]></category>
		<category><![CDATA[Everything Else]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/everything-else/clarionmag-article-coming-soon.html</guid>
		<description><![CDATA[&#160;
C7 Addin Possibilities – The ClarionMag Blog
Thanks Dave for the opportunity, I look forward to seeing the published version and to see what the reaction is. Hopefully the article will inspire some more love for [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p><a href="http://www.clarionmag.com/Page/23981">C7 Addin Possibilities</a> – The ClarionMag Blog</p>
<p>Thanks Dave for the opportunity, I look forward to seeing the published version and to see what the reaction is. Hopefully the article will inspire some more love for the IDE <img src='http://www.clarionedge.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  !</p>
<p>-brahn</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/everything-else/clarionmag-article-coming-soon.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automate C6 to C7 conversions with AutoHotKey</title>
		<link>http://www.clarionedge.com/clarion/general/automate-c6-to-c7-conversions-with-autohotkey.html</link>
		<comments>http://www.clarionedge.com/clarion/general/automate-c6-to-c7-conversions-with-autohotkey.html#comments</comments>
		<pubDate>Fri, 19 Nov 2010 11:10:00 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=491</guid>
		<description><![CDATA[Converting a lot of applications from C6 to C7 is a bit of a pain. For each application there can be up to 5 dialogs that need a user response. I am currently (still) involved [...]]]></description>
			<content:encoded><![CDATA[<p>Converting a lot of applications from C6 to C7 is a bit of a pain. For each application there can be up to 5 dialogs that need a user response. I am currently (still) involved in the testing stage of converting a multi-dll system to C7 that is also under active development (in C6 of course). This means that I need to re-convert the whole project every few days… I am <strong><em>really </em></strong>not interested in sitting around and clicking those silly dialogs every time so I created a script using <a href="http://www.autohotkey.com/" target="_blank">AutoHotKey</a> to do the work for me <img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://www.clarionedge.com/wp-content/uploads/wlEmoticon-smile2.png" /></p>
<p>&#160;</p>
<p>For those interested, this is the process:    <br /><em>(This is all triggered from a single batch file)</em></p>
<ol>
<li>
<ol>
<li>Copy C6 apps to a new directory for C7 conversion </li>
<li>Clean out destination directory of cwproj, sln, etc </li>
<li>Launch AutoHotKey file </li>
<li>Call Clarion7 with the “master” app file as a parameter so it auto opens. </li>
</ol>
</li>
</ol>
<p>The AutoHotKey script takes care of ALL of the dialogs, including adding all referenced apps to the project and even sets the path of the dictionary to the new root folder (the C6 project has sub folders which have been scrapped for the C7 version)</p>
<p>Once that is done, typically 10 minutes or so on my <a href="http://www.clarionedge.com/everything-else/system-is-down-for-maintenance.html" target="_blank">new machine</a>, I click generate/build and sit back and wait! (yeah, it would be nice to also automate the generate/build… there might be an addin coming up for that to)</p>
<p>This is the AHK script, you may need to adjust it to suit your specific needs. Oh and Win+C will close the script.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
</pre></td><td class="code"><pre class="autohotkey" style="font-family:monospace;"><span style="color: #FF00FF; font-style: italic;">Loop</span>
<span style="color: #00FF00; font-weight: bold;">&#123;</span>
  <span style="color: #FF00FF; font-style: italic;">IfWinExist</span><span style="color: #000000; font-weight: italic;">,</span> Generator
  <span style="color: #00FF00; font-weight: bold;">&#123;</span>
    <span style="color: #FF00FF; font-style: italic;">WinActivate</span>
	<span style="color: #FF00FF; font-style: italic;">ControlClick</span><span style="color: #000000; font-weight: italic;">,</span> OK<span style="color: #000000; font-weight: italic;">,</span> Generator
	<span style="color: #FF00FF; font-style: italic;">ControlClick</span><span style="color: #000000; font-weight: italic;">,</span> Yes<span style="color: #000000; font-weight: italic;">,</span> Generator
  <span style="color: #00FF00; font-weight: bold;">&#125;</span>
  <span style="color: #FF00FF; font-style: italic;">IfWinExist</span><span style="color: #000000; font-weight: italic;">,</span> <span style="color: #000000; font-weight: italic;">,</span> Unable to find the specified dictionary
  <span style="color: #00FF00; font-weight: bold;">&#123;</span>
    <span style="color: #FF00FF; font-style: italic;">WinActivate</span>
	<span style="color: #FF00FF; font-style: italic;">ControlClick</span><span style="color: #000000; font-weight: italic;">,</span> OK<span style="color: #000000; font-weight: italic;">,</span> <span style="color: #000000; font-weight: italic;">,</span> Unable to find the specified dictionary
  <span style="color: #00FF00; font-weight: bold;">&#125;</span>
  <span style="color: #FF00FF; font-style: italic;">IfWinExist</span><span style="color: #000000; font-weight: italic;">,</span> Select New Dictionary
  <span style="color: #00FF00; font-weight: bold;">&#123;</span>
    <span style="color: #FF00FF; font-style: italic;">WinActivate</span>
	<span style="color: #FF00FF; font-style: italic;">ControlSetText</span> WindowsForms10<span style="color: #000000; font-weight: italic;">.</span><span style="color: #000000; font-style: italic;">EDIT</span><span style="color: #000000; font-weight: italic;">.</span>app<span style="color: #000000; font-weight: italic;">.</span>0<span style="color: #000000; font-weight: italic;">.</span>378734a1<span style="color: #000000; font-weight: italic;">,</span> Global<span style="color: #000000; font-weight: italic;">.</span>dct
	<span style="color: #FF00FF; font-style: italic;">ControlClick</span><span style="color: #000000; font-weight: italic;">,</span> <span style="color: #000000; font-weight: italic;">&amp;</span>amp<span style="font-style: italic; color: #009933;">;OK, Select New Dictionary</span>
  <span style="color: #00FF00; font-weight: bold;">&#125;</span>
&nbsp;
  <span style="color: #FF00FF; font-style: italic;">IfWinExist</span><span style="color: #000000; font-weight: italic;">,</span> Upgrade DCT file
  <span style="color: #00FF00; font-weight: bold;">&#123;</span>
    <span style="color: #FF00FF; font-style: italic;">WinActivate</span>
	<span style="color: #FF00FF; font-style: italic;">ControlClick</span><span style="color: #000000; font-weight: italic;">,</span> OK<span style="color: #000000; font-weight: italic;">,</span> Upgrade DCT file
  <span style="color: #00FF00; font-weight: bold;">&#125;</span>
&nbsp;
  <span style="color: #FF00FF; font-style: italic;">IfWinExist</span><span style="color: #000000; font-weight: italic;">,</span> Dictionary Changes
  <span style="color: #00FF00; font-weight: bold;">&#123;</span>
    <span style="color: #FF00FF; font-style: italic;">WinActivate</span>
	<span style="color: #FF00FF; font-style: italic;">ControlClick</span><span style="color: #000000; font-weight: italic;">,</span> OK<span style="color: #000000; font-weight: italic;">,</span> Dictionary Changes
  <span style="color: #00FF00; font-weight: bold;">&#125;</span>
&nbsp;
  <span style="color: #FF00FF; font-style: italic;">IfWinExist</span><span style="color: #000000; font-weight: italic;">,</span> Question
  <span style="color: #00FF00; font-weight: bold;">&#123;</span>
    <span style="color: #FF00FF; font-style: italic;">WinActivate</span>
	<span style="color: #FF00FF; font-style: italic;">ControlClick</span><span style="color: #000000; font-weight: italic;">,</span> <span style="color: #000000; font-weight: italic;">&amp;</span>amp<span style="font-style: italic; color: #009933;">;Yes, Question</span>
  <span style="color: #00FF00; font-weight: bold;">&#125;</span>
&nbsp;
  <span style="color: #FF00FF; font-style: italic;">Sleep</span><span style="color: #000000; font-weight: italic;">,</span> <span style="color: #0000dd;">500</span>  
  <span style="color: #AAAAFF; font-weight: bold;">if</span> X <span style="color: #000000; font-weight: italic;">=</span> <span style="color: #0000dd;">1</span>
  <span style="color: #FF00FF; font-style: italic;">Break</span>
<span style="color: #00FF00; font-weight: bold;">&#125;</span>
<span style="color: #FF00FF; font-style: italic;">ExitApp</span>
&nbsp;
#c::
X <span style="color: #000000; font-weight: italic;">:=</span> <span style="color: #0000dd;">1</span>
<span style="color: #AAAAFF; font-weight: bold;">Return</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/general/automate-c6-to-c7-conversions-with-autohotkey.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>R.I.P. faq.clarionmag.com</title>
		<link>http://www.clarionedge.com/clarion/general/r-i-p-faq-clarionmag-com.html</link>
		<comments>http://www.clarionedge.com/clarion/general/r-i-p-faq-clarionmag-com.html#comments</comments>
		<pubDate>Thu, 29 Jul 2010 21:06:28 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Clarion]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/clarion/general/r-i-p-faq-clarionmag-com.html</guid>
		<description><![CDATA[I know it was a while ago now but I still feel the loss. Apparently the good folk at StackExchange decided there was not enough traffic. 
More info http://www.clarionmag.com/cmag/faq.html
]]></description>
			<content:encoded><![CDATA[<p>I know it was a while ago now but I still feel the loss. Apparently the good folk at <a href="http://stackexchange.com/">StackExchange</a> decided there was not enough traffic. </p>
<p>More info <a title="http://www.clarionmag.com/cmag/faq.html" href="http://www.clarionmag.com/cmag/faq.html">http://www.clarionmag.com/cmag/faq.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/general/r-i-p-faq-clarionmag-com.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clarion 6 Editor Tip &#8211; Ctrl+PgUp/PgDown</title>
		<link>http://www.clarionedge.com/clarion/general/clarion-6-editor-tip-ctrlpguppgdown.html</link>
		<comments>http://www.clarionedge.com/clarion/general/clarion-6-editor-tip-ctrlpguppgdown.html#comments</comments>
		<pubDate>Fri, 07 May 2010 11:02:07 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/clarion/general/clarion-6-editor-tip-ctrlpguppgdown.html</guid>
		<description><![CDATA[&#160;
This is something I hadn’t noticed before today. It may be common knowledge to others   
When editing an embed, if you hold down control key then PageUp and PageDown are restricted to the [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>This is something I hadn’t noticed before today. It may be common knowledge to others <img src='http://www.clarionedge.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>When editing an embed, if you hold down control key then PageUp and PageDown are restricted to the current page instead of scrolling up/down. Kind of like Home/End for the visible area only. </p>
<p>Do you know of any other obscure keyboard tricks in the Clarion editor?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/general/clarion-6-editor-tip-ctrlpguppgdown.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>APPCRASH fun with WslDebug$NameMessage</title>
		<link>http://www.clarionedge.com/clarion/general/appcrash-fun-with-wsldebugnamemessage.html</link>
		<comments>http://www.clarionedge.com/clarion/general/appcrash-fun-with-wsldebugnamemessage.html#comments</comments>
		<pubDate>Sat, 25 Apr 2009 13:19:02 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=228</guid>
		<description><![CDATA[At work the other day we had a report from a client that the latest version of our software was not working on new Vista machines. Ingeniously, the customer managed to discover that if they [...]]]></description>
			<content:encoded><![CDATA[<p>At work the other day we had a report from a client that the latest version of our software was not working on new Vista machines. Ingeniously, the customer managed to discover that if they initially launched the program with elevated (administrator) access then subsequent executions of  the program would work un-elevated.</p>
<p>Just yestarday I managed to duplicate these symptoms in my development environment and discovered that the problem was being triggered in the InitSetEventOffset ROUTINE of the Debuger class we are using.</p>
<p>You can download the class over at Radfusion <a href="http://www.radfusion.com/PDFgallery.htm" target="_blank">Free Downloads</a>.</p>
<p>The helpful folk over at the <a href="http://www.skype.com/go/joinpublicchat?chat&amp;skypename=msarson&amp;topic=CW-Talk+2&amp;blob=r8AnVvWRDpLksKm_V4l2uDqrht9EI8omKxWpHOiLNI9fyhx5IRDg7B8lK7EcgmFbDGj7_U_S72A6dIVQp_evDjjFvjW75-OEst5zTiRAn3vucAazmaE2rV8P0Zw6A167h6Vhn4T2T_s8cnZ6Z3WdG4apN9O6t0-R" target="_blank">clarion skype chat</a> were able to narrow this down to a problem with the length of the CSTRING used in the call to DebugerNameMessage.</p>
<p>Further analysis shows that this only manifests as an issue under very specific circumstances:</p>
<ul>
<li>The class instance is created using New().</li>
<li>The application is compiled with debug mode set to &#8220;off&#8221; (or in other words, in &#8220;release&#8221; mode).</li>
<li>The application is run &#8220;asInvoker&#8221; on a system with UAC tuned ON.</li>
<li>There is no &#8220;EventOffset&#8221; entry already in the WIN.INI file*.</li>
</ul>
<p><sub>* That last point will depend on the version of the debuger class you are using. The one we have here is &#8220;6.0.2&#8243; but there are others around that no longer use WIN.INI and they might work OK. Note though that when I say &#8220;OK&#8221; the problem hasn&#8217;t gone away and you will still see the APPCRASH error the first time your program is run but subsequent executions will be able to read the offset from the INI file and this bypasses this bug.</sub></p>
<p>Changing the variable from CSTRING(20) to CSTRING(128) fixed the problem (Thanks Larry!) but I was still curious to find out what the cause was.</p>
<p>First lets look at the prototype forDebugerNameMessage :</p>

<div class="wp_syntax"><div class="code"><pre class="clarion" style="font-family:monospace;">MODULE('C%V%RUN%X%')
  DebugerNameMessage(*CSTRING, UNSIGNED EventNum ),NAME('WslDebug$NameMessage'),RAW   !Note: use   EVENT() + EVENT:FIRST else will get WM_*
END</pre></div></div>

<p>And it&#8217;s usage:</p>

<div class="wp_syntax"><div class="code"><pre class="clarion" style="font-family:monospace;">Debuger.GetEventDescr             PROCEDURE(LONG ArgEvent)
LOC:Retval   CSTRING(20)
LOC:EventNum UNSIGNED
  CODE
  DebugerNameMessage(LOC:Retval, LOC:EventNum)</pre></div></div>

<p>(I have removed all the other code from the above method just for clarity in this example)</p>
<p>The call to DebugerNameMessage crashed just after giving this result:</p>

<div class="wp_syntax"><div class="code"><pre class="clarion" style="font-family:monospace;">LOC:Retval=WM_OTHERWINDOWCREATE, LOC:EventNum=66</pre></div></div>

<p>When the LOC:RetVal is changed to CSTRING(128) we see that the next call is this:</p>

<div class="wp_syntax"><div class="code"><pre class="clarion" style="font-family:monospace;">LOC:Retval=WM_OTHERWINDOWDESTROY, LOC:EventNum=67</pre></div></div>

<p>The reason for the crash I guess is Len(WM_OTHERWINDOWDESTROY) &gt; 20</p>
<p>There are 2 questions remaining and I think I have the answer for one:</p>
<h4>Why does it only crash when the class is instantiated with New()?</h4>
<p>I am pretty sure this simply because when using New() the &#8220;EventOffset&#8221; is different and so the InitSetEventOffset routine attempts to find the correct offset and thus triggering the problem with our too small variable.</p>
<h4>Why does it only happen when the program is compile with debugging turned OFF?</h4>
<p>I guess in debug mode the code it is not so sensitive about the buffer overrun it still seems kind of strange that it should work at all.</p>
<p>Hopefully someone reading this will be able to give a hint as to a possible reason?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/general/appcrash-fun-with-wsldebugnamemessage.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using THEN to improve IF  clarity</title>
		<link>http://www.clarionedge.com/clarion/general/using-then-to-improve-if-clarity.html</link>
		<comments>http://www.clarionedge.com/clarion/general/using-then-to-improve-if-clarity.html#comments</comments>
		<pubDate>Sun, 08 Feb 2009 16:09:48 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Clarion]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=165</guid>
		<description><![CDATA[Something that came up recently on CW-Talk2 which I found to be a very interesting insight.
In Clarion the help has this description for &#8220;IF&#8221;:


1
2
3
4
5
6
7
IF logical expression [ THEN ]
  statements
[ ELSIF logical expression  [ [...]]]></description>
			<content:encoded><![CDATA[<p>Something that came up recently on CW-Talk2 which I found to be a very interesting insight.</p>
<h4>In Clarion the help has this description for &#8220;IF&#8221;:</h4>
<p><span id="more-165"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="clarion" style="font-family:monospace;">IF logical expression [ THEN ]
  statements
[ ELSIF logical expression  [ THEN ]
  statements ]
[ ELSE
  statements ]
END</pre></td></tr></table></div>

<p>Quite often in production code I have seen examples of many, many lines of expressions after the IF, the developer using the &#8220;|&#8221; line continuator to span multiple lines.</p>
<p>The comment, I think it was Marg G, was to use THEN to make it clear where the &lt;expressions&gt; have finished and the &lt;statements&gt; have begun:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="clarion" style="font-family:monospace;">IF &lt;some condition&gt; OR |
   &lt;some other condition&gt; OR |
   &lt;even more conditions&gt; |
THEN
  ! Do something
END</pre></td></tr></table></div>

<p>Pretty simple and very neat!</p>
<p>It will be nice to see if C7 supports code folding for this kind of structure as well&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/general/using-then-to-improve-if-clarity.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clarion Sucks</title>
		<link>http://www.clarionedge.com/clarion/general/clarion-sucks.html</link>
		<comments>http://www.clarionedge.com/clarion/general/clarion-sucks.html#comments</comments>
		<pubDate>Mon, 05 May 2008 17:05:13 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=8</guid>
		<description><![CDATA[Ha!
Nah, not really, that is just blatant sensationalism to get your attention  
I found an article the other day that was a really interesting read.
From the article:
I’m trying to push for more Python adoption [...]]]></description>
			<content:encoded><![CDATA[<p>Ha!</p>
<p>Nah, not really, that is just blatant sensationalism to get your attention <img src='http://www.clarionedge.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I found an article the other day that was a really interesting read.</p>
<p>From the article:</p>
<blockquote><p>I’m trying to push for more Python adoption at the company I work at. This led me to casually google for &#8220;Python sucks&#8221; in order to anticipate any criticisms from coworkers.</p></blockquote>
<p><em>From&#8221;<a href="http://coffeeghost.net/2008/03/19/your-ignorance-does-not-make-a-programming-language-suck/" target="_blank">Your Ignorance Does Not Make a Programming Language Suck</a> &#8220;</em></p>
<p>It is an interesting idea for determining status of something. There is just mostly noise with &#8220;<a href="http://www.google.com/search?q=Clarion+sucks" target="_blank">Clarion sucks</a>&#8220;. Another option is &#8220;<a href="http://www.google.com/search?q=Softvelocity+sucks" target="_blank">Softvelocity sucks</a> &#8221; which gets a few hits. Go on, have a try of those links for a giggle.</p>
<p>Still talking about Clarion, it&#8217;s nice to see Clarion recognised in a list of this kind:</p>
<p><a href="http://www.roesler-ac.de/wolfram/hello.htm" target="_blank">The Hello World Collection</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/general/clarion-sucks.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.clarionedge.com/category/clarion/general/feed ) in 0.54122 seconds, on Feb 7th, 2012 at 11:21 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 7th, 2012 at 12:21 pm UTC -->
