473,785 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to protect/license a static library? Multiple instances?

Hi,

I am deliverying an algorithm to a customer as a static library. I know
how to put a time limit (make the library functions only run for 60
days, for example), or lock the library to a MAC address.

However, what I need, in this case, is to limit the number of instances
of the library that can run on the computer. The algorithm processes
data and I charge my customer based on the number of instances of my
algorithm that they run.

Does any one know of a very simple way to do this? I want to be
absolutely sure that I don't cause my customer unnecessary difficulty.

Thanks,
John

Nov 15 '05 #1
20 3034
<jo********@hot mail.com> wrote in message
news:11******** *************@z 14g2000cwz.goog legroups.com...
....
However, what I need, in this case, is to limit the number of instances
of the library that can run on the computer. The algorithm processes
data and I charge my customer based on the number of instances of my
algorithm that they run.


Wrong group. But generally you need to guard access to the library by means
of a mutex/lock/semaphore/whatever is supported by the OS.

Alex
Nov 15 '05 #2
>I am deliverying an algorithm to a customer as a static library. I know
how to put a time limit (make the library functions only run for 60
days, for example), or lock the library to a MAC address.
You really like to piss off customers, don't you? In my experience,
network card failures are not that uncommon (because we use a lot
of them).
However, what I need, in this case, is to limit the number of instances
of the library that can run on the computer. The algorithm processes
data and I charge my customer based on the number of instances of my
algorithm that they run.

Does any one know of a very simple way to do this? I want to be
absolutely sure that I don't cause my customer unnecessary difficulty.


All of the things you mention above WILL eventually cause your
customer unnecessary difficulty. If you don't want to sell it,
don't sell it. You may do the world a favor by not writing such
crippled software in the first place.

Gordon L. Burditt
Nov 15 '05 #3
jo********@hotm ail.com wrote:
Hi,

I am deliverying an algorithm to a customer as a static library. I know
how to put a time limit (make the library functions only run for 60
days, for example), or lock the library to a MAC address.

However, what I need, in this case, is to limit the number of instances
of the library that can run on the computer. The algorithm processes
data and I charge my customer based on the number of instances of my
algorithm that they run.

Does any one know of a very simple way to do this?


Yes, but you are only allowed to look at my solution for 3 seconds...
....sorry, time's up.
Nov 15 '05 #4
"Gordon Burditt" <go***********@ burditt.org> wrote in message
news:11******** *****@corp.supe rnews.com...
I am deliverying an algorithm to a customer as a static library. I know
how to put a time limit (make the library functions only run for 60
days, for example), or lock the library to a MAC address.


You really like to piss off customers, don't you? In my experience,
network card failures are not that uncommon (because we use a lot
of them).


Seems like licensing becomes more important than the quality of the code in
question. ;)

Alex

Nov 15 '05 #5
akarl wrote on 16/08/05 :
Yes, but you are only allowed to look at my solution for 3 seconds...
...sorry, time's up.


LOL !!!

--
Emmanuel
The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
The C-library: http://www.dinkumware.com/refxc.html

..sig under repair
Nov 15 '05 #6
On 16 Aug 2005 11:22:50 -0700, in comp.lang.c , jo********@hotm ail.com
wrote:

(of distributing software with a runtime license allowing X concurrent
users)
Does any one know of a very simple way to do this?


Yes, but you need to buy a license for the required s/w. Seriously,
there are plenty of solutions out there, but you'll need to buy them.

--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt >

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Nov 15 '05 #7
jo********@hotm ail.com wrote:
Hi,

However, what I need, in this case, is to limit the number of instances
of the library that can run on the computer. The algorithm processes
data and I charge my customer based on the number of instances of my
algorithm that they run.

Does any one know of a very simple way to do this? I want to be
absolutely sure that I don't cause my customer unnecessary difficulty.


Some hardware dongles supports this feature.

Daniele.
Nov 15 '05 #8
Great. Can you suggest a few you've had good experience with?

John

Nov 15 '05 #9
Alex,

Thanks for your reply. How do I get a common handle to the
mutex/lock/semaphore/whatever across all the running instances?

Thanks,
John

Nov 15 '05 #10

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

Similar topics

1
2215
by: Martin V. | last post by:
Hello, Is the multiple instances capability of SQL2K mature enough for a Production system? We're looking at upgrading our hardware but the proposed solution calls for consolidating two currently separate SQL Server's onto one machine with two CPU's. Of the current two servers, one is for OLTP (~800Mb) and the other for
1
2081
by: Ben Fidge | last post by:
Hi, Our hosting company recently shut-down our site because of the resources it was using on a co-hosted server. Apparently, it was spawning multiple instances of ASPNET_WP.EXE. I'm having a little trouble recreating this locally so was wondering where I can information about when, why and how IIS/ASP.NET will spawn new instances of ASPNET_WP.EXE so that I can gain an insight into why this is happening on our server.
1
3466
by: Vivek | last post by:
Hi, I am developing a MDI application. I need to track the child forms open so that I can stop a user from opening the multiple instances of the same child form. Now what is the best way of achieving it. I tried using an Forms Array but is not the most efficient way. I think I can create a collection but then how do I create a global collection that can be accessed from all the forms. Please help. Thanks
4
3148
by: Mike | last post by:
Class A public objX I want to create 2 or more instances of Class A and have the same value for objX in all instances. Instance1 of Class A Instance2 of Class A Instance3 of Class A
5
2855
by: pkoniusz | last post by:
Hello everyone. The problem may be obvious, though I'm a bit puzzled by the error LNK2028 when attempting to utilize my static library. The all methods of the class defined within that library do not pose any troubles, but template based methods. Let's say this is a header: class LooseFunctions {
3
3211
by: =?Utf-8?B?VG9kZA==?= | last post by:
What is the memory footprint of static methods of a windows app running on a server when the server spins up multiple instances of the application? In my envirionment, we have a Citrix server farm running .Net 2.0 windows apps. Does the framework allow for instances of the same application to access the same memory space where static methods are stored (assuming the security context is the same for each instance)?
2
1944
by: Patrick Stinson | last post by:
Is it a correct to assume that you can use multiple instances of python altogether if each is loaded from a separate dll? For instance, if I write a couple of dll/so libs, and each has python statically linked in, is it safe to assume that since dlls use their own address space then each dll would have it's own GIL, and will therefore coexist safely within the same app? This is correct across all platforms, yes? I ask because I will be...
5
1740
by: pgrazaitis | last post by:
I cant seem to get my head wrapped around this issue, I have myself so twisted now there maybe no issue! Ok so I designed a class X that has a few members, and for arguments sake one of the members Y is the location of a file to be read. The original design assumes that this class will be instantiated and each instance will happily mange its own members. (ie One file location per instance...no thread-safety). Now another class A...
4
4446
by: tvnaidu | last post by:
I created an executable using static library instead shared lib, I am running multipe instances of this executable, does it takes more memory with static library compare to shared library?. Does shared library had any advantage than static library in multiple instances?. thanks in advance
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10324
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9949
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6739
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5380
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.