Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
4 registered members (AndrewAMD, fogman, Grant, juanex), 972 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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: 928
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 928
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 | chip programmers | 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