shared-objects

Modify g++ library path

时光怂恿深爱的人放手 提交于 2019-12-02 11:43:35
I recently installed gcc 4.9.2 and found a problem when linking with libs. The output for search path: install: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/ programs: =/usr/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/:/usr/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/:/usr/libexec/gcc/x86_64-unknown-linux-gnu/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/:/usr/lib/gcc/x86_64-unknown-linux-gnu/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu/4.9.2/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../x86_64-unknown-linux-gnu/bin/x86

ActionScript 3 SharedObjects don't persist across different swfs?

淺唱寂寞╮ 提交于 2019-12-02 08:18:53
I am serving two different swfs that read and write to the same SharedObject variable. The SharedObject variable is a number, and each swf checks that number to make sure it isn't using the same number twice. It then stores the last number it selects. In this way both swfs should never use the same number twice, no matter which order they're loaded. If I repeatedly load one of the swfs, the never-twice rotation works. However, when switching back and forth between swfs, sometimes the number is repeated. SharedObjects are supposed to be global to the Flash Player, so why would this happen?

SharedObject Send Method

痴心易碎 提交于 2019-12-01 13:44:07
In FMS i want to use Shared objects to send messages in a chat application because its in real time. My question is...How do you use Shared Objects to send messages back and forth to users in a live chat application? Would this require Server-side scripting, client or both? You'll only need to write some code on the server-side for specific functionalities, such as security features (if not all the users can send messages for example). On the client side, you need to: connect to the server; get the shared object from the server. If it does not exist when you ask for it, it will be created; add

How to get Shared Object in Shared Memory

不想你离开。 提交于 2019-12-01 13:36:57
Our app depends on an external, 3rd party-supplied configuration (including custom driving/decision making functions) loadable as .so file. Independently, it cooperates with external CGI modules using a chunk of shared memory, where almost all of its volatile state is kept, so that the external modules can read it and modify it where applicable. The problem is the CGI modules require a lot of the permanent config data from the .so as well, and the main app performs a whole lot of entirely unnecessary copying between the two memory areas to make the data available. The idea is to make the whole

SharedObject Send Method

≡放荡痞女 提交于 2019-12-01 12:26:50
问题 In FMS i want to use Shared objects to send messages in a chat application because its in real time. My question is...How do you use Shared Objects to send messages back and forth to users in a live chat application? Would this require Server-side scripting, client or both? 回答1: You'll only need to write some code on the server-side for specific functionalities, such as security features (if not all the users can send messages for example). On the client side, you need to: connect to the

How to get Shared Object in Shared Memory

流过昼夜 提交于 2019-12-01 10:33:49
问题 Our app depends on an external, 3rd party-supplied configuration (including custom driving/decision making functions) loadable as .so file. Independently, it cooperates with external CGI modules using a chunk of shared memory, where almost all of its volatile state is kept, so that the external modules can read it and modify it where applicable. The problem is the CGI modules require a lot of the permanent config data from the .so as well, and the main app performs a whole lot of entirely

sharedObject location

六月ゝ 毕业季﹏ 提交于 2019-12-01 08:58:37
i'm using this method to save shared object in specific location but i'm not able to give path SharedObject.getLocal("save","how to give path here for window"); and this gives following error Error: Error #2130: Unable to flush SharedObject. at Error$/throwError() at flash.net::SharedObject/flush() at OnlineDiagramEditor/SaveData_mouseDownHandler()[C:\Users\ruchidod\Adobe Flash Builder 4.6\OnlineDiagramEditor\src\OnlineDiagramEditor.mxml:3240] at OnlineDiagramEditor/__SaveData_mouseDown()[C:\Users\ruchidod\Adobe Flash Builder 4.6\OnlineDiagramEditor\src\OnlineDiagramEditor.mxml:3522] at flash

sharedObject location

巧了我就是萌 提交于 2019-12-01 06:14:47
问题 i'm using this method to save shared object in specific location but i'm not able to give path SharedObject.getLocal("save","how to give path here for window"); and this gives following error Error: Error #2130: Unable to flush SharedObject. at Error$/throwError() at flash.net::SharedObject/flush() at OnlineDiagramEditor/SaveData_mouseDownHandler()[C:\Users\ruchidod\Adobe Flash Builder 4.6\OnlineDiagramEditor\src\OnlineDiagramEditor.mxml:3240] at OnlineDiagramEditor/__SaveData_mouseDown()[C:

Linux equivalent of DllMain

杀马特。学长 韩版系。学妹 提交于 2019-11-30 13:40:06
问题 In *nix .so libraries, is there an entry point that's invoked by the system when the library is loaded and unloaded? On a more practical note: if the .so was written in C++ and it contains global objects with constructors and destructors, and it's loaded from a language that has no notion of construction/destruction, are the global objects properly constructed/destructed? 回答1: No, there is no equivalent to DllMain. For JNI libraries, e.g. on Android, there may be a special entry JNI_OnLoad

shared object can't find symbols in main binary, C++

 ̄綄美尐妖づ 提交于 2019-11-30 06:55:52
I'm experimenting with making a kind of plugin architecture for a program I wrote, and at my first attempt I'm having a problem. Is it possible to access symbols from the main executable from within the shared object? I thought the following would be fine: testlib.cpp: void foo(); void bar() __attribute__((constructor)); void bar(){ foo(); } testexe.cpp: #include <iostream> #include <dlfcn.h> using namespace std; void foo() { cout << "dynamic library loaded" << endl; } int main() { cout << "attempting to load" << endl; void* ret = dlopen("./testlib.so", RTLD_LAZY); if(ret == NULL) cout <<