<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>Guff</title><link>http://blogs.vbcity.com/drydo/category/73.aspx</link><description>As in 'Any old'...</description><managingEditor>Mark Dryden</managingEditor><dc:language>en-GB</dc:language><generator>.Text Version 0.95.2004.102</generator><item><dc:creator>Mark Dryden</dc:creator><title>Importing a textfile to a typed dataset (failing and resolving)</title><link>http://blogs.vbcity.com/drydo/archive/2008/01/28/8963.aspx</link><pubDate>Mon, 28 Jan 2008 11:22:00 GMT</pubDate><guid>http://blogs.vbcity.com/drydo/archive/2008/01/28/8963.aspx</guid><wfw:comment>http://blogs.vbcity.com/drydo/comments/8963.aspx</wfw:comment><comments>http://blogs.vbcity.com/drydo/archive/2008/01/28/8963.aspx#Feedback</comments><slash:comments>37</slash:comments><wfw:commentRss>http://blogs.vbcity.com/drydo/comments/commentRss/8963.aspx</wfw:commentRss><trackback:ping>http://blogs.vbcity.com/drydo/services/trackbacks/8963.aspx</trackback:ping><description>&lt;p&gt;I guess as developers we're used to solving the difficult problems, this task isn't working because of dependancy X, Y and Z - so we code around that, handshake with this and validate the other.  But as a developer its always the simple things that catch you out.&lt;/p&gt;

&lt;p&gt;For instance, I've spent the last 4 hours messing around with loading a comma delimited textfile into a typed dataset using one dataadapter, do some funky things to it and then upload those records into an SQL Server using an SQLDataAdapter.  Sounds easy, and it is - check out this &lt;a href="http://blogs.vbcity.com/drydo/archive/2007/09/28/8733.aspx"&gt;previous post&lt;/a&gt; for an example.&lt;/p&gt;

&lt;p&gt;So, I coded it up and interestingly it loaded the datarows correctly - but all the fields were NULL!  Now things shouldn't be more easier than this - you SELECT the data, it flys into the strongly typed dataset and job done.  I then spent my time working backwards through the code, exploring the various problems that might be occuring (tablemapping and that kinda thing).  However, the problem was much easier to diagnose - basically, a similar issue came up in the forums with someone using the same code as linked and the answer was...&lt;/p&gt;

&lt;p&gt;Change the file extension of the textfile being imported!  It turns out that the JET driver has certain restrictions placed upon it, by using a '.txt' extension it was expecting a tab delimited file - by changing the extension to '.csv' everything started working.  Check out this &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;304206"&gt;MS Support Page&lt;/a&gt; on the very subject, where only certain file extensions are supported and are subtlly dealt with in different ways.&lt;/p&gt;

&lt;p&gt;HTHs somebody - M&lt;/p&gt;&lt;img src ="http://blogs.vbcity.com/drydo/aggbug/8963.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Mark Dryden</dc:creator><title>No installed debugger has Just-In-Time debugging enabled.</title><link>http://blogs.vbcity.com/drydo/archive/2007/01/31/8172.aspx</link><pubDate>Wed, 31 Jan 2007 16:16:00 GMT</pubDate><guid>http://blogs.vbcity.com/drydo/archive/2007/01/31/8172.aspx</guid><wfw:comment>http://blogs.vbcity.com/drydo/comments/8172.aspx</wfw:comment><comments>http://blogs.vbcity.com/drydo/archive/2007/01/31/8172.aspx#Feedback</comments><slash:comments>90</slash:comments><wfw:commentRss>http://blogs.vbcity.com/drydo/comments/commentRss/8172.aspx</wfw:commentRss><trackback:ping>http://blogs.vbcity.com/drydo/services/trackbacks/8172.aspx</trackback:ping><description>&lt;P&gt;As most developer type bods, debugging problems on deployed software can be an arduous task at best.  Sure, tracing and asserts are great tools to be utilised and the JIT Debugger is cracking allowing the debugger to view the call stack as well as a plain text explanation of the unhandled exception.  Well, using Framework 1.* that was the case.&lt;/P&gt;

&lt;P&gt;However, after deploying a Framework 2.0 application to a Windows XP Home (SP2) machine with all the usual critical patches installed, etc. a nasty little error poked up its impish head.  However, rather than showing the usual application crashed type dialogs - it gave the rather cryptic...&lt;/P&gt;

&lt;P&gt;&amp;lt;Message&amp;gt;
An unhandled win32 exception occurred in &amp;gt;application exe&amp;lt; [1808]. Just-In-Time debugging this exception failed with the following error: No installed debugger has Just-In-Time debugging enabled. In Visual Studio, Just-In-Time debugging can be enabled from Tools/Options/Debugging/Just-In-Time.&lt;BR /&gt;
&lt;BR /&gt;
Check the documentation index for 'Just-in-time debugging, error' for more information.&lt;BR /&gt;
&amp;lt;/Message&amp;gt;&lt;/P&gt;

&lt;P&gt;OK - I thought - I'll install the Framework 2.0 SDK that I assumed would install the appropriate debugger and hey presto.  But it didn't.  &lt;/P&gt;

&lt;P&gt;Searching around I found information that the following key should be added to the app.config file.&lt;/P&gt;

&lt;P&gt;&amp;lt;system.windows.forms jitDebugging="true"/&amp;gt; &lt;/P&gt;

&lt;P&gt;But that didn't work either.&lt;/P&gt;

&lt;P&gt;After an awful lot of searching around, checking the existence of specific registry keys and inserting new ones but again to no avail.  Luckily after posting on a newsgroup I was 'seeded' with the answer.&lt;/P&gt;

&lt;P&gt;“Install another debugger such as the 'WinDbg' available for free from Microsoft.”&lt;/P&gt;

&lt;P&gt;Now to be fair, after wasting the best part of a week attempting to suss this out (albeit I worked out where the error had occurred) I was willing to listen to anything and quite frankly sacrifice any number of domestic animals you care to mention.  So to the chase, you can download WinDbg from MS just (http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx).&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Once downloaded, install the application.
&lt;LI&gt;Once installed, navigate to &amp;lt;Program Files&amp;gt;\Debugging Tools for Windows\ and execute the 'WinDbg' executable with the switch '-I', e.g. from the run command "C:\Program Files\Debugging Tools for Windows\WinDbg -I".
&lt;/UL&gt;

&lt;P&gt;This will install and use the WinDbg application as your default debugger.  Now when running an application and it throws an unhandled exception - the new debugger will appear.  However, if your life is too short to fumble through the stack and register traces you can load the managed 'sos.dll' file that provides a host of helper functions to specifically debug managed applications.  To do this, in the command line window type...&lt;/P&gt;

&lt;P&gt;!&amp;lt;DIR&amp;gt;sos.help&lt;/P&gt;

&lt;P&gt;Where the &amp;lt;DIR&amp;gt; is the path to the appropriate 'sos.dll' file.  For example, to utilise the 'sos.dll' file for Framework 2.0 type "!C:\Windows\Microsoft.NET\Framework\v2.0.50727\sos.help".  

&lt;P&gt;Note 1: the debugger application comes with its own 'sos.dll' for Framework 1.1 that is located under the sub-directory of the 'WinDbg' application called 'clr10'.&lt;BR /&gt;
Note 2: to save having to type the path of the 'sos.dll' file it can be copied to another directory.&lt;/P&gt;

&lt;P&gt;After pressing enter, the CLI Window will print all the available commands that this helper library provides.  For example, to get a readable version of the exception type...&lt;/P&gt;

&lt;P&gt;!pe&lt;/P&gt;

&lt;P&gt;...to print the exception that has occurred.&lt;/P&gt;

&lt;P&gt;Now to be fair - I haven't a clue why this scenario occurred.  Why the SDK JITdebugger didn't invoke?  (And I tried this on 3 different machines and reinstalled the OS on each machine at least twice?)  Was there some kind of restriction on Windows XP Home or maybe even an MS Update that is preventing some exploit but also causes this issue - who knows?&lt;/P&gt;

&lt;P&gt;Anyhoo, if this was useful then drop a line or if you have some killer alternative that doesn't involve gambling in Eastern Europe, enhancing my already perfect physique or purchasing mediation cheaply then drop a comment.&lt;/P&gt;

&lt;P&gt;M&lt;/P&gt;
&lt;img src ="http://blogs.vbcity.com/drydo/aggbug/8172.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Mark Dryden</dc:creator><title>Update : Drydo's on Leicester to Skegness Challenge</title><link>http://blogs.vbcity.com/drydo/archive/2005/09/07/5444.aspx</link><pubDate>Wed, 07 Sep 2005 15:09:00 GMT</pubDate><guid>http://blogs.vbcity.com/drydo/archive/2005/09/07/5444.aspx</guid><description>Well, for those of you who were&amp;nbsp;&lt;A href="http://blogs.vbcity.com/drydo/archive/2005/08/26/5201.aspx"&gt;interested&lt;/A&gt; - I did the ride and it wasn't much fun - especially considering the breeze it was last year.&amp;nbsp; Full details just &lt;A href="http://www.markdryden.co.uk/skeggy/"&gt;here&lt;/A&gt;...&lt;img src ="http://blogs.vbcity.com/drydo/aggbug/5444.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Mark Dryden</dc:creator><title>Goddamn Avocados</title><link>http://blogs.vbcity.com/drydo/archive/2004/11/30/505.aspx</link><pubDate>Tue, 30 Nov 2004 13:13:00 GMT</pubDate><guid>http://blogs.vbcity.com/drydo/archive/2004/11/30/505.aspx</guid><description>&lt;P&gt;Generally I've never had anything against Avocados and whilst they simply haven't achieved the aspiring heights of say Asparagus - they quietly do their part in a determined and respected way.&amp;nbsp; Some may argue that they do their bit on the Guacamole front or even adding a new twist to Prawn Cocktail - but my support for avocado was literally slashed on Sunday.&lt;/P&gt;
&lt;P&gt;Why do they have to have stones that a) serve no purpose (apart from being the seed of another avocado plant) and b) so bloody stubborn that they cannot be removed without welding equipment and are often figures of inspiration to barnacles and other limpet like creatures.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;How many times have I watched Jamie Oliver and seen that chubby mockney face in complete honesty remove an Avocado Stone when its quite obvious that its either a) a theatrical avocado or b) someone really hard has loosen it beforehand so he beam 'Pukka' at the camera.&lt;/P&gt;
&lt;P&gt;So picture the scene - last Sunday, friends for dinner and Avocados to be peeled, stoned and sliced.&amp;nbsp; Innocently, the memories of so many cookery programmes watched half-arsed flood back to me...&lt;/P&gt;
&lt;P&gt;[Slice the Avocado in Half]&lt;BR&gt;Done&lt;/P&gt;
&lt;P&gt;[Slight twist the two halves and remove the half without a stone]&lt;BR&gt;OK&lt;/P&gt;
&lt;P&gt;[Using the knife, lightly strike the stone with the blade]&lt;BR&gt;With you&lt;/P&gt;
&lt;P&gt;[Twist slight and stone will easily come free]&lt;BR&gt;The top (or exposed) half of the stone cracks off&lt;/P&gt;
&lt;P&gt;Er.&amp;nbsp; Jamie?&lt;/P&gt;
&lt;P&gt;At this point - I decided to improvise.&amp;nbsp; I tried a corkscrew, but this had the effect of chewing up the stone.&amp;nbsp; I tried a spoon, but this messed up the avocado (think of the presentation of dish people).&amp;nbsp; So, I got my trusty knife and tried to gently insert it through the stone so I could flip it out.&amp;nbsp; Feeling a bit of resistance I applied some more pressure and at this point it went all wrong...&lt;/P&gt;
&lt;P&gt;The knife sailed through the stone, through the soft fleshy skin of the avocado and into the soft fleshy part of my finger.&amp;nbsp; Now I would hasten to add that this wasn't no mere nick - it went to the bone and lower third of my finger sliced across looking like a hungry Pac-Man like figure.&amp;nbsp; Boy did it hurt.&lt;/P&gt;
&lt;P&gt;Anyway, after some messy bandaging and explanations of certain four-letter words to the nipper, I ended up at the hospital for stitches.&amp;nbsp; Which of course is not one of my favourite ways to spend a Sunday afternoon - having some a bored nurse looking down at me, slowly shaking her head thinking "Avocado's.....when will people learn".&lt;/P&gt;
&lt;P&gt;No wonder the US banned them...&lt;/P&gt;&lt;img src ="http://blogs.vbcity.com/drydo/aggbug/505.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>Mark Dryden</dc:creator><title>10 points for inventiveness - Flash CV</title><link>http://blogs.vbcity.com/drydo/archive/2004/11/12/430.aspx</link><pubDate>Fri, 12 Nov 2004 15:49:00 GMT</pubDate><guid>http://blogs.vbcity.com/drydo/archive/2004/11/12/430.aspx</guid><description>&lt;P&gt;Just received this linky in the mail. &lt;/P&gt;
&lt;P&gt;&lt;A href="http://213.186.36.10/~al/alstudio/cv/en.htm"&gt;http://213.186.36.10/~al/alstudio/cv/en.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Its a CV done in Flash by a Frenchmen - interesting concept, mildly stylised, but he's still French so Nil Point.&lt;/P&gt;&lt;img src ="http://blogs.vbcity.com/drydo/aggbug/430.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>