Is it possible that the mov assembly instruction is not atomic?
Dudi Avramov
Posts
-
Is assignment to int atomic -
Is assignment to int atomicHi, i work in c++ using Visual Studio 2005. I'd like to know if the assignment operation to int (like int i; i=5; ) is atomic. If yes, can you show me proof for that? It is the same in x64 OS?
-
Explicitly free byte arrayHow do i explicitly free byte array?
-
Using the .Net image machanism without extra copy of the source imageHi, my application grabs an image from a camera. The image might be quite big such as 50MB. The image is represented as a bitmap image with BITMAPINFO as the header and the image data right after that. I have a COM object (writen in native code) which my WPF application uses that holds the image. This COM object can return byte* as the pointer to the image. Is there any way to use the .NET image component or other .NET component that will get just the pointer to my image (byte*) and without copying the whole image to .NET component? Thanks, Dudi
-
Getting events from COM objectHi, i have a COM dll with a COM object that sends events. The COM was written in ATL VC6. in VB6 i get the events by using "Dim WithEvent ..." . I don't know how to do it with C#. The com object is ComApplication and the event is OnIpresult(ComIpResult* pIR). Can you give me the sample code according to my com event? Thanks, Dudi
-
I need stlport_vc6.libCan anyone send me stlport_vc6.lib to dudiav@hotmail.com? Thanks, Dudi
-
Convert pdf to tiffDoes anyone know how to convert pdf to tiff via Acrobat 5 writer automation? I need sources. Thanks, Dudi
-
Convert pdf to tiffDoes anyone know how to convert pdf to tiff via Acrobat 5 writer automation? I need sources. Thanks, Dudi
-
Hooking service is not running automatically after upgrading to XP SP2I wrote a service that loads a dll for global hook purpose using SetWindowsHookEx function with WH_KEYBOARD_LL parameter. It is defined to run automatically on system startup and to interact with the desktop, as well. It works fine till I upgraded XP to XP SP2. The service starts successfully in manual mode but not automatically on system startup. The event viewer reports the errors event id 7009 and 7000 from the Service Control Manager. Event ID: 7009 Source: Service Control Manager Description: Timeout (120000 milliseconds) waiting for service to connect. Event ID: 7000 Source: Service Control Manager Description: The Certificate Authority service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion. After commented out the hooking function I saw that the services started on system startup. Is there anything that you know regarding to global hooking on XP SP2 that prevent from my service to run on system startup? Thanks, Dudi
-
Service is not automatic running after upgrade to XP SP2Well, i didn't mention that my service loads a dll for system-wide keyboard hooking (using SetWindowsHookEx function with WH_KEYBOARD_LL parameter). I commented out the hooking and the service started on system startup. It seems that there is a problem to hook from service on XP SP2 till the you login. Do you know something about that? Dudi
-
Service is not automatic running after upgrade to XP SP2Hi, i wrote a service process that configured to be automatic on system startup. It worked fine till i upgraded my XP to SP2. It won't start on automatic startup, but manualy it will start. The event viewer report for error event-id 7009 (Timeout (name milliseconds) waiting for service to connect.). Does anyone know how can i solve that problem? Thanks, Dudi
-
Printer Monitoring -
how can i check whether notepad.exe is running in taskmanager or not -
STL or <afxtempl.h> -
Who can i get CPU preformance in run time ?Use this
-
CoCreateInstanceI think that you didn't understand me. CoCreateInstance returns HRESULT. you defined hr variable as HRESULT. Typing "hr,hr" in the Debug Watch window shows the error description.
-
CoCreateInstanceIn the Debug Watch window type "hr,hr" and you will see the description of error. Nevertheless, don't forget to call CoInitialize(NULL); Dudi
-
How to know the serial numberFor cpu-id look for the assembly function cpuid.
-
Firing a VARIANT type from ATL projectIt is a known bug. Take a look at article Q264985 and Q250847.
-
Firing a VARIANT type from ATL projectHi there, i try to fire a VARIANT from ATL object. So, the ATL wizard creates a xxxCP.h file that implements the Fire_XXX function. However, the wizard writes wrong statement: pvars[0] = &Data; since pvars is CComVariant type then the operator '=' for bool is called instead of the operator '=' for VARIANT. I needed to change the code to 'pvars[0] = Data;' (without the '&'). Changing the xxxCP.h file is dangerous since the ATL wizard can overwrite it. Can anyone help me with this?