Warlock051
Member
Hi,
I have pretty large SQLite database (around 4.5MB, 30k of rows in 5 columns). And i'm opening that database with:
It works fine desktop (when starting with F5). When i compile it and try to run, i'm getting
"An error occured on sub __main_creatconnection.
An attempt was made to load a program with an incorrect format. (Exception from HRESULT:0x....) Continue?" Yes/No
And on my device it won't start... just loading and loading and loading...
Is it 4.5MB too much for SQLite on WM6.5 HTC?
Items are organized in groups... should i create separate database (.db) for each group?
Thank you in advance.
I have pretty large SQLite database (around 4.5MB, 30k of rows in 5 columns). And i'm opening that database with:
B4X:
Sub App_Start
CreateConnection
End Sub
Sub CreateConnection
Connection.New1
Connection.Open("Data Source = " & AppPath & "\data.db")
Command.New1("", Connection.Value)
Reader.New1
Connection.BeginTransaction
Command.CommandText = "SELECT * FROM Items"
Command.ExecuteTable("Order", 0)
Connection.EndTransaction
frmList.Show
End Sub
It works fine desktop (when starting with F5). When i compile it and try to run, i'm getting
"An error occured on sub __main_creatconnection.
An attempt was made to load a program with an incorrect format. (Exception from HRESULT:0x....) Continue?" Yes/No
And on my device it won't start... just loading and loading and loading...
Is it 4.5MB too much for SQLite on WM6.5 HTC?
Items are organized in groups... should i create separate database (.db) for each group?
Thank you in advance.