SRL Archive - S.M.A.R.T. Questions and Answers.

Runtime Error - Access Violation: Embedded_SMART.dll. Please help


Sags

2008-11-21 00:00:55

Hi guys, i've googled, searched and read just about every possible thread relating to this topic so i've turned to posting a help thread as a last resort.

I'm getting the following runtime error on 'Play' of any script using the SMART applet.
[Runtime Error] : Exception: Access violation at address 6720456E in module 'Embedded_SMART.dll'. Read of address 00000000 in line 86 in script C:\Program Files\SCAR 3.15\includes\srl/srl/misc/Smart.scar

Line 86:
 SmartSetup('http://'+prefix+'.runescape.com/', 'plugin.js?param=o0,a' + IntToStr((Integer(not(Signed)) + 1) * Integer(not((SuperDetail and Signed)))) + ',m' + IntToStr(Integer(Members)));

I have the latest SRL, Includes, Reflection, SCAR, the correct/latest version of the Embedded SMART.dll.
I have renamed it with and without the underscore as suggested as well as complete reinstall, updates, etc.
I have replaced my SCAR folder with a friends whose SMART is working perfectly, still to no avail.
- Any help with this would be greatly appreciated.

Thanks:p

Kyle Undefined

2008-11-21 00:13:27

Could you post the section it is having problems with?

~Camo

Sags

2008-11-21 00:19:56

Sure, sorry I thought i had included it in the OP.
 SmartSetup('http://'+prefix+'.runescape.com/', 'plugin.js?param=o0,a' + IntToStr((Integer(not(Signed)) + 1) * Integer(not((SuperDetail and Signed)))) + ',m' + IntToStr(Integer(Members)));
Thanks for the quick reply, hopefully I can sort this out before work :p

Kyle Undefined

2008-11-21 00:26:45

No problem bro, hope I can help. Do you have this:
SMARTSetup('World92',True,True,False);
or this
SMARTSetupEx(92,False,True,False);
in your scripts?

~Camo

Sags

2008-11-21 00:31:23

begin
SmartSetupEx(110, True, True, False);
SetTargetDC(SMARTGetDC);
Is what I've switched everything over to from the older 'SmartSetup' code. (That's a sample from the actual Script i've having this error with.)

Kyle Undefined

2008-11-21 00:36:16

Hmm…I noticed you said you updated everything, but I didn't see the Worlds.ini in your list. Did you update that? Also, the first True in the SmartSetup is for members, if you don't want members set it to False. Didn't know if you knew that or not, just pointing it out.

~Camo

gimillii1592

2008-11-21 00:45:28

CHANGE:
SMARTSetup('World10',True,True,False);

TO:
SMARTSetupEx('10',True,True,False);

This should word :]

Kyle Undefined

2008-11-21 00:48:11

From: gimillii1592
CHANGE:
SMARTSetup('World10',True,True,False);

TO:
SMARTSetupEx('10',True,True,False);

This should word :]


We have already discussed this. Read above. Also, spelling error, I bolded and underlined. Sorry that kind of stuff activates my OCD lol. :p

~Camo

Sags

2008-11-21 01:07:52

Yeah, that's a little frustrating - "Should word"
Haha, terrible…Such a grammar Nazi.
Okay, I didn't realise the Worlds.ini wasnt updated with the general SCAR update.
Will go and grab it now and get back to you!

Kyle Undefined

2008-11-21 01:11:25

Yeah, that's one thing alot of people forget to update. Nava might need to add it into his post. Hope that works.

~Camo

Sags

2008-11-21 01:11:34

Uh, just looking in the SCSS folder; I do have a worlds txt document, should i have a separate .ini other than this?

Sags

2008-11-21 01:15:48

Scratch that, it is the worlds.ini document, and it seems fairly up to date. Ideas?

Kyle Undefined

2008-11-21 01:18:58

Double post, please fix?
Also, what is the number of total worlds in your .ini?

~Camo

Sags

2008-11-21 11:42:13

I dont have word Installed on this laptop, so i can't really check the total words…It's a 12kb file. Perhaps you could link me to the latest version?

Kyle Undefined

2008-11-21 11:44:07

Yes, Worlds. Hope this helps. ;)

~Camo

Sags

2008-11-21 11:47:49

Still getting the same error, thinking i might just give this a rest for tonight; it's 3AM and i just got home from work. Thanks for your help, hopefully someone has some fresh ideas overnight. :)