Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8906703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:43:24+00:00 2026-06-15T02:43:24+00:00

I am getting some ref vs out keyword errors using the sql-net and C#

  • 0

I am getting some “ref” vs “out” keyword errors using the sql-net and C# Sqlite combination for windows phone 7.1. Is this due to a wrong combination of libraries that I am using?

App Type: Windows Phone 7.1

Using:

  1. sql-net Version 1.0.5, Source Nuget thru Visual Studio
  2. C# Sqlite for WP7 (wp7sqlite) ( Community.CSharpSqlite.WP7) Version 0.1.1, Source Nuget thru Visual Studio.

The exact error I receive is below

Error 5 The best overloaded method match for Community.CsharpSqlite.Sqlite3.sqlite3_open(string, ref Community.CsharpSqlite.Sqlite3.sqlite3)’ has some invalid arguments
C:\Dev\Learning\SQLite.cs Line:2492 Column: 29

The next error then hints that it is related to the parameter being passed as “out” type instead of “ref” type.

Error 6 Argument 2 must be passed with the ‘ref’ keyword C:\Dev\Learning\SQLite.cs Line: 2492 Column: 64

I can make the compile errors go away by replacing the “out” keyword with the “ref” keyword, but that is likely to lead to other issues. Given that I do not see much complain about this issue – I may be doing something wrong but not able to detect easily.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:43:25+00:00Added an answer on June 15, 2026 at 2:43 am

    The parameter was changed in csharp-sqlite (optionally(?) used by sqlite-net) between 3.7.6.3 and 3.7.7.1 from ref to out, see this commit (look for line 2692).

    If you don’t want to update your code, you will need to use the newer version of csharp-sqlite. You probably don’t see many questions about this because you’re one of the few using an older version for whatever reason.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My document is getting some errors when using the W3C validator because some of
I need some help. Here's what I'm getting right now: img ref I need
I'm getting some strange behavior using COS() and SIN() libraries in Fortran 77. It
I'm getting some very strange behaviour using the following switch statement: string recognise_mti(int mti_code)
This is my first time using C#, so I'm very much out of my
After editing some code I am getting 4 build errors : Undefined symbols for
I keep getting the following error when trying to parse some html using BeautifulSoup:
I am trying to write some simple predicate using boost::lambda and I am getting
I've been using some code I've found on the net to query the GAC
I've been getting some strange linking errors in XCode. I understand more or less

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.