Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) 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: 36
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
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 977
Awards Showcase
Beta Tester 
Total Awards: 1
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
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #3 (permalink)  
Old 04-16-2008, 05:38 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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: 36
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
Reply With Quote
  #5 (permalink)  
Old 04-17-2008, 07:24 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 977
Awards Showcase
Beta Tester 
Total Awards: 1
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.
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #6 (permalink)  
Old 04-18-2008, 11:36 AM
Junior Member
 
Join Date: Feb 2008
Location: Lubbock, TX
Posts: 36
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Filtro con listview manu Spanish Forum 6 02-06-2010 10:36 AM
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 (Windows Mobile) 4 03-13-2008 01:21 PM


All times are GMT. The time now is 07:06 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0