473,320 Members | 2,117 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

VB .NET Class Library accessing a legacy C DLL

I am writing an application (Web Service) that needs to access a legacy
C DLL that is thread unsafe. I have written a VB DLL wrapper for the C
DLL but can't seem to get around the fact that it is not thread safe.

What is the best way to make calls to a thread unsafe DLL from managed
multi threaded applications to ensure that the DLL is only executing
one instance at a time?

Any assistance would be helpful

Thanks,
Jason

Nov 21 '05 #1
0 807

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: venk | last post by:
Hi, given below is my interaction with the interpreter.... In one case, i have created the class method using the "famous idiom"... and in the other, i have tried to create it outside the class...
0
by: Richard Creed | last post by:
I have to write a dll that can be used by a legacy app. The legacy app looks for a set of specific exported functions, with mangled names (in the form _MyMangledFunction@nn). I really don't want...
0
by: Richard Creed | last post by:
I have to write a dll that can be used by a legacy app. The legacy app looks for a set of specific exported functions, with mangled names (in the form _MyMangledFunction@nn). I really don't want...
0
by: Richard Creed | last post by:
I have to write a dll that can be used by a legacy app. The legacy app looks for a set of specific exported functions, with mangled names (in the form _MyMangledFunction@nn). I really don't want...
1
by: Nathan | last post by:
Hi, I have created a class library creating a number of forms and a few public variables. I have a project that references the .dll for this class library, and in that project I need to access...
29
by: Michael D. Ober | last post by:
Is there any way to create a constant in a class that can be used both with an instantiated object and without. For example: dim ClassConst as string = myClass.ConstantString dim myObj = new...
5
by: Cyril Gupta | last post by:
Hello, I have a class inside another class. The Scenario is like Car->Engine, where Car is a class with a set of properties and methods and Engine is another class inside it with its own set of...
1
by: omantawy | last post by:
Hi, I have some legacy ASP web applications that use an unmanaged COM component to connect to a third party application. The third part application has moved to the managed code in the current...
2
by: Che.Gonzalez | last post by:
Can a project or assembly limit the projects that may reference it? For example, I have a legacy project used by a data layer project. I don't want the object model project to be able to directly...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.