Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Ending program quickly causes crash (Windows)

Author
Message
Jambo B
15
Years of Service
User Offline
Joined: 17th Sep 2009
Location: The Pit
Posted: 19th Aug 2017 14:53 Edited at: 19th Aug 2017 14:55
On exiting, my program is occasionally crashing - especially if clicking the window's close button when the program has just started.

I tried this with a completely new, empty project. All I did was add an End command before the loop. When running it several times, sometimes it exits normally - but occasionally it crashes, as seen in the picture attached.

The 'problem signature' is:
Problem Event Name: BEX
Application Name: Tables.exe
Application Version: 0.0.0.0
Application Timestamp: 59944d9e
Fault Module Name: XAudio2_7.dll_unloaded
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 4c0641e5
Exception Offset: 5472a5e0
Exception Code: c0000005
Exception Data: 00000008
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 2057


Is this a bug, do you think? My installation seems normal, and this didn't happen with the previous version of AppGameKit (Currently using build 2017.08.16).

Ta!

James

Attachments

Login to view attachments
nz0
AGK Developer
17
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 20th Aug 2017 02:03
Direct X shouldn't be referenced in the latest version. Looks like it still is?

DavidAGK
AGK Developer
10
Years of Service
User Offline
Joined: 1st Jan 2014
Location:
Posted: 23rd Aug 2017 15:27
Guessing this is a bug?
Using Tier 1 AppGameKit V2
Started coding with AMOS (Thanks Francois Lionet)
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 30th Aug 2017 16:33
DirectX is used for many things on Windows, graphics, sound, input. We use OpenGL for graphics but DirectX for audio.

In this case it seems to be a bug in Windows prior to Windows 8 that the DLL is being unloaded before it should be. Try the attached version that contains the recommended workaround for this and see if it works.

Attachments

Login to view attachments
DavidAGK
AGK Developer
10
Years of Service
User Offline
Joined: 1st Jan 2014
Location:
Posted: 31st Aug 2017 18:22
Did this fix it for you Jambo B - I've not tried it yet (other things I'm looking at at the moment) but would be good to know if this works... I will get round to it though as Paul has kindly offered a potential solution!
Using Tier 1 AppGameKit V2
Started coding with AMOS (Thanks Francois Lionet)
Jambo B
15
Years of Service
User Offline
Joined: 17th Sep 2009
Location: The Pit
Posted: 1st Sep 2017 16:34
Ach, Paul - I should've said earlier - I'm on Win7, 64 bit. The version that you (very kindly ) attached was the 32 bit version. The file 'Windows64' seems to be the one which appears in my program's folder on compilation. I've run the program (as detailed above) a few times and the crash still happens.

Apologies for the confusion.

James
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 1st Sep 2017 17:04
I've attached the 64-bit version with the same fix, hopefully it will solve the problem.

Attachments

Login to view attachments
Jambo B
15
Years of Service
User Offline
Joined: 17th Sep 2009
Location: The Pit
Posted: 1st Sep 2017 18:10
Well, that seems to have fixed the problem. I've been pressing F5 for about 10 minutes now, and the app exits gracefully every time.

Thanks very much,

James
DavidAGK
AGK Developer
10
Years of Service
User Offline
Joined: 1st Jan 2014
Location:
Posted: 2nd Sep 2017 15:18
Great news - does this mean it can be implemented in the next release? Guess so.
Using Tier 1 AppGameKit V2
Started coding with AMOS (Thanks Francois Lionet)

Login to post a reply

Server time is: 2024-09-30 07:34:09
Your offset time is: 2024-09-30 07:34:09