473,324 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

hibernate/suspend mode support

dr
I am trying to add suspend mode support to my application. I am getting the
PBT_APMQUERYSUSPEND and PBT_APMSUSPEND event notifications as expected.
According to MSDN "The system allows approximately 20 seconds for an
application to remove the WM_POWERBROADCAST message that is sending the
PBT_APMQUERYSUSPEND event from the application's message queue. If an
application does not remove the message from its queue in less then 20
seconds, the system will assume that the application is in a non-responsive
state, and that the application agrees to the sleep request. Applications
that do not process their message queues may have their operations
interrupted. After it removes the message from the message queue, an
application can take as much time as needed to perform any required
operations before entering the sleep state."

How do I remove the message from the queue? I've tried using the Win32
GetMessage() and PeekMessage() calls but it tells me there is no message to
retrieve. I trying this on WinXP - perhaps this isn't even possible? My end
goal is to delay suspend as long as I need to clean-up any outstanding work.
Apr 3 '06 #1
0 995

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: JDPope | last post by:
I have a situation which I cannot get a good lead on how to resolve. One of the applications I support uses the Hibernate software to generate SQL. The app is JAVA with JDBC. In testing the users...
5
by: Steve Teeples | last post by:
Does someone have an example of C# code (VS 2005) that puts a system into hibernation or stand by and then after some period of time wakes up the system? I need to write a test that does this...
0
by: nguyentrungd | last post by:
Hi all, org.hibernate.dialect.DB2400Dialect doent seem to support mapping type DECIMAL. I wonder if there is any solution to this. I think i need to modify the hibernate code to include...
1
by: chandukandula | last post by:
Hi Already my application in Struts using JDBC.At present my application is implemented in Struts with hibernate So i am not changing the SQL queries converting to the like this String...
1
by: fibit | last post by:
hey guys i have a couple of problems with my fairly new laptop (Acer 5051) and needed some advice, afta some googling i found this place! i have had my laptop a few months now and brough it with...
6
rsrinivasan
by: rsrinivasan | last post by:
Hi all, I am using Hibernate framework in my project. This is my configuration in my "hibernate.cfg.xml" file. <property name="hibernate.c3p0.max_size">25</property> <property...
0
by: neuraljay | last post by:
hi everyone. I am trying to build a jsp using webwork, hibernate and mysql. And right now I am doing its unit testing. Everytime I run the test I am getting this error: Error JDBC exception on...
1
by: ashi1290 | last post by:
I am getting this error..... Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:120)...
0
by: michael.spoden | last post by:
Hi, I'm working with DB2 UDB V8.2 Fixpak 14 on Linux. Since two days the 'set write suspend on database' command takes multiple hours in our backup script in the night. Theres more or less no...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.