Re: Write-once with DLL shared memory

From: Gary Chanson (gchanson_at_No.Spam.TheWorld.net)
Date: 12/04/04


Date: Fri, 3 Dec 2004 23:57:14 -0500


"Tim Crews" <tim.crews.nospambots@gecoinc.com> wrote in message
news:MPG.1c1a77048efe5794989699@news.cox.net...
>
> Now I have a further mystery. I just ran dumpbin on my DLL, only to find
out
> that there was no Shared section in my Release version of the DLL. Only
the
> Debug version had the Shared section. Apparently, even though I thought I
was
> launching the Debug version, I was launching the Release version, which
was not
> properly sharing the data. A rebuild of the Release version fixed my
problem.
>
> However, that leads to a second question: If the data _wasn't_ shared,
how did
> I get the inter-process synchronization to work, even once? I am quite
sure of
> this. I have confirmed it a dozen different ways, including with loud
> annoying Beeps. The first time I set the (apparently un-shared) flag, the
> destination process did see the flag being set, and it beeped in response.
>
> Hmmmmm. I suppose you don't believe me. Things like that are easy to not
> believe.

    I believe you but I have no idea what was happening. Sometimes it's not
easy to account for what a program does when it's tripping over a bug.

-- 
-GJC [MS Windows SDK MVP]
-Software Consultant (Embedded systems and Real Time Controls)
- http://www.mvps.org/ArcaneIncantations/consulting.htm
-gchanson@mvps.org


Relevant Pages

  • Re: Write-once with DLL shared memory
    ... > set the flag, nothing happens. ... that there was no Shared section in my Release version of the DLL. ... Debug version had the Shared section. ... launching the Debug version, I was launching the Release version, which was not ...
    (microsoft.public.win32.programmer.kernel)
  • Re: File Version without GetFileVersionInfo
    ... I think in NT+ OS you cannot rename a file if it's open without ... FILE_SHARE_DELETE flag. ... Mapped executables and DLLs are opened without it. ... How can you replace a currently-installed DLL? ...
    (microsoft.public.vc.mfc)
  • Re: Calling CreateDispatch to create Word Instance
    ... Thanks SvenC. ... So is there any way of Launching a word application when the ... DLL is loaded in the memory, other than making the function call from the ... application which loads this DLL? ...
    (microsoft.public.vc.mfc)
  • Re: Manifests and requestedExecutionLevel
    ... launching a second .exe at Medium MIC. ... injecting a DLL into Explorer and sending a ... private message to the DLL to get it to launch an app with Medium MIC. ...
    (microsoft.public.vc.mfc)
  • Re: Register filter built with Visual Studio 2005
    ... In both the dll and the SourceFilter I am using the /MT flag. ... but that gives me linker errors due to unresolved externals in ...
    (microsoft.public.win32.programmer.directx.video)