#1 Members - Reputation: 355
Posted 03 October 2012 - 11:11 AM
Thanks fo help.
#2 Moderator* - Reputation: 5335
Posted 03 October 2012 - 11:15 AM
Here's a list of installation software. I can't recommend one, as I have no personal experience with one.
#3 Members - Reputation: 841
Posted 03 October 2012 - 01:54 PM
Personally I avoid installing anything that does not come from very well-known and reliable source - because more than often the uninstall feature is either poorly implemented or broken. Plus I do not see why simple games should need to save anything to registry, access files (except save files) outside it's installation directory and so on.
First technology demo of my game Shinya is out: http://lauris.kaplinski.com/shinya
Khayyam 3D - a freeware poser and scene builder application: http://khayyam.kaplinski.com/
#5 Members - Reputation: 355
Posted 04 October 2012 - 03:14 PM
I have error when building, any idea how to solve it? Error is only when release, debug is working fine.

@Lauris Kaplinski - didnt know that, sure at start would be better and easier to make simple zip, however for future im interested in installer
@JustABeginner - no not polish
#6 Moderator* - Reputation: 5335
Posted 04 October 2012 - 04:29 PM
#8 Moderator* - Reputation: 5335
Posted 04 October 2012 - 05:31 PM
Does it give you a call stack? (bottom left tab)Continue is just throwing same window with same message, break give me disassembly tab.
That's the joy of C++ and undefined behavior. In C++, if you invoke undefined behavior (and there are a ton of ways of doing it), your program might continue to appear to work fine (even though there's a problem), but then when you change a setting (i.e. debug to release or release to debug) all hell breaks loose.So somewhere in my code is mistake to somehow use NULL pointer, why there is no problem with debug mode?
Pay particular attention when compiling to any warnings you might get, and strive for 0 warnings on compilation.
#9 Staff - Reputation: 8882
Posted 05 October 2012 - 04:28 AM
Debug builds often initialise variables to some sensible value; either to a zero value, or to some value that can easily be seen in a disassembly or stack trace.So somewhere in my code is mistake to somehow use NULL pointer, why there is no problem with debug mode?
- Jason Astle-Adams.
From my blog: 20 ways to advertise your game | What next? Intermediate to advanced C++
How to make games WITHOUT programming | 4 reasons you aren't a successful indie developer
#10 Members - Reputation: 355
Posted 05 October 2012 - 03:10 PM

I dont have any warnings have also minimize notices, when click on any Call Stack line only Dissembly lines are changed i dont see my code.

When run from Release folder i get window as normal with error message =(
I have made copy of project folder take most out and i have build it in Release so must be problem in my code.
Edited by leagal4ever, 05 October 2012 - 03:13 PM.
#11 Members - Reputation: 355
Posted 05 October 2012 - 05:15 PM
Just create the proper directory structure, add all relevant .dll and data files and pack it into zip archive.
I had no idea proper foler is Release folder there were no images i just copy SDL files.
SDL_Surface* tmp;
tmp = IMG_Load©;
SDL_DisplayFormatAlpha(tmp);// problem
Problem is there was no image loaded.
if (tmp != NULL)
SDL_DisplayFormatAlpha(tmp);
Now i avoid problem just in case something is not loaded
Thans for all help
Edited by leagal4ever, 05 October 2012 - 05:16 PM.







