Welcome to MSDN Blogs Sign in | Join | Help

jaredpar's WebLog

Code, rants and ramblings of a programmer.
Redefining Success

Spent about an hour debugging a bit of code today.  I was attempting to read data from a particular source and kept getting back failure codes.  After some debugging I discovered the data didn't actually exist in the source I was reading from. 

This put me back to investigating where I wrote the data out.  Restarted the scenario and verified that I actually called the data writing API and that it succeeded. 

Now what?  Well the data clearly wasn't there so I concluded the data writing must be failing in some odd way.  I eventually found the data writing code and was horrified to find the following definition.

HRESULT WriteSomeData(...) {
  // We don't support data of this type
  return S_OK;
}

Personally I thought this warranted an error code (perhaps E_NOTIMPL).  But given the situation I must conclude the author successfully failed to write the data.

Published Friday, October 24, 2008 8:00 AM by Jared Parsons

Filed under: ,

Comments

# jaredpar s WebLog Redefining Success | Paid Surveys @ Friday, May 29, 2009 3:10 PM

PingBack from http://paidsurveyshub.info/story.php?title=jaredpar-s-weblog-redefining-success

jaredpar s WebLog Redefining Success | Paid Surveys

New Comments to this post are disabled
Page view tracker