2008
Crystal Reports Problem
The following error loaded today when trying to output a crystal report from asp.Net:
Logon failed. Details: crdb_adoplus : Object reference not set to an instance of an object. Error in Filename.rpt: Unable to connect: incorrect log on parameters.
The problem was that I didn’t set the report’s DataSource. Next is the code that worked:
ReportDocument report = new ReportDocument();
report.Load(Server.MapPath(“Reports\Label.rpt”));
report.SetDataSource(dset);
report.ExportToDisk(ExportFormatType.PortableDocFormat, full_path);
report.Clone();
report.Dispose();
2008
ContextSwitchDeadlock was detected
Last week i was debugging an application and after while the following exception was being loaded:
ContextSwitchDeadlock was detected
Message: The CLR has been unable to transition from COM context 0x1b2938 to
COM context 0x1b2aa8 for 60 seconds. The thread that owns the destination
context/apartment is most likely either doing a non pumping wait or
processing a very long running operation without pumping Windows messages.
This situation generally has a negative performance impact and may even lead
to the application becoming non responsive or memory usage accumulating
continually over time. To avoid this problem, all single threaded apartment
(STA) threads should use pumping wait primitives (such as
CoWaitForMultipleHandles) and routinely pump messages during long running
operations.
After googling, i found that this error happens when an operation is performing lenghty operations not allowing the message queue to pump. Continue reading »
2008
Visual Studio 2005 – Crashes Randomly
Last week i was using Visual Studio 2005 and all of a sudden it started to crash. Everytime i tried to open VS after 1 or 2 minutes it would crash. I checked the event log and the following error appeared:
Faulting application devenv.exe, version 8.0.50727.762, time stamp 0×45716759, faulting module craxddrt.dll_unloaded, version 0.0.0.0,
time stamp 0×43068582, exception code 0xc0000005, fault offset 0x0d26e30f, process id 0×1180, application start time 0x01c75cae13960a41.
After googling the problem, i found the following solution. The problem was that when opening my solution, by default it opened the last crystal report that i was working on. This seemed to start some crystal report ActiveX thing that didn’t work on Vista.
Sometimes it would take 2 minutes and sometimes 5 minutes, but it would always crash, even if i closed the report straight away. The only way to stop this problem was to load up VS, close the report immediately and safely close VS before it got a chance to crash! The next time it opens, there is no crystal report and the ActiveX control never loads.
So the next time you save the solution and close visual studio be sure to close all Crystal Reports window
Happy Programming.
Reference: http://tim.mackey.ie/FIXVS2005CrashesRandomlyWhenUsingCrystalReports.aspx
2007
Total Number of Lines of Code (VS Add-Ins)
Ever wonder how many lines of code did you write in your application/solution in visual studio 2005. Well now you can, or at least now i found how. Here’s a Visual Studio 2005 Add-In that not only shows you the total lines of code within your solution/project but also shows the breakout of each individual file. It also has an assortment of useful utilities to help programmers monitor, explore, and inspect the contents of their code.
Click here to get your free collection of free utilities for the Microsoft® Visual Studio® 2005 development environment.
Update: While searching for visual studio add-ins, i also found the Ten Essential Visual Studio Add-ins that every developer should download Now. Click here to see what it’s all about or here for other (not so essential) visual studio add-ins.
What you missed
Check these Out!
Favourite Links
Tags
Archives
- May 2013 (2)
- January 2013 (2)
- December 2012 (5)
- November 2012 (4)
- October 2012 (3)
- September 2012 (1)
- August 2012 (4)
- July 2012 (2)
- June 2012 (1)
- May 2012 (10)
- February 2012 (6)
- December 2011 (2)
- October 2011 (3)
- September 2011 (1)
- April 2011 (6)
- March 2011 (14)
- February 2011 (9)
- January 2011 (10)
- December 2010 (6)
- November 2010 (10)
- October 2010 (6)
- September 2010 (10)
- August 2010 (4)
- June 2010 (10)
- May 2010 (2)
- April 2010 (1)
- March 2010 (1)
- July 2009 (1)
- June 2009 (1)
- April 2009 (4)
- March 2009 (1)
- February 2009 (5)
- January 2009 (10)
- December 2008 (8)
- November 2008 (4)
- September 2008 (6)
- August 2008 (11)
- June 2008 (2)
- May 2008 (3)
- March 2008 (1)
- February 2008 (1)
- November 2007 (1)
- September 2007 (2)
- July 2007 (2)
- June 2007 (1)
- May 2007 (2)
- February 2007 (3)
- January 2007 (4)
- November 2006 (1)
- October 2006 (1)
Categories
- Android (3)
- Apple (5)
- ASP.Net (37)
- Be Creative (1)
- Blackberry OS (1)
- CMS (5)
- Creative Computing (4)
- Crystal Reports (5)
- Day to Day (22)
- Deep Design Malta (8)
- Design and Development (22)
- Development Tools (15)
- Facebook (1)
- Games (3)
- Google Analytics (3)
- Google Gmail (1)
- Hotmail (1)
- Internet Explorer (7)
- iPhone/3G (19)
- iPod Touch (6)
- JavaScript (13)
- JQuery (3)
- Lumia (4)
- Microsoft (18)
- Microsoft SQL Server (21)
- Microsoft Visual Studio (27)
- MS Office (3)
- MVC (2)
- My Blog (3)
- NetBeans (1)
- Nokia (4)
- Off Topic (16)
- Online Services (3)
- Permissions (1)
- Phones and Tablets Platforms (7)
- Project NINE (11)
- PSP NGP (1)
- Quickie (9)
- SEO (7)
- Silverlight For WP7 (4)
- Sitefinity (1)
- Sony (1)
- Uncategorized (32)
- Utilities (57)
- VB .Net (1)
- Windows 7 (14)
- Windows 8 (3)
- Windows Live (3)
- Windows Mobile (5)
- Windows Phone 7 (18)
- Windows Phone 8 (1)
- Windows Vista (15)
- Wordpress (1)
- WP Apps (2)
- Yellow Pages (4)



