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 7161361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:33:15+00:00 2026-05-28T13:33:15+00:00

Latest version of Sqlite (3.7.10) wanted to link __msize function and since Delphi memory

  • 0

Latest version of Sqlite (3.7.10) wanted to link __msize function and since Delphi memory manager can not report the size of a memory block, I had to introduce a hack (d5 compatible)

function __msize(p: pointer): Cardinal;cdecl;
begin
  Result:=PInteger(integer(p)-4)^-6;
end;

Are there other solutions inside Sqlite (defines?) or Delphi to fix this so no undocumented features are used.

  • 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-05-28T13:33:15+00:00Added an answer on May 28, 2026 at 1:33 pm

    Around line # 15195 in the source code, comment the following lines:

    /*
    ** Windows systems have malloc_usable_size() but it is called _msize()
    */
    #if !defined(HAVE_MALLOC_USABLE_SIZE) && SQLITE_OS_WIN
    # define HAVE_MALLOC_USABLE_SIZE 1
    # define malloc_usable_size _msize
    #endif
    

    into

    /*
    ** Windows systems have malloc_usable_size() but it is called _msize()
    #if !defined(HAVE_MALLOC_USABLE_SIZE) && SQLITE_OS_WIN
    # define HAVE_MALLOC_USABLE_SIZE 1
    # define malloc_usable_size _msize
    #endif
    */
    

    It will disable the memory reuse of SQLite3 malloc, and will rely on the better FastMM4 reallocmem() implementation.

    See this commit e.g. for our Open Source implementation of SQLite3 static linking.

    Additional information:

    I think that we’d get rid of this issue in 3.7.11, as stated by this commit: a new SQLITE_WITHOUT_MSIZE global symbol will be added, and will be able to build the amalgamation source code without changing its content, just by setting the appropriate SQLITE_WITHOUT_MSIZE define. In the meanwhile, the easiest is to comment the above lines.

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

Sidebar

Related Questions

I am using Xerial latest jdbc driver for sqlite (version 3.7.2) It does not
Latest version of both, can not see how to enable ActiveMQ as an endpoint
Anyone know why Subsonic 2.2 uses System.Data.SQLite version 1.0.60.0 instead of the latest version
The latest version of XCode supports reference counting. However many older libraries are not
since the latest version of my Android application I got some bug reports (via
I use the latest version of Jquery-UI -- and not the one designed specifically
Details: Tortoisesvn client (latest version) Windows Vista. Yesterday I wanted to add an external
I am new to SQLite. I downloaded the latest version of SQLite (both shell
(Using Delphi 2010 + latest SQLite in WAL mode) I'm using DISQLite (Delphi port
In the latest version of WordPress, it gives you the opportunity to view a

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.