Gamestudio Links
Zorro Links
Newest Posts
Purchase A8 full licence version
by ukgamer. 04/29/26 18:09
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 5,733 guests, and 39 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ukgamer, valino, juergenwue, VladMak, Geir
19210 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
is this a bug? #240722
12/12/08 03:50
12/12/08 03:50
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline OP
User
the_mehmaster  Offline OP
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
i had these 2 lines:

VECTOR* temp;
temp.x = mouse_pos.x/100;

and they worked fine.
so i changed it to this:

VECTOR* temp;
temp.x =(mouse_pos.x/100)-4;

then the program crashes!
please help

Re: is this a bug? [Re: the_mehmaster] #240742
12/12/08 09:44
12/12/08 09:44
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
what's your version?

Re: is this a bug? [Re: Cowabanga] #240747
12/12/08 10:10
12/12/08 10:10
Joined: Sep 2003
Posts: 938
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 938
Sure this is a big fat bug!

You need either a real vector, or a not empty pointer when you want to do something with it. Writing something into an empty pointer will of course crash.

its

VECTOR temp;

or

VECTOR* temp = { x=0; y=0; z=0; }

but not

VECTOR* temp;

Re: is this a bug? [Re: Spirit] #240849
12/12/08 22:17
12/12/08 22:17
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline OP
User
the_mehmaster  Offline OP
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
that fixed the problem.
many thanks.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1