My own message queue/fifo [closed] - c

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
Can someone guide me on how to implement my own FIFO application to use is in IPC, I know that I can do this with SHM, socket or using any other sys-v or posix ipc.
The reason I'm looking for this is because I wanna build this fifo with my own specification that will suite my applications with the locking inside this application, so that any application can only call enqueue or dequeue, just like with fifo the kernel will make sure that it's atomic as long as you are writing less than the pipe_buff. I know how to build circular buffer queue but I'm not sure how will I call it from another application, do I need to build an API for it ? or is it something else?
the system is Linux and the language is c.

I would strongly recommend using POSIX MQ library. They are thread safe and I believe may be persistent. I've used it with a lot of success and it allowed me to focus on solving the problem at hand instead of rolling my own.

Related

WIX append data to file during installation [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I was just wondering what would be the easiest way to get WIX to append some lines to a configuration file (it is a matlab file) of other application, basically what I need is:
Find where a third party application is installed (that I can handle)
Append some lines to a configuration file of this third party application
I figure I would need to use a custom action right? But what would be the easiest way?
Thanks a lot!
It depends on what format the configuration file is but generally speaking, it's easiest to avoid custom actions altogether if possible.
For INI files, you can use the IniFile Element
For XML files, you can use the XmlConfig Element located in the WiX Util Extension
I ended up using a custom action.

Mouse programming in c [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 10 years ago.
I am working on my minor project. I have to create an image editor in C. For that I want to handle mouse. As I know there are two approaches to handle mouse viz REQUEST MODE and EVENT MODE.
Over the past few days I have learnt Request mode but I'm having difficulty in performing a couple of things with request mode, so I decided to learn second approach i e Event mode. But unfortunately I can't find proper resources. It would be very nice of you if you can get me some examples and explanation of event mode approach.
look at this site
http://www3.telus.net/alexander_russell/course/introduction.htm
its a dos game programming site
there is a mouse section at chapter 4

Silverlight app hangs at 100% [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
I have seen that related question but it didn't helped. I have a simple silverlight mvvm application for which I have created custom views and viewmodels and I have set the main view as rootlayout. Compiles succesfully, but when I hit run, the app hangs at 100%. I have placed breakpoints all over the app (in the views and in the app.cs) but it never reaches them. I'ved also replaced the mainview with a simple page with only a simple button on it (and set it as rootlayout), but still it hangs at 100% (I'ved thought that my view caused the problem, but it doesn't work on simple pages as well).
Is there any way to view the exceptions? Or something that I am missing...??
Silverlight version 3.
Thanks in advance
Tamash

visual c profiler not giving meaningful results [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
I am using Visual Studio 2010 Premium version
When I run the profiler, it runs fine, but then it just produces results telling me that my app [appName.exe] (brackets are theirs) is using 99.99% of the time spent.
I googled trying to find anyone reporting similar issues, but to no avail. I am using Windows 7, compiling using x64 for my multi-threaded app. However, even when I turn off all the multithread pragma directives, same results.
The last time I used the profiler on my app it worked as one would expect, telling which functions were the most expensive.
Btw, I am using c, not c++, if that makes any difference.
Any ideas?
Thank you. Apparently somehow I got it set to analyze the release (vs debug) version.

Fastest key-value pair database? [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 12 years ago.
I am looking for fastest free key-value pair database available. Database doesn't have to be server-based, it can be linked into the application. I am aware of Tokyo Cabinet. Any other suggestions?
i vote for BerkeleyDB!
I don't know about fastest, but you can look at this question: Document databases/Key-value stores for use with .Net projects.
The reality, is that you will probably need to clearly establish a performance baseline and profile different databases for yourself to determine which will have acceptable performance for your specific application.
An in-memory sql lite database

Resources