Click here to Skip to main content
15,892,965 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: type of file to open Pin
Steve L.17-Oct-02 12:41
Steve L.17-Oct-02 12:41 
GeneralShared Memory Pin
Todd Smith17-Oct-02 11:46
Todd Smith17-Oct-02 11:46 
GeneralRe: Shared Memory Pin
Joaquín M López Muñoz17-Oct-02 11:56
Joaquín M López Muñoz17-Oct-02 11:56 
GeneralRe: Shared Memory Pin
User 988517-Oct-02 12:03
User 988517-Oct-02 12:03 
GeneralRe: Shared Memory Pin
Todd Smith17-Oct-02 12:05
Todd Smith17-Oct-02 12:05 
GeneralRe: Shared Memory Pin
User 988517-Oct-02 12:37
User 988517-Oct-02 12:37 
GeneralRe: Shared Memory Pin
Paul M Watt17-Oct-02 12:38
mentorPaul M Watt17-Oct-02 12:38 
GeneralRe: Shared Memory Pin
Daniel Lohmann19-Oct-02 2:02
Daniel Lohmann19-Oct-02 2:02 
Paul wrotes:
I believe that because the FileMapping object is a Kernel object, that the file mapping will continue to exist until all handles to it are released.

Paul is absolutely right here. A (named) file mapping is a kernel object and will exists, until the last handle to it has been closed. So in your scenarion the mapping will still be present and valid, because at every time there is at least one valid handle to it.

BTW: Using native NT Api it is even possible to make a kernel object "persistent", meaning that it would continue to exist after the last handle to it has been closed (persistent means until next reboot). Of course this makes sense only for named kernel objects. Even if sometimes fairly useful, this is undocumented and therefore "not recommended" Frown | :-(


--

Daniel Lohmann

http://www.losoft.de
(Hey, this page is worth looking! You can find some free and handy NT tools there Big Grin | :-D )
GeneralUNICODE MFC libraries in VC6 Pin
Todd Smith17-Oct-02 11:39
Todd Smith17-Oct-02 11:39 
GeneralRe: UNICODE MFC libraries in VC6 Pin
Anders Molin17-Oct-02 12:07
professionalAnders Molin17-Oct-02 12:07 
GeneralRe: UNICODE MFC libraries in VC6 Pin
Michael Dunn17-Oct-02 15:08
sitebuilderMichael Dunn17-Oct-02 15:08 
QuestionIs this a Bug In Microsoft Code? Pin
perlmunger17-Oct-02 11:24
perlmunger17-Oct-02 11:24 
AnswerRe: Is this a Bug In Microsoft Code? Pin
Joaquín M López Muñoz17-Oct-02 11:36
Joaquín M López Muñoz17-Oct-02 11:36 
GeneralRe: Is this a Bug In Microsoft Code? Pin
perlmunger17-Oct-02 11:51
perlmunger17-Oct-02 11:51 
GeneralRe: Is this a Bug In Microsoft Code? Pin
Joaquín M López Muñoz17-Oct-02 12:00
Joaquín M López Muñoz17-Oct-02 12:00 
GeneralRe: Is this a Bug In Microsoft Code? Pin
perlmunger17-Oct-02 12:12
perlmunger17-Oct-02 12:12 
GeneralRe: Is this a Bug In Microsoft Code? Pin
Joaquín M López Muñoz17-Oct-02 12:18
Joaquín M López Muñoz17-Oct-02 12:18 
GeneralRe: Is this a Bug In Microsoft Code? Pin
perlmunger17-Oct-02 13:40
perlmunger17-Oct-02 13:40 
GeneralRe: Is this a Bug In Microsoft Code? Pin
Seefou17-Oct-02 11:53
Seefou17-Oct-02 11:53 
GeneralRe: Is this a Bug In Microsoft Code? Pin
perlmunger17-Oct-02 14:07
perlmunger17-Oct-02 14:07 
AnswerRe: Is this a Bug In Microsoft Code? Pin
perlmunger18-Oct-02 8:12
perlmunger18-Oct-02 8:12 
GeneralHandle double-click on an Edit box Pin
Karl17-Oct-02 10:55
Karl17-Oct-02 10:55 
GeneralRe: Handle double-click on an Edit box Pin
valikac17-Oct-02 12:43
valikac17-Oct-02 12:43 
GeneralPrinting contents of Dialog window Pin
AnanyasChintayantoyam17-Oct-02 9:46
sussAnanyasChintayantoyam17-Oct-02 9:46 
GeneralRe: Printing contents of Dialog window Pin
Chris Losinger17-Oct-02 11:46
professionalChris Losinger17-Oct-02 11:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.