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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:19:41+00:00 2026-06-10T09:19:41+00:00

I am working on a Dot Net project, which includes a DLL. This DLL

  • 0

I am working on a Dot Net project, which includes a DLL. This DLL uses a .lib (C code). Unfortunately, there are many static variables in this .lib. The Problem I have here:

If two users perform a search at the same time, I get an error, because they both access the .lib, one changes something while to other tries to read data.

The obvious solution, would be to lock the access, but I really don’t want to do that, because that slows the search process down drastically. I would rather try to make a DLL from the lib, but I don’t know if this would solve the problem, as I don’t know if the static variables will then be stored separately, or if both search processes will access the same variables.

Does anyone have experience with this? Because it will take quite an amount of time to do this, and I’d like to know if it works before I start to do this.

I hope everything is understandable, as English is not my first language, and my programming skills are pretty basic.

  • 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-10T09:19:42+00:00Added an answer on June 10, 2026 at 9:19 am

    From what I understand, there is no way you are going to be able to simulataniously edit the data while you are reading from it using the existing classes within this .dll. Clearly this will just not work, no matter what fancy stuff you are doing.

    What you could do is create a Thunking Layer. This will be a type of wrapper class that will be called instead of the .dll. This class will handle concurrent I/O requests by holding a local copy of the data for reads, and allowing smultanious edits to the real data, updating the local copy when these manipulations are finished (with appropriate temporary locking etc.). There may be other standard ways of doing this that I not aware of, but this is how I would start.

    I hope this helps.

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

Sidebar

Related Questions

I'm working on a project (BrowserIO - go to browserio dot googlecode dot com
I am working on an existing project in ASP.NET witch is based in a
I'm working on making some changes to a Dot Net Nuke website with a
I have project which is currently working and was developed long time back on
I have been working on a project which partially consists of a HttpModule. I
Im working on a dot net nuke site for a client, they are wanting
I have some trouble with uri in my C# code This is working: var
In the ASP.net web application that I am working on, there is a link
From past few months I am working on projects in latest dot net frameworks.
i used self.mapView.showsUserLocation = YES; for showing blue dot (circle) on MKmapview. Its working

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.