In the attached program I am having the following issue.
Using forms the program initializes correctly and the subrutine SQL_test(1) is working correctly. But when you push the button "What item is selected", which activates subroutine SQL_test(2), i get the following error message: "Unhandled exception has occured in a component in your application"; some of the details below:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Script.ComboBoxSample.SQL_test(Int32 cifra)
at Script.ComboBoxSample.showSelectedButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
I suspect the program crashes at this line:
table = db.Run( "SELECT * FROM [RPE_OBCINE_ime]" )
Hopefuly you can help me with this issue,
Best regards and thank you