VOGONS


First post, by Aurel

User metadata
Rank Newbie
Rank
Newbie

Hi, first thanks for this tool 😀

I want to make an old app working with your ddraw dll (d3d7 to 11)
It works perfect but this app initialises itself quite often and it seems like dgvoodoo is closing the app at the 9th initialisation.
Is there any tip to avoid this?
Thanks in advance 😀

Reply 3 of 13, by Dege

User metadata
Rank Oldbie
Rank
Oldbie

Thanks!
But unfortunately nothing bad turns out from the log. What I can see is at the end the app releases its offscreen buffers on purpose and then quits. Maybe it gets an error code from a DDraw-call after all or detects something unsupported and that's why it is.
Can you share that app to debug? 😀

Reply 4 of 13, by Aurel

User metadata
Rank Newbie
Rank
Newbie

It crashes always the 9th times (8 after the first initialisation).
In the log strangely the Directdrwa number changes each time :
0D1C2838, 119691C8, 119B6D98, 119B5E68, 119B72A8, 119B6888, 119B5958, 119B5BE0, 119B7020 but the last tim when it crashes the number in the log is back to 119B5BE0 (this was the 8th step number but not the last) :
00000560 45.85685730 [6892] [dgVoodoo] INFO: DirectDraw (119B5BE0)::SetCooperativeLevel: cooperative level is bound to window (0), normal level
00000561 45.85686874 [6892] [dgVoodoo] INFO: DirectDraw (119B5BE0) is released.

It isn't strange ?

The app is AtomicFE an old Frontend but with some very nice options 😀
http://www.atomicfe.com/EN2/download.php

Reply 6 of 13, by Aurel

User metadata
Rank Newbie
Rank
Newbie

any version does the same, but as it is a frontend you have to configure it...
the intro video doesn't work for me but you can disable it with "USEINTROAVI=NO" in config file.
if you want I can send you a preconfigured package to test 😀

Reply 8 of 13, by Aurel

User metadata
Rank Newbie
Rank
Newbie

Here : http://www.mediafire.com/file/jhs4onj661ujs22 … xample.rar/file
it's ready to go
You will see, you can change configs and/or launch games only 7 times before crash 😀

key "1" to choose selection / launch game
key "2" to go back (previous selction screen)
keys "up"/"down" to navigate
key "Esc" to quit
I included a fake exe to try (it launches only an image a few secondes and it closes itself).
But in fact just making go&back 4 times from configs already shows the problem

Hope it helps to find the issue 😀
BR

Reply 9 of 13, by Dege

User metadata
Rank Oldbie
Rank
Oldbie

Thanks!
It indeed turned out to be an old special "limitation" (causing crash) I didn't remember of...
Atomic FE has object leak, each time it returns to the menu it creates a new DDraw object but doesn't release all the objects of the old one.

Anyway, I fixed it, now it doesn't crash. I'll include it in the next release.

Reply 11 of 13, by aqrit

User metadata
Rank Member
Rank
Member

random:

IDirectDraw and IDirectDraw2 do not increment the parent's reference count when a child object is created.
IDirectDraw and IDirectDraw2 release all child objects when the parent object is released.

Reply 12 of 13, by Dege

User metadata
Rank Oldbie
Rank
Oldbie
Aurel wrote on 2020-05-15, 18:09:

Nice! Thanks a lot, if you have already a fixed dll I would be very pleased to test it 😀

I've just released a new WIP, you can test it:

Re: dgVoodoo 2.6.x and related WIP versions

aqrit wrote on 2020-05-15, 21:27:

random:

IDirectDraw and IDirectDraw2 do not increment the parent's reference count when a child object is created.
IDirectDraw and IDirectDraw2 release all child objects when the parent object is released.

Yes, but this app is DD7 and it doesn't release some offscreens and clippers.