SRL Archive - Reflection Help

function GetMenuText: TStringArray;


Gu3st...

2010-11-26 18:23:24

I get this error: "Error: Exception: Access violation at line 14" the line is wrong, but experimenting with try except end; made me believe the error is in GetMenuText (The error did not show when I try, except end;-ed that function)

Harry

2010-11-26 20:08:14

Same problem here, exits in reflection's Text.simba when it right-clicks on a menu. After right-clicking and before it moves mouse to chose the option, it crashes on this.

pyroryan

2010-11-26 20:12:43

Checking it out now. Sorry I haven't had the chance to throughly look at the issue during the last day/two.

Gu3st...

2010-11-26 20:26:28

I'm not sure, but I think the problem is here:
    javaString:= SmartGetFieldObject(next, hook_menu_Action);
item:= GetJavaString(javaString,256);
SmartFreeObject(javaString);

EDIT: No. screw that.. nevermind my post xP

Shuttleu

2010-11-26 20:27:58

http://villavu.com/forum/showthread.php?t=60178

~shut

Cstrike

2010-11-26 20:28:03

One potential problem could be it trying to get a menu if no menu comes up… maybe that returns zero or some weird number and crashes an array?

Gu3st...

2010-11-26 20:31:23

From: cstrike
One potential problem could be it trying to get a menu if no menu comes up… maybe that returns zero or some weird number and crashes an array?
The menu is showing for me, and I still get this error + it crashes my simba :(

pyroryan

2010-11-26 20:38:43

Issue is now solved with latest SVN. It was because of an incorrect MenuOptionsCount hook.

Again, sorry for the delay.

Gu3st...

2010-11-26 21:01:20

Works! :)
Thanks for the fix, pyro

Harry

2010-11-26 21:41:21

When running a script, I got:
Error: Out Of Range at line 75
(line: next:= SmartGetFieldObject(head, hook_node_Next);)
also in Text.simba. I think they might be related.

pyroryan

2010-11-26 22:51:34

From: Harry
When running a script, I got:
Error: Out Of Range at line 75
(line: next:= SmartGetFieldObject(head, hook_node_Next);)
also in Text.simba. I think they might be related.


How long does it take before that happens o.O
Either it takes a long time or I'm not patient enough to sit around. Its late and I need to finish up two projects so I can spend time with my family this weekend. So I'll try to squeeze in time to check it out again.

Harry

2010-11-26 22:53:22

From: pyroryan
How long does it take before that happens o.O
Either it takes a long time or I'm not patient enough to sit around. Its late and I need to finish up two projects so I can spend time with my family this weekend. So I'll try to squeeze in time to check it out again.

It happened after about 50 minutes of runtime. The script it happens on is http://villavu.com/forum/showthread.php?t=60112 - at Giant rats.

Edit: 3 hours now and it hasn't happened again. Weird bug…