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.


Listview help


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-16-2008, 09:51 AM
Junior Member
 
Join Date: Feb 2008
Location: Lubbock, TX
Posts: 18
Default Listview help

Filippo, First of all thank you for your listview libraries.

I was looking at using the libraries for a project I had started and I was checking out the listview program on the device, which by the way is a Intermec 751c, with pocket pc version 4.20.

I tried to run a complied listview example on the device and got the below error.

Error Message on device.
Listview.exe
ArgumentException

at System.PInvoke.EE.Runtime_InteropServices_GCHandle _InternalGet()
at System.WeakReference.get_IsAlive()
at System.Data.SQLite.SQLiteConnection.ClearReference s()
at System.Data.SQLite.SQLiteConnection.RemoveCommand( )
at System.Data.SQLite.SQLiteCommand.set_Connection()
at System.Data.SQLite.SQLiteCommand.Dispose()
at System.Data.SQLite.SQLiteCommand.Finalize()

The occurs after you have selected the table and then click the loadSql menu item. I also tried running the program under the device ide and the program runs fine. Device ide says running net version 2.0.7045

Items loaded on the device.

Listview.exe
ListViewSQLDevice.dll
Northwind.sl3
System.Data.SQLite.DLL

So could you take a look and see what is going on and tell me what I am doing wrong.

Thanks again
Reply With Quote
  #2 (permalink)  
Old 04-16-2008, 05:37 PM
Filippo's Avatar
Senior Member
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 197
Default

Hello jeterry,

can you upload your code, please?
With the code I could help you better.

Do I understand it right? At the device it runs fine and at the desktop ide it doesn't run?


Ciao,
Filippo
__________________
PPC: MDA Pro, 2GB SD
PPC: HTC Touch Diamond, 4GB
______________________
Reply With Quote
  #3 (permalink)  
Old 04-16-2008, 05:38 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,778
Default

Are you opening and closing the SQL connection several times (which is not required) ?
Reply With Quote
  #4 (permalink)  
Old 04-16-2008, 06:13 PM
Junior Member
 
Join Date: Feb 2008
Location: Lubbock, TX
Posts: 18
Default Listview

Filippo,

I am just using your example code that you had for the listviewsql.zip I have attached what I downloaded, along with the complied example.

What I did was complied the your example and then transfered all the items to the device and tried to run it, that's when I received the error message.

As I said it runs fine from the desktop IDE and the device IDE. The complied example, starts up and displays form1, you select the table and then click loadsql. That is were you get the error message as in my orginal post.

Thanks
Attached Files
File Type: zip ListviewSQL.zip (472.4 KB, 5 views)
Reply With Quote
  #5 (permalink)  
Old 04-17-2008, 07:24 PM
Filippo's Avatar
Senior Member
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 197
Default

I have the example compiled new without "optimized compilation", and now it works.
Why it doesn't work with "optimized compilation" I don't know.
Attached Files
File Type: zip ListviewSQL_new.zip (53.1 KB, 8 views)
__________________
PPC: MDA Pro, 2GB SD
PPC: HTC Touch Diamond, 4GB
______________________
Reply With Quote
  #6 (permalink)  
Old 04-18-2008, 11:36 AM
Junior Member
 
Join Date: Feb 2008
Location: Lubbock, TX
Posts: 18
Default Listview Help

Filippo,

Thanks for find the problem. I compiled it in the non-optimized mode and it now works on the device.

If you find a fix, please advise. I would really like to use it because it has some neat features.

Thanks again for looking at the problem.
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
Listview.dll Filippo German Forum 60 08-08-2008 02:35 PM
Listview.dll giannimaione German Forum 4 06-03-2008 08:34 PM
MS ListView enonod Basic4ppc Wishlist 2 04-27-2008 01:16 PM
Using ListView burd27 Questions & Help Needed 4 03-13-2008 01:21 PM
Listview mit ContextMenu Filippo German Forum 2 09-17-2007 09:30 PM


All times are GMT. The time now is 11:38 PM.


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