Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 857 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
How to get list of functions, that run at the moment #275434
07/01/09 11:02
07/01/09 11:02
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
On the debug panel i see, that there are 18 functions running
I press mouse, call HighlightAvaivablePath() function, then i call another function that consists of

void PlayerActivate()
{
for first to last node
{
turn
move
}
beep
}

So, player starts moving(i see 19 funtions), pass all path, function beeps and ends(probably), but there are still 19 functions on debug panel

In addition, when i select player again, i get "crash in HighlightAvaivablePath()" that called before PlayerActivate(), BUT if i place breakpoint before them and run it with F10, i see that it crashes at the first line of PlayerActivate()

How to debug this?


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: How to get list of functions, that run at the moment [Re: VeT] #275443
07/01/09 11:34
07/01/09 11:34
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline
Serious User
pegamode  Offline
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Take a look at this issue:

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=274015#Post274015

A list of all currently running functions will be added in a future version.
(hopefully soon :-) )

Regards,
Pegamode.

Re: How to get list of functions, that run at the moment [Re: pegamode] #275452
07/01/09 12:19
07/01/09 12:19
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
i also hope so smile

Quote:

MCKiller wrote that the number of functions and the number of entities are stable.

Isn't it possible to get the names of all currently running functions? If not maybe you could add it to a future version of gs?

It could be hard to find out which functions are currently running if the overall number of functions is big. And with that it could be hard to find out where a panel, bitmap, material, sound or the like is created in a loop.


But if the number of functions isnt decreased after the moment, when function suppose to be terminated and it crashes if i call it again? smile


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: How to get list of functions, that run at the moment [Re: VeT] #275476
07/01/09 13:07
07/01/09 13:07
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Also, the number of functions increased, but i heard beeping, it means that function dont work anymore... i'll look through other functions, but list of all functions, that run would really helps me.


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: How to get list of functions, that run at the moment [Re: VeT] #275497
07/01/09 14:35
07/01/09 14:35
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Okay, i had found, where problem was.
Code:
void PlayerActivate()
{
 for first to last node
 {
  turn
  move
  }
 beep
}

when i commented "turn" section of PlayerActivate() function, there is no more "crash in HighlightAvaivablePath()"... very nice




btw, "turn" section by itself:
Code:
vec_to_angle(temp_vec,vec_diff(NULL,ActiveChar.x,AstarPlayerClosestTarget.x));
diff = ang(ActiveChar.pan - temp_vec.x);
while ( abs(diff) > 15 ) 
{
 vec_to_angle(temp_vec,vec_diff(NULL,ActiveChar.x,AstarPlayerClosestTarget.x));
 diff = ang(ActiveChar.pan - temp_vec.x);
 ActiveChar.pan -= sign(diff)*50*time_step;						
 HighlightPath(steps);
 wait(1);
}



Last edited by VeT; 07/01/09 14:36.

1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: How to get list of functions, that run at the moment [Re: VeT] #275498
07/01/09 14:39
07/01/09 14:39
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=274928#Post274928
Quote:

... This would allow to work out a stackwalk to catch eventual DLL-Errors with the correct(!!) function name.

totally agreed with TechMuc.


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: How to get list of functions, that run at the moment [Re: VeT] #277468
07/09/09 11:18
07/09/09 11:18
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
btw, at least i found soultion grin
It was because of
Code:
VECTOR* temp_vec;



the correct is
Code:
VECTOR temp_vec;



But why i got "crash in HighlightAvaivablePath()", i dont know smile


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: How to get list of functions, that run at the moment [Re: VeT] #277476
07/09/09 11:51
07/09/09 11:51
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline
User
the_mehmaster  Offline
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
I had the same issue with the fluid demo i posted:
Code:
VECTOR* Vec;


made mouse3d() function crash, but
Code:
VECTOR Vec;


worked.
Took me ages to find out that VECTOR* is a pointer and VECTOR actually exists.
If i had found this thread earlier i could have helped you..

Re: How to get list of functions, that run at the moment [Re: the_mehmaster] #277482
07/09/09 12:00
07/09/09 12:00
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Yes, but the most strange in this is "crash in HighlightAvaivablePath()" (in the first post) smile


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: How to get list of functions, that run at the moment [Re: VeT] #277483
07/09/09 12:03
07/09/09 12:03
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline
User
the_mehmaster  Offline
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
Oh..I have no idea. At least it works!smile

Page 1 of 2 1 2

Moderated by  old_bill, Tobias 

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