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.

Windows / Windows deployment failure

Author
Message
mrpmorris
7
Years of Service
User Offline
Joined: 28th Sep 2012
Location:
Posted: 1st Nov 2012 17:22
When I run my game in Lazarus it works, when I double-click the compiled EXE it just freezes. Does anyone know why this would happen?
mrpmorris
7
Years of Service
User Offline
Joined: 28th Sep 2012
Location:
Posted: 5th Nov 2012 14:50
It's not going to be much use if it only works inside an IDE with source. How is an AppGameKit level 2 game deployed for Windows? What are the requirements?

1: The EXE
2: The AGK.DLL in the same folder
3: The "Media" folder in which I store resources to load at runtime

What am I missing?
mrpmorris
7
Years of Service
User Offline
Joined: 28th Sep 2012
Location:
Posted: 6th Nov 2012 20:57
Applying SysUtils.Beep to my code step by step I was able to identify it was TAgkMusic.Play that was causing the freeze. To reproduce follow these steps...

1: Open Agk0401_PlayingMusic.lpr
2: Run in IDE (it works)
3: Double click the EXE to run outside of the EXE (freezes)
mrpmorris
7
Years of Service
User Offline
Joined: 28th Sep 2012
Location:
Posted: 10th Nov 2012 15:51
This looks most likely to be something weird with my laptop. It works okay on other machines so I will try reinstalling my O/S

Login to post a reply

Server time is: 2019-12-07 00:07:26
Your offset time is: 2019-12-07 00:07:26