<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title></title>
	<atom:link href="http://edeguzman.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://edeguzman.wordpress.com</link>
	<description>&#34;Knowledge is not to keep but it is to share&#34;</description>
	<lastBuildDate>Sun, 18 Dec 2011 13:36:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='edeguzman.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title></title>
		<link>http://edeguzman.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://edeguzman.wordpress.com/osd.xml" title="" />
	<atom:link rel='hub' href='http://edeguzman.wordpress.com/?pushpress=hub'/>
		<item>
		<title>svn issue : format: permission denied</title>
		<link>http://edeguzman.wordpress.com/2011/09/11/svn-issue-format-permission-denied/</link>
		<comments>http://edeguzman.wordpress.com/2011/09/11/svn-issue-format-permission-denied/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 14:04:23 +0000</pubDate>
		<dc:creator>edeguzman</dc:creator>
				<category><![CDATA[FREEBSD]]></category>
		<category><![CDATA[SERVERS]]></category>
		<category><![CDATA[RED HAT LINUX]]></category>
		<category><![CDATA[svn issue]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[permission]]></category>

		<guid isPermaLink="false">http://edeguzman.wordpress.com/?p=233</guid>
		<description><![CDATA[This is one crazy issue in svn. It took me 3 hours to solve this permission denied issue, what a waste. Now usually you have a repository path of /home/svn/repo , the only chmod you apply is on repo directory but this is not the case. You should chmod the entire svn home directory. Works [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edeguzman.wordpress.com&amp;blog=2328591&amp;post=233&amp;subd=edeguzman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is one crazy issue in svn. It took me 3 hours to solve this permission denied issue, what a waste.</p>
<p>Now usually you have a repository path of /home/svn/repo , the only chmod you apply is on repo directory<br />
but this is not the case. You should chmod the entire svn home directory.  Works for me. </p>
<p>Below is what I did to solve the issue.</p>
<blockquote><p>chmod -R 755 /home/svn</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edeguzman.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edeguzman.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edeguzman.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edeguzman.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edeguzman.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edeguzman.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edeguzman.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edeguzman.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edeguzman.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edeguzman.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edeguzman.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edeguzman.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edeguzman.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edeguzman.wordpress.com/233/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edeguzman.wordpress.com&amp;blog=2328591&amp;post=233&amp;subd=edeguzman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edeguzman.wordpress.com/2011/09/11/svn-issue-format-permission-denied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba67c5e3293ebcf87901940121b3f0ac?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edeguzman</media:title>
		</media:content>
	</item>
		<item>
		<title>Resetting root password in FreeBSD</title>
		<link>http://edeguzman.wordpress.com/2010/09/18/resetting-root-password-in-freebsd/</link>
		<comments>http://edeguzman.wordpress.com/2010/09/18/resetting-root-password-in-freebsd/#comments</comments>
		<pubDate>Sat, 18 Sep 2010 04:16:07 +0000</pubDate>
		<dc:creator>edeguzman</dc:creator>
				<category><![CDATA[FREEBSD]]></category>
		<category><![CDATA[freebsd root]]></category>
		<category><![CDATA[reset password]]></category>
		<category><![CDATA[root password]]></category>

		<guid isPermaLink="false">http://edeguzman.wordpress.com/?p=222</guid>
		<description><![CDATA[You might encounter of forgetting your root password in FreeBSD or possibly a lost root password for some reason. I encountered this kind of problem but after googling around, I found ways of resetting root password for FreeBSD. Below are the procedures I took: Step 1: Start FreeBSD. Press enter key for FreeBSD boot loader. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edeguzman.wordpress.com&amp;blog=2328591&amp;post=222&amp;subd=edeguzman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You might encounter of forgetting your root password in FreeBSD or possibly a lost root password for some reason. I encountered this kind of problem but after googling around, I found ways of resetting root password for FreeBSD.</p>
<p>Below are the procedures I took:<br />
<span id="more-222"></span><br />
Step 1: Start FreeBSD. Press enter key for FreeBSD boot loader.<br />
Step 2: When FreeBSD&#8217;s welcome screen will prompt up, press space bar to pause the booting.Refer to below diagram.<br />
<img src="http://edeguzman.files.wordpress.com/2010/09/welcome-freebsd.jpg?w=720" alt="FreeBSD welcome message" /></p>
<p>Step 3: Type number 4 in the welcome screen. This will boot up in single user mode.<br />
Step 4: Wait until you will be prompted with the below line.<br />
<span style="font-weight:bold;"><br />
When prompted Enter full pathname of shell or RETURN for /bin/sh:<br />
</span><br />
Step 5: Press entry key to prompt you to the shell.<br />
Step 6: Execute the following commands.<br />
<span style="font-weight:bold;"><br />
  # mount -u /<br />
  # mount -a<br />
</span><br />
  Note:<br />
  If issuing the command mount -u will prompt you &#8220;Filesystem not clean &#8211; run fsck&#8221;.Just execute the command fsck. Then proceed to mount -a. Refer to below error message.<br />
<img src="http://edeguzman.files.wordpress.com/2010/09/fsck-requires.jpg?w=720" alt="mount -u error message" /><br />
Step 7: After execution of the above commands. Execute below commands.<br />
  This will prompt you to change the root password.<br />
<span style="font-weight:bold;"><br />
  # passwd<br />
</span><br />
Step 8: Reboot FreeBSD or type exit.<br />
<span style="font-weight:bold;"><br />
  # exit<br />
  # reboot<br />
</span></p>
<p>This was tested for FreeBSD 7.1 but most likely this will also work for other version<br />
of FreeBSD.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edeguzman.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edeguzman.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edeguzman.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edeguzman.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edeguzman.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edeguzman.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edeguzman.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edeguzman.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edeguzman.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edeguzman.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edeguzman.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edeguzman.wordpress.com/222/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edeguzman.wordpress.com/222/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edeguzman.wordpress.com/222/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edeguzman.wordpress.com&amp;blog=2328591&amp;post=222&amp;subd=edeguzman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edeguzman.wordpress.com/2010/09/18/resetting-root-password-in-freebsd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba67c5e3293ebcf87901940121b3f0ac?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edeguzman</media:title>
		</media:content>

		<media:content url="http://edeguzman.files.wordpress.com/2010/09/welcome-freebsd.jpg" medium="image">
			<media:title type="html">FreeBSD welcome message</media:title>
		</media:content>

		<media:content url="http://edeguzman.files.wordpress.com/2010/09/fsck-requires.jpg" medium="image">
			<media:title type="html">mount -u error message</media:title>
		</media:content>
	</item>
		<item>
		<title>adding disk space freebsd-based vmware</title>
		<link>http://edeguzman.wordpress.com/2010/08/09/adding-disk-space-freebsd-based-vmware/</link>
		<comments>http://edeguzman.wordpress.com/2010/08/09/adding-disk-space-freebsd-based-vmware/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 04:21:13 +0000</pubDate>
		<dc:creator>edeguzman</dc:creator>
				<category><![CDATA[FREEBSD]]></category>
		<category><![CDATA[SERVERS]]></category>
		<category><![CDATA[adding disk space]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vmware freebsd]]></category>

		<guid isPermaLink="false">http://edeguzman.wordpress.com/?p=198</guid>
		<description><![CDATA[You came into this page cause you want to know how to expand or add disk space into an existing freebsd-based virtual machine for vmware. There are two ways, the first one is to use the vmware-vdiskmanager.exe found in the bin directory of vmware and the other way is to add the SCSI harddisk in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edeguzman.wordpress.com&amp;blog=2328591&amp;post=198&amp;subd=edeguzman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You came into this page cause you want to know how to expand or add disk space into an existing freebsd-based virtual machine for vmware. There are two ways, the first one is to use the vmware-vdiskmanager.exe found in the bin directory of vmware and the other way is to add the SCSI harddisk in the hardware option of the virtual machine settings.</p>
<p>First way, execute the disk manager toolkit of vmware : </p>
<blockquote><p>
vmware-vdiskmanager.exe -x 50GB “FreeBSDclone.vmdk&#8221;
</p></blockquote>
<p><span id="more-198"></span></p>
<p>Second way, from the virtual machine settings :<br />
<img src="http://edeguzman.files.wordpress.com/2010/08/virtual-machine-settings.jpg?w=720" alt="" /><br />
Click add hardware and click hard disk then next.</p>
<p><img src="http://edeguzman.files.wordpress.com/2010/08/create-new-virtual-disk.jpg?w=720" alt="" /><br />
Click add a new virtual disk space then next.</p>
<p><img src="http://edeguzman.files.wordpress.com/2010/08/virtual-disk-type-scsi.jpg?w=720" alt="" /><br />
Choose SCSI and leave the others unchecked.</p>
<p><img src="http://edeguzman.files.wordpress.com/2010/08/allocate-disk-space.jpg?w=720" alt="" /><br />
Allocate the disk space you want.<br />
Finish.</p>
<p>Then boot your freebsd virtual machine to configure the newly added disk space.<br />
Step 1 : Login as root and run the sysinstall(Note that you can also do this using the fdisk if you are familiar with the commands).<br />
<img src="http://edeguzman.files.wordpress.com/2010/08/sysinstall-configure.jpg?w=720" alt="" /></p>
<p>Step 2 : Go to configure then fdisk and choose the below drive(that is the newly added disk space).<br />
<img src="http://edeguzman.files.wordpress.com/2010/08/choose-drive.jpg?w=720" alt="" /></p>
<p>Step 3 : Create slice and allocated the whole space.<br />
<img src="http://edeguzman.files.wordpress.com/2010/08/fdisk-mode.jpg?w=720" alt="" /></p>
<p>Step 4 : Choose the disk label tool then Create label. Then finish.<br />
<img src="http://edeguzman.files.wordpress.com/2010/08/choose-disk-label.jpg?w=720" alt="" /></p>
<p><img src="http://edeguzman.files.wordpress.com/2010/08/disk-label-alloc-space.jpg?w=720" alt="" /></p>
<p><img src="http://edeguzman.files.wordpress.com/2010/08/disk-label-fs-type.jpg?w=720" alt="" /></p>
<p>Step 5 : Mount the newly added space in /etc/fstab.<br />
Step 6 : Move files in the newly added space.<br />
         For my case my newly added space is mounted in /usr/ext/local<br />
         and I&#8217;m having space trouble for /usr so I decided to move my<br />
         /usr/ports to /usr/ext/local. </p>
<p><img src="http://edeguzman.files.wordpress.com/2010/08/fstab.jpg?w=720" alt="" /></p>
<p>Then create a symlink to /usr/ports.<br />
<img src="http://edeguzman.files.wordpress.com/2010/08/symlink.jpg?w=720" alt="" /></p>
<p>Note :<br />
You can also use growfs command but it&#8217;s a different approach.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edeguzman.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edeguzman.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edeguzman.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edeguzman.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edeguzman.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edeguzman.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edeguzman.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edeguzman.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edeguzman.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edeguzman.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edeguzman.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edeguzman.wordpress.com/198/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edeguzman.wordpress.com/198/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edeguzman.wordpress.com/198/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edeguzman.wordpress.com&amp;blog=2328591&amp;post=198&amp;subd=edeguzman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edeguzman.wordpress.com/2010/08/09/adding-disk-space-freebsd-based-vmware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba67c5e3293ebcf87901940121b3f0ac?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edeguzman</media:title>
		</media:content>

		<media:content url="http://edeguzman.files.wordpress.com/2010/08/virtual-machine-settings.jpg" medium="image" />

		<media:content url="http://edeguzman.files.wordpress.com/2010/08/create-new-virtual-disk.jpg" medium="image" />

		<media:content url="http://edeguzman.files.wordpress.com/2010/08/virtual-disk-type-scsi.jpg" medium="image" />

		<media:content url="http://edeguzman.files.wordpress.com/2010/08/allocate-disk-space.jpg" medium="image" />

		<media:content url="http://edeguzman.files.wordpress.com/2010/08/sysinstall-configure.jpg" medium="image" />

		<media:content url="http://edeguzman.files.wordpress.com/2010/08/choose-drive.jpg" medium="image" />

		<media:content url="http://edeguzman.files.wordpress.com/2010/08/fdisk-mode.jpg" medium="image" />

		<media:content url="http://edeguzman.files.wordpress.com/2010/08/choose-disk-label.jpg" medium="image" />

		<media:content url="http://edeguzman.files.wordpress.com/2010/08/disk-label-alloc-space.jpg" medium="image" />

		<media:content url="http://edeguzman.files.wordpress.com/2010/08/disk-label-fs-type.jpg" medium="image" />

		<media:content url="http://edeguzman.files.wordpress.com/2010/08/fstab.jpg" medium="image" />

		<media:content url="http://edeguzman.files.wordpress.com/2010/08/symlink.jpg" medium="image" />
	</item>
		<item>
		<title>CreateWindowEx Access Violation</title>
		<link>http://edeguzman.wordpress.com/2010/01/30/createwindowex-access-violation/</link>
		<comments>http://edeguzman.wordpress.com/2010/01/30/createwindowex-access-violation/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 15:53:44 +0000</pubDate>
		<dc:creator>edeguzman</dc:creator>
				<category><![CDATA[C/C++ LANGUAGE]]></category>
		<category><![CDATA[PROGRAMMING]]></category>

		<guid isPermaLink="false">http://edeguzman.wordpress.com/?p=183</guid>
		<description><![CDATA[Have you ever experience loading DLL with a window class on single thread that went successful then upon unloading that DLL and you load that DLL for the second time but it crash? This article might be helpful to you. This bug is kind a weird and really hard to trace. To make things worst [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edeguzman.wordpress.com&amp;blog=2328591&amp;post=183&amp;subd=edeguzman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Have you ever experience loading DLL with a window class on single thread that went successful then upon unloading that DLL and you load that DLL for the second time but it crash? This article might be helpful to you.</p>
<p>This bug is kind a weird and really hard to trace. To make things worst MSDN some what provides a misleading documentation. I wasted 4 days working on this weird bug and ended up to have an easy fixed. I googled around but ended up to have a handful of information and found out that alot of people did encounter this kind of problem but no providing fixed. </p>
<p><span id="more-183"></span></p>
<p>Personally when I think of an access violation problem the only stuff that I thought of something related to pointers. It&#8217;s either you use a pointer without proper memory allocation and initialization. Or you use/access a pointer that was no longer on the heap. With these stuffs on my head I checked on every pointers that I had and found out they were all properly taken care of. And to make my pointers safe I even use smart pointers but still the problem exist. </p>
<p>I open the crashed dump and analyzed, I got the below output:<br />
<a href="http://4.bp.blogspot.com/__ZwmuhkL2R0/S2AqWM01AoI/AAAAAAAAADg/wqJNagcGgP8/s1600-h/untitled.bmp" target="_blank">CRASH DUMP SCREENSHOT LINK</a></p>
<p>As you may see on the stack frames that the crashed occurred on the user32.dll which is one of the fundamental windows DLL. And it was on the call of CreateWindowEx that lead to crashed. I thought of I&#8217;m feeding the CreateWindowEx API with invalid data but I check every variables and guess what they were all valid. So I thought of that this was a f*cking windows API problem. </p>
<p>Then I found this URL http://blogs.msdn.com/oldnewthing/archive/2006/09/20/763727.aspx and this truly saves my day. </p>
<p>Solution to this problem :<br />
1) Free resources used upon unloading the DLL.<br />
2) For every window handle created make sure that it was destroyed upon exiting the DLL.<br />
3) For every registered window class make sure that it was unregistered upon exiting the DLL.<br />
4) For every child window class make sure that it was destroyed and unregistered before destroying the parent window class. </p>
<p>The number 4 was the one caused my problem. And that is why I say that MSDN was kind a providing a misleading document. If you read on the DestroyWindow() and Unregisterclass() on msdn documentation you might conclude that ; ok I&#8217;d DestroyWindow on the parent window I should no longer problem the associated child caused it was also destroy. But hey I should unregister the child window class caused it causes a memory leak on the heap but before unregistering the child window class I should destroy first all its created windows.</p>
<p>I might be doing an misinterpretation on the document. I think the MSDN tells us that upon exiting on the WindProc of parent window you should do atleast these :</p>
<p>DestroyWindow(ParentWindow);<br />
Unregisterclass(&#8220;childClassWindow&#8221;,Instance);<br />
Unregisterclass(&#8220;parentClassWindow&#8221;,Instance);</p>
<p>It would be ideally good if DestroyWindow also unregister the child class window.</p>
<p>References :</p>
<p>http://msdn.microsoft.com/en-us/library/ms644899(VS.85).aspx (DestroyWindow)<br />
http://msdn.microsoft.com/en-us/library/ms632682(VS.85).aspx (Unregisterclass)</p>
<p>http://blogs.msdn.com/oldnewthing/archive/2006/09/20/763727.aspx</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edeguzman.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edeguzman.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edeguzman.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edeguzman.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edeguzman.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edeguzman.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edeguzman.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edeguzman.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edeguzman.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edeguzman.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edeguzman.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edeguzman.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edeguzman.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edeguzman.wordpress.com/183/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edeguzman.wordpress.com&amp;blog=2328591&amp;post=183&amp;subd=edeguzman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edeguzman.wordpress.com/2010/01/30/createwindowex-access-violation/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba67c5e3293ebcf87901940121b3f0ac?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edeguzman</media:title>
		</media:content>
	</item>
		<item>
		<title>Access Violation in unallocated pointer</title>
		<link>http://edeguzman.wordpress.com/2009/11/09/access-violation-in-unallocated-pointer/</link>
		<comments>http://edeguzman.wordpress.com/2009/11/09/access-violation-in-unallocated-pointer/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 14:22:09 +0000</pubDate>
		<dc:creator>edeguzman</dc:creator>
				<category><![CDATA[C/C++ LANGUAGE]]></category>
		<category><![CDATA[PROGRAMMING]]></category>
		<category><![CDATA[access crashes]]></category>
		<category><![CDATA[Access violation]]></category>
		<category><![CDATA[memory leak]]></category>

		<guid isPermaLink="false">http://edeguzman.wordpress.com/?p=172</guid>
		<description><![CDATA[Lately I was debugging a bug in an application that crashes on Windows Vista but not crashing in Windows XP. I was clueless on what causing the crashes and why its not crashing on Windows XP. I had to do stack tracing for me determine where it crashes and I used the WinDebug tool. With [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edeguzman.wordpress.com&amp;blog=2328591&amp;post=172&amp;subd=edeguzman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Lately I was debugging a bug in an application that crashes on Windows Vista but not crashing in Windows XP. I was clueless on what causing the crashes and why its not crashing on Windows XP. I had to do stack tracing for me determine where it crashes and I used the WinDebug tool. With WinDebug I was able to determine that it was the access violation thing that causes the crashes in vista. It&#8217;s kind a hard to debug cause it crashes unexpectedly that you won&#8217;t be able to determine on which area on the process that cause to crash. And worst on stack trace it points to a function that was not it even called. </p>
<p>After googling around the net for some time I was able to found out that it was the unallocated pointer or uninitialized pointer that causes the crashed. There was a struct pointer that was used without allocating memory or initializing to null. </p>
<p>Below Example :<br />
<span id="more-172"></span></p>
<blockquote><p>
typedef struct sample_struct<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;  int x;<br />
&nbsp;&nbsp;&nbsp;&nbsp;  int y;<br />
} non_pointer, *pointer_var; </p>
<p>int main ()<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;  pointer_var my_var = new non_pointer;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; // operation using my_var<br />
&nbsp;&nbsp;&nbsp;&nbsp;  ..</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;  delete my_var;</p>
<p> /* or another way around */</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;  pointer_var my_var = NULL; </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; // operation using my_var<br />
&nbsp;&nbsp;&nbsp;&nbsp;   ..</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;  if (my_var != NULL) // upon freeing the pointer<br />
&nbsp;&nbsp;&nbsp;&nbsp;  {<br />
&nbsp;&nbsp;&nbsp;&nbsp;     delete my_var;<br />
&nbsp;&nbsp;&nbsp;&nbsp;  }<br />
}
</p></blockquote>
<p>This will make the application safe from memory leak and access violation. But it makes me wonder why it doesn&#8217;t crash on XP while in Vista crashes. A colleague told me that Vista is already strict on memory leak while on XP it just ignores and stays on the memory stack.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/edeguzman.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/edeguzman.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/edeguzman.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/edeguzman.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/edeguzman.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/edeguzman.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/edeguzman.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/edeguzman.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/edeguzman.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/edeguzman.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/edeguzman.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/edeguzman.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/edeguzman.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/edeguzman.wordpress.com/172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=edeguzman.wordpress.com&amp;blog=2328591&amp;post=172&amp;subd=edeguzman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://edeguzman.wordpress.com/2009/11/09/access-violation-in-unallocated-pointer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/ba67c5e3293ebcf87901940121b3f0ac?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">edeguzman</media:title>
		</media:content>
	</item>
	</channel>
</rss>
