Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. COWhat you are sayign is true but in my case its still not clear to me. i have added some details for ATTACH and DETACH case in the post. Please see, hope it helps my doubt. in DETACH case the case code gets executed irrespective whether OS is notifying the DETACH case or application itself. The thing is illegal memory access will happen in both situation.
      singulars
    2. COI just looked at your changes. Could you show me which line the access violation happens on? Although, even if you show me chances are my response will be "That object you are accessing is no longer in valid memory." (Obviously...that's what an access violation is) :D I read a great post about this a little while back: It boiled down to saving a shadow copy of your file (kind of like how Word does). That way if your app crashed or the power goes out things aren't lost. But more importantly, it lets you just crash. Things will be graceful by design. Hope this helps.
      singulars
    3. COButmy question still unanswered :) there is no difference in the code execution as i mentioned i did unmap and then tries to access the file mapped memory which is illegal. in case of FreeLibrary(), the next statement after accessing the memory location was not executed and silently program executed. in case of implicit call to DETACH, access violation error dialog box appears and then only i realized. So my point why the same dialog box was not appear in FreeLibrary() call. You cannot say that even after unmapping, the memory access is legal in that case :)
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload