<?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>Olaf's Thoughts About Development &#187; Standalone</title>
	<atom:link href="http://www.monien.net/blog/index.php" rel="self" type="application/rss+xml" />
	<link>http://www.monien.net/blog</link>
	<description>Delphi Programming, .NET Philosophy, Web development and more ...</description>
	<lastBuildDate>Mon, 14 Mar 2011 15:59:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>IntraWeb compression</title>
		<link>http://www.monien.net/blog/index.php/2008/04/intraweb-compression/</link>
		<comments>http://www.monien.net/blog/index.php/2008/04/intraweb-compression/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 15:22:43 +0000</pubDate>
		<dc:creator>Olaf Monien</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[IntraWeb]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[ServerController]]></category>
		<category><![CDATA[Standalone]]></category>

		<guid isPermaLink="false">http://www.monien.net/blog/index.php/2008/04/intraweb-compression/</guid>
		<description><![CDATA[Using IntraWeb&#8217;s integrated compression option you can easily speed up the transfer of your applications forms. Interestingly many IntraWeb users don&#8217;t know that there is a Compression option in the ServerController: just set ServerController.Compression.Enabled = true and IntraWeb will compress all pages sent to the web browser. If the Web browser doesn&#8217;t support compression, then [...]]]></description>
			<content:encoded><![CDATA[<p>Using IntraWeb&#8217;s integrated compression option you can easily speed up the transfer of your applications forms.<span id="more-27"></span></p>
<p>Interestingly many IntraWeb users don&#8217;t know that there is a Compression option in the ServerController:</p>
<p>just set <span style="font-style: italic;">ServerController.Compression.Enabled</span> <span style="font-style: italic;">= true </span>and IntraWeb will compress all pages sent to the web browser. If the Web browser doesn&#8217;t support compression, then IntraWeb will of course detect that and send uncompressed.</p>
<p>The only requirement is to put a zlib.dll into the application&#8217;s directory. A working version can be downloaded <a href="http://downloads.atozed.com/intraweb/zlib.zip" target="_Blank">here</a>. No changes/settings on the client side are necessary.</p>
<p>There is one trade-off though which you should keep in mind: compression takes CPU cycles. Thats no problem for the client, but if your server machine is already close to its limit, then compression might not be a so good idea ..</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=IntraWeb+compression&amp;link=http://www.monien.net/blog/index.php/2008/04/intraweb-compression/&amp;notes=Using%20IntraWeb%27s%20integrated%20compression%20option%20you%20can%20easily%20speed%20up%20the%20transfer%20of%20your%20applications%20forms.%0D%0A%0D%0AInterestingly%20many%20IntraWeb%20users%20don%27t%20know%20that%20there%20is%20a%20Compression%20option%20in%20the%20ServerController%3A%0D%0A%0D%0Ajust%20set%20ServerController.Compression.Enabled%20%3D%20true%20and%20IntraWeb%20will%20compre&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://www.monien.net/blog/index.php/2008/04/intraweb-compression/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=IntraWeb+compression&amp;link=http://www.monien.net/blog/index.php/2008/04/intraweb-compression/&amp;notes=Using%20IntraWeb%27s%20integrated%20compression%20option%20you%20can%20easily%20speed%20up%20the%20transfer%20of%20your%20applications%20forms.%0D%0A%0D%0AInterestingly%20many%20IntraWeb%20users%20don%27t%20know%20that%20there%20is%20a%20Compression%20option%20in%20the%20ServerController%3A%0D%0A%0D%0Ajust%20set%20ServerController.Compression.Enabled%20%3D%20true%20and%20IntraWeb%20will%20compre&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=IntraWeb+compression&amp;link=http://www.monien.net/blog/index.php/2008/04/intraweb-compression/&amp;notes=Using%20IntraWeb%27s%20integrated%20compression%20option%20you%20can%20easily%20speed%20up%20the%20transfer%20of%20your%20applications%20forms.%0D%0A%0D%0AInterestingly%20many%20IntraWeb%20users%20don%27t%20know%20that%20there%20is%20a%20Compression%20option%20in%20the%20ServerController%3A%0D%0A%0D%0Ajust%20set%20ServerController.Compression.Enabled%20%3D%20true%20and%20IntraWeb%20will%20compre&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=IntraWeb+compression&amp;link=http://www.monien.net/blog/index.php/2008/04/intraweb-compression/&amp;notes=Using%20IntraWeb%27s%20integrated%20compression%20option%20you%20can%20easily%20speed%20up%20the%20transfer%20of%20your%20applications%20forms.%0D%0A%0D%0AInterestingly%20many%20IntraWeb%20users%20don%27t%20know%20that%20there%20is%20a%20Compression%20option%20in%20the%20ServerController%3A%0D%0A%0D%0Ajust%20set%20ServerController.Compression.Enabled%20%3D%20true%20and%20IntraWeb%20will%20compre&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=IntraWeb+compression&amp;link=http://www.monien.net/blog/index.php/2008/04/intraweb-compression/&amp;notes=Using%20IntraWeb%27s%20integrated%20compression%20option%20you%20can%20easily%20speed%20up%20the%20transfer%20of%20your%20applications%20forms.%0D%0A%0D%0AInterestingly%20many%20IntraWeb%20users%20don%27t%20know%20that%20there%20is%20a%20Compression%20option%20in%20the%20ServerController%3A%0D%0A%0D%0Ajust%20set%20ServerController.Compression.Enabled%20%3D%20true%20and%20IntraWeb%20will%20compre&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://www.shareaholic.com/api/share/?title=IntraWeb+compression&amp;link=http://www.monien.net/blog/index.php/2008/04/intraweb-compression/&amp;notes=Using%20IntraWeb%27s%20integrated%20compression%20option%20you%20can%20easily%20speed%20up%20the%20transfer%20of%20your%20applications%20forms.%0D%0A%0D%0AInterestingly%20many%20IntraWeb%20users%20don%27t%20know%20that%20there%20is%20a%20Compression%20option%20in%20the%20ServerController%3A%0D%0A%0D%0Ajust%20set%20ServerController.Compression.Enabled%20%3D%20true%20and%20IntraWeb%20will%20compre&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=10&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.monien.net/blog/index.php/2008/04/intraweb-compression/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Overriding LogBytes in Custom IntraWeb Standalone Application</title>
		<link>http://www.monien.net/blog/index.php/2008/04/overriding-logbytes-in-custom-intraweb-standalone-application/</link>
		<comments>http://www.monien.net/blog/index.php/2008/04/overriding-logbytes-in-custom-intraweb-standalone-application/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 22:00:00 +0000</pubDate>
		<dc:creator>Olaf Monien</dc:creator>
				<category><![CDATA[Delphi]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[IntraWeb]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[ServerController]]></category>
		<category><![CDATA[Standalone]]></category>

		<guid isPermaLink="false">http://www.monien.net/blog/index.php/2008/04/overriding-logbytes-in-custom-intraweb-standalone-application/</guid>
		<description><![CDATA[Even though we don&#8217;t really recommend using IntraWeb&#8217;s desktop standalone mode in production, there seem to be quite some IntraWeb customers who do that successfully. Unfortunately there is an integrated Log routine which may cause an Integer overflow if your application had more than 2GB traffic. This article shows how to override that routine. Running [...]]]></description>
			<content:encoded><![CDATA[<p>Even though we don&#8217;t really recommend using IntraWeb&#8217;s desktop standalone mode in production, there seem to be quite some IntraWeb customers who do that successfully. Unfortunately there is an integrated Log routine which may cause an Integer overflow if your application had more than 2GB traffic. This article shows how to override that routine.<span id="more-179"></span></p>
<p>Running IntraWeb applications right off your desktop is simple and fast. Just compile and run, and you have a working HTTP server. For production we recommend installing as service or as ISAPI application though.</p>
<p>Running a Web server on a Windows desktop &#8211; where you need to be logged in &#8211; is not what you want typically.</p>
<p>However, for product demonstrations, long testing sessions etc. it might make sense to use an IntraWeb Standlone application that way. You could even run an IntraWeb application right off a CD. For that purpose<br />
we offer a way to customize the more or less ugly default Standalone form. This can be done by just dropping a TIWStandaloneServer component onto a standard Windows VCL form. For more details see the<br />
CustomStandAlone demo, which can be found in the &#8220;demos&#8221; folder where you installed IntraWeb.</p>
<p>We just got a customer inquiry, where a customized IntraWeb standalone application raises an Integer overflow after &#8220;lots of traffic&#8221;. The customer is implementing an online game with many graphics transfered.</p>
<p>The source of that problem is a LogBytes rountine which counts the transfered data using an Integer variable. In other words, after 2GB of data transfered the application will show an error.</p>
<p><span style="font-weight: bold;">Note: This error only applies to <span style="color: #ff0000;">Desktop Standalone</span> Applications.<br />
<span style="color: #0000ff;">ISAPI and Service type Standalone applications are not affected</span>!</span></p>
<p>The next minor IntraWeb release (9.0.40) correctly handles that situation, and the next major release (9.1 or 10.0) will upgrade the variable in question to In64.</p>
<p>If you are using IntraWeb desktop applications in the described way, then add the following to your custom Standalone form:</p>
<pre class="brush: delphi">
private
  FTotalBytes := Int64;
  ...

procedure TFormCustom.LogBytes(const ABytes: Integer);
begin
FTotalBytes := FTotalBytes + ABytes;
//If you want to display the bytes transfered, then call your update routine here
//Or more resource friendly add a TTimer that updates your Byte counter
end;

procedure TFormCustom.FormCreate(Sender: TObject);
begin
memoLog.Lines.Add(&#039;Server started&#039;);
memoLog.Lines.Add(&#039;Listening on port: &#039; + IntToStr(GServerController.Port));
memoLog.Lines.Add(&#039;&#039;);
GLogBytesProcedure := LogBytes;
end;
</pre>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Overriding+LogBytes+in+Custom+IntraWeb+Standalone+Application&amp;link=http://www.monien.net/blog/index.php/2008/04/overriding-logbytes-in-custom-intraweb-standalone-application/&amp;notes=Even%20though%20we%20don%27t%20really%20recommend%20using%20IntraWeb%27s%20desktop%20standalone%20mode%20in%20production%2C%20there%20seem%20to%20be%20quite%20some%20IntraWeb%20customers%20who%20do%20that%20successfully.%20Unfortunately%20there%20is%20an%20integrated%20Log%20routine%20which%20may%20cause%20an%20Integer%20overflow%20if%20your%20application%20had%20more%20than%202GB%20traffic.%20T&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://www.monien.net/blog/index.php/2008/04/overriding-logbytes-in-custom-intraweb-standalone-application/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Overriding+LogBytes+in+Custom+IntraWeb+Standalone+Application&amp;link=http://www.monien.net/blog/index.php/2008/04/overriding-logbytes-in-custom-intraweb-standalone-application/&amp;notes=Even%20though%20we%20don%27t%20really%20recommend%20using%20IntraWeb%27s%20desktop%20standalone%20mode%20in%20production%2C%20there%20seem%20to%20be%20quite%20some%20IntraWeb%20customers%20who%20do%20that%20successfully.%20Unfortunately%20there%20is%20an%20integrated%20Log%20routine%20which%20may%20cause%20an%20Integer%20overflow%20if%20your%20application%20had%20more%20than%202GB%20traffic.%20T&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Overriding+LogBytes+in+Custom+IntraWeb+Standalone+Application&amp;link=http://www.monien.net/blog/index.php/2008/04/overriding-logbytes-in-custom-intraweb-standalone-application/&amp;notes=Even%20though%20we%20don%27t%20really%20recommend%20using%20IntraWeb%27s%20desktop%20standalone%20mode%20in%20production%2C%20there%20seem%20to%20be%20quite%20some%20IntraWeb%20customers%20who%20do%20that%20successfully.%20Unfortunately%20there%20is%20an%20integrated%20Log%20routine%20which%20may%20cause%20an%20Integer%20overflow%20if%20your%20application%20had%20more%20than%202GB%20traffic.%20T&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Overriding+LogBytes+in+Custom+IntraWeb+Standalone+Application&amp;link=http://www.monien.net/blog/index.php/2008/04/overriding-logbytes-in-custom-intraweb-standalone-application/&amp;notes=Even%20though%20we%20don%27t%20really%20recommend%20using%20IntraWeb%27s%20desktop%20standalone%20mode%20in%20production%2C%20there%20seem%20to%20be%20quite%20some%20IntraWeb%20customers%20who%20do%20that%20successfully.%20Unfortunately%20there%20is%20an%20integrated%20Log%20routine%20which%20may%20cause%20an%20Integer%20overflow%20if%20your%20application%20had%20more%20than%202GB%20traffic.%20T&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Overriding+LogBytes+in+Custom+IntraWeb+Standalone+Application&amp;link=http://www.monien.net/blog/index.php/2008/04/overriding-logbytes-in-custom-intraweb-standalone-application/&amp;notes=Even%20though%20we%20don%27t%20really%20recommend%20using%20IntraWeb%27s%20desktop%20standalone%20mode%20in%20production%2C%20there%20seem%20to%20be%20quite%20some%20IntraWeb%20customers%20who%20do%20that%20successfully.%20Unfortunately%20there%20is%20an%20integrated%20Log%20routine%20which%20may%20cause%20an%20Integer%20overflow%20if%20your%20application%20had%20more%20than%202GB%20traffic.%20T&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-technorati">
			<a href="http://www.shareaholic.com/api/share/?title=Overriding+LogBytes+in+Custom+IntraWeb+Standalone+Application&amp;link=http://www.monien.net/blog/index.php/2008/04/overriding-logbytes-in-custom-intraweb-standalone-application/&amp;notes=Even%20though%20we%20don%27t%20really%20recommend%20using%20IntraWeb%27s%20desktop%20standalone%20mode%20in%20production%2C%20there%20seem%20to%20be%20quite%20some%20IntraWeb%20customers%20who%20do%20that%20successfully.%20Unfortunately%20there%20is%20an%20integrated%20Log%20routine%20which%20may%20cause%20an%20Integer%20overflow%20if%20your%20application%20had%20more%20than%202GB%20traffic.%20T&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=10&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.monien.net/blog/index.php/2008/04/overriding-logbytes-in-custom-intraweb-standalone-application/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

