Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - NoamMiz

Pages: [1]
1
General / Re: a problen when making .exe with release
« on: June 24, 2012, 11:53:41 pm »
Tnx for the help guys.
I know how to work with global variances and global scopes, but the main issue is that in Debug mode it works well, and in Release mode it work in a weird way. the images (something like up to 5 images from 100 images) somethimes seen and sometimes doesn't.


It's something very weird and non of my lecturers even ever seen a problem like this.
maybe the developers of SFML know what can it be?!   :-\



2
General / Re: a problen when making .exe with release
« on: June 23, 2012, 06:25:32 pm »
Global variables are evil and from time to time SFML has some problems with it, regarding loading order of graphics stuff.

Can you be more specific?
i have a global instance name:"ImageFactory".
inside this instance i'm holding all my images.
the purpose of this is to hold on memmory only one image for few sprites (sprites with same image).

Do you think it's something that related to this ?

3
General / Re: a problen when making .exe with release
« on: June 23, 2012, 04:21:36 pm »
Are your colleagues running the exact same code or are they just using the same configuration as you but for their own code?
If the second is true: Perhaps you are relying on behaviour of your compiler in debug mode (preinitialize otherwise randomly garbage filled memory ranges with zero or something like that). Or are u using sprite instances that were initialized (and thus point to) image instanced that already ran out of scope? Perhaps you can reduce your problem to a minimum example that reproduces this bevaviour for you and that you can post here)

They using configuration as me but for thier own code.

im usung sprite instances that initialized with image from ImgaeFactory (singletone class so the instance of the class is not destroy and therefor the images dont destroy.

i'll try to reduce to a minimum program, and i'll see if this problem repeat.

4
General / Re: a problen when making .exe with release
« on: June 23, 2012, 04:16:42 pm »
Yes this excludes your code.
So I'd guess it has something to do with the library version. Which version do you use and are you all using the same?

How uptodate is your OpenGL driver?

wee all using 1.6 sfml for visual studio 2008.

i dont know hot uptodate my OpenGL driver. how can i check this?


5
General / Re: a problen when making .exe with release
« on: June 23, 2012, 04:13:41 pm »
nope..  :-\

As i said, in debug mode the game works well.
this strange problem come only when im running the game from release mode.

maybe it somthing that related to the linker -> input? i added 5 files to additional dependencies:
sfml-window-s.lib
sfml-system-s.lib
sfml-graphics-s.lib
sfml-audio-s.lib
sfml-main.lib

for static linkning.

Do you think it related to this? or to something similar to this?

6
General / Re: a problen when making .exe with release
« on: June 23, 2012, 03:59:53 pm »
Hmmm,

2 thingg i forgot to mention:
1 - In Debug mode, the game work propertly.
no bugs or anything like that.
only when im swtiching to Release mode and im doung ReBuild, i get this strange problem.

2 - im a student at college and we all using SFML library.
all my colleagues did exactly what i did (linker configuration etc..) and for them it works fine.

so (im pretty sure) this strange problem is not coming from my code, and i did all the configuration well.

7
General / a problen when making .exe with release
« on: June 23, 2012, 03:42:29 pm »
Hi all.

I'm using SFML for almost a year, and i have not problem at all with it.
I built a 2D game using SFML and i want to make an .exe file for my game.
i passed all the tutorials i've seen in the site, and i followed all the insructions correctly.
when i'm running my exe file after making release, in each run i can't see other images in my game.
for example: the first screen is a background image and some small images.
some run of the game i cant see the background image,  in other run i cant see other image and the background image seen well.
the images that i cant see changes in every run of the game.

im using static linking just like it explained in the tutorials.

is anyone have a clue what problem can it be??

tnx Noam

Pages: [1]
anything