App unvisible when returning from sleep mode

BlitzMax Forums/BlitzMax Programming/App unvisible when returning from sleep mode

Afke(Posted 2012) [#1]
Hi Guys,

Do you have any idea how to solve bug:

Application will not be visible when returning from sleep mode

It is hardware specific :
Mobile Intel(R) 4 Series Express Chipset Family
Intel(R) HD Graphics Family
AMD Radeon HD 6310 Graphics
Win Vista and Win7

Thanks


xlsior(Posted 2012) [#2]
Does the entire application disappear, or are all the graphics black?

It's possible that the loaded images are no longer in graphics memory?


therevills(Posted 2012) [#3]
There is a known bug with bmax and resuming from standby: http://www.blitzmax.com/Community/posts.php?topic=96638


Afke(Posted 2012) [#4]
Hi guys,

It happened on laptops . Application disappear .In my case totally disappear, quit.


Afke(Posted 2012) [#5]
Hi therevills,

Did you pass lab with this fix ?

Function ResetD3DDevice()
_d3dDev.Reset( _presentParams )
End Function

And did you have any consequences after that fix ? :)

That bug killing me :)


therevills(Posted 2012) [#6]
Yep the fix works fine with DX9, I'd suggest you do the entire fix suggested by col:

http://www.blitzmax.com/Community/posts.php?topic=96638#1142798


Afke(Posted 2012) [#7]
Thanks guys it works!


col(Posted 2012) [#8]
Hiya,

You may also benefit to look at this specific post by Grey Alien:
http://www.blitzbasic.com/Community/posts.php?topic=99175#1163066

for a couple of other known issues and fixes that you may come across.