Repost: Hibernate()

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,
yesterday i have posted a question regarding something strange. today i
observed my application very closely and found that :

whenever more memory consumption is there, the OS is trying to close my
application and because of that, all the forms which i have kept in memory
get closed and becuase of exceptions, some strange things happens. is my
observation correct? i have heard about hibernate() in eVC++.

can we able to receive the hibernate message from the OS in my vb.net ppc
application through DLL import. If the situation arises, the OS will send
the message to the currently active form or to the main form of our
application?

regards,
hari
 
A WM_HIBERNATE is sent to all apps when memory conditions are low. I've not
tried it, but an IMessageFilter implementation may be able to see the
message. In the Form CLosing() events you need to have a mechanism to
determine if the user or the system is what's closing you - a global flag
seems simple enough for that.
 
Back
Top