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 1 of 13, by Dege

User metadata
Rank l33t
Rank
l33t

Please try the debug version of dgvoodoo dll's to see if there is an error message in the log.
You can attach it here, maybe it's a bug or incompatibility on dgvoodoo side that I could fix.

Reply 3 of 13, by Dege

User metadata
Rank l33t
Rank
l33t

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 5 of 13, by Dege

User metadata
Rank l33t
Rank
l33t

Which version to try?
I installed 0.20 + the patch but when I start the app then the intro video playback renders in super slow motion and I cannot get further. ๐Ÿ˜–

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 7 of 13, by Dege

User metadata
Rank l33t
Rank
l33t

Thanks, that worked. Now I have 3 unrunnable Donkey Kong games, so

Aurel wrote on 2020-05-15, 10:54:

if you want I can send you a preconfigured package to test ๐Ÿ˜€

that'd be fine! ๐Ÿ˜€

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 l33t
Rank
l33t

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 10 of 13, by Aurel

User metadata
Rank Newbie
Rank
Newbie

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

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 l33t
Rank
l33t
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.

Reply 13 of 13, by Aurel

User metadata
Rank Newbie
Rank
Newbie

Thanks!! I will test as soon as possible ๐Ÿ˜€

Edit : tested and works perfect now ๐Ÿ˜€
Thanks again!!