Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ptr_for_handle() returns wrong pointer #305282
01/13/10 23:07
01/13/10 23:07
Joined: Mar 2009
Posts: 23
S
Siegewolf Offline OP
Newbie
Siegewolf  Offline OP
Newbie
S

Joined: Mar 2009
Posts: 23
I am using this new free version of lite-c along with Gamestudio that was uploaded recentily. It says SED version 7.35.0.

I imported fully working program from the previous free version of Lite-C into the new one and now I have some trouble. In one place, ptr_for_handle() returns pointer different than the one handle() was called for earlier. This then naturally causes a crash.

What can I do with this?

Re: ptr_for_handle() returns wrong pointer [Re: Siegewolf] #305695
01/16/10 16:47
01/16/10 16:47
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Simply put, it is most probably of a non-valid handle.
Maybe, a bug already had been in the code before and it already was only by luck that you had no problems before, or you changed more than you remember within the code after importing.
Test the validity of the handle!
Is there still the file?
How did you store the handle?
Did you store it within a skill, is the skill used more than once?
Is the pointer valid?
Or did you insert a wait after ptr_for_handle, and before using that pointer?

Does it simply crash, or do you get an error message?


Moderated by  HeelX, Spirit 

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