Martin's Tex-Blog

Posts on programming and generally technical topics

Archive for the ‘Windows Mobile’ Category

NullPointer exception in System.Data.dll

leave a comment »


If You encounter null pointer exceptions on CF 2.0 then this might be caused by insufficient memory. I did experience such random placed exceptions on Pocket PC 2003 device. Each of those exceptions source were somewhere inside System.Data.dll, and was happening at places like inserting (with Rows.InsertAt()) new table row or by assigning new DataSource to DataGrid. After closing some background applications – all was back to normal. For some time now I keep putting more and more code inside try and catch clauses, just to catch such unwanted exceptions.

Advertisement

Written by Marcin

July 15, 2009 at 9:22 pm

Posted in Windows Mobile