Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


SQLite error with version 5


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-20-2007, 02:03 PM
Knows the basics
 
Join Date: Apr 2007
Location: Netherlands
Posts: 86
Default SQLite error with version 5

Erel,

When I close a program a get a number of error messages, which I did not get with version 4:

Sub Form1_Close
If cPPC =true then
Shell("\Programmabestanden\Screen_Orientation\Prtr 0.exe")
End if
Con.Close
End Sub

First, in dutch, that an unexpected arror has occured, and an option to show the following detailed messages

The detailed messages are:

Camping Photos.exe
Argument exception

bij
System.PInvoke.EE.Runtime_InteropServices_GCHandle _InternalGet()
bij System.WeakReference.Get_isAlive()
bij
System.Data.SQLite.SQLiteConnection.ClearReference s()
bij
System.Data.SQlite.SQLiteConnection.RemoveCommand( )
bij
System.Data.SQlite.SQLiteCommand.set_Connection()
bij
System.Data.SQlite.SQLiteCommand.Dispose()
bij
System.Data.SQlite.SQLiteCommand.Finalize()


The error occurs only when I have updated the data base.

The update command is:

cmd.CommandText="UPDATE WPOILABEL_V1 SET PHOTO1 = '" &Text1& "' , PHOTO2 = '" &Text2& "', PHOTO3 = '" &Text3& "', Comment = '" &Text4& "' WHERE ID= '" &ActCampID& "' "

number=Cmd.ExecuteNonQuery

The update is correctly done.

Initially I did I/O on the data base without Begin/Endtransaction. But it proved that it makes no difference.

What can be wrong?

Harry
Reply With Quote
  #2 (permalink)  
Old 05-20-2007, 02:07 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

Try to remove Con.Close.
It will be closed anyway.
Reply With Quote
  #3 (permalink)  
Old 05-21-2007, 08:10 AM
Knows the basics
 
Join Date: Apr 2007
Location: Netherlands
Posts: 86
Default

Erel,

Removing con.close didn't help. Some further information:

The problem occurs on the PDA device only; on the desktop the program runs well.

When I close the program there appears to be a number of messages, the number being equal to 2 * the number of updates done. Apparently, these messages are generated in the background when the program is running.

Any idea?

Harry
Reply With Quote
  #4 (permalink)  
Old 05-21-2007, 10:43 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

I've did a small test on a device using the UPDATE method and everything worked fine.
You could alter the SQL example and check it with the UPDATE method.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error with new version micro Questions & Help Needed 5 10-16-2008 08:13 PM
Version 6.01 compiling error Gerd Bug Reports 2 01-04-2008 09:56 AM
Index was out of range error in version 5 HARRY Questions & Help Needed 6 05-20-2007 09:16 AM
error SQlite manu Spanish Forum 1 05-20-2007 02:08 AM
Undeclared array error with version 5 mwaite Questions & Help Needed 6 05-19-2007 11:39 AM


All times are GMT. The time now is 03:22 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0