Results 1 to 12 of 12

Thread: Error: Access Violation

  1. #1
    Join Date
    Jul 2015
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Error: Access Violation

    Whenever I try to run ineedbot's AIO Woodcutter I get this error:

    Error: Access violation
    Compiling failed.

    How do I fix this error? I thought this was an administrator thing but my account is an admin.. I even tried running Simba as an administrator and opening the script, still gave me the same error.
    Any suggestions?

    Thanks.

  2. #2
    Join Date
    Sep 2012
    Location
    Australia.
    Posts
    839
    Mentioned
    16 Post(s)
    Quoted
    225 Post(s)

    Default

    Hey there jilms. This is an issue with the reflection include & Aerolib clashing.

    Quote Originally Posted by Flight View Post
    I assume you both are using Reflection-based scripts? I don't understand how you're getting the error. It's caused by trying to load the 'ProSocks' plugin twice, once with AeroLib and again in the Reflection include, but the latest reflection update should have taken care of that. I myself am getting no errors from it. I just can't understand it. But for now what you can do is completely remove the part in the Reflection include that loads ProSocks.dll. To do this remove these 3 lines at line 77 in "Includes > Reflection > lib > misc > Misc.Simba":
    Simba Code:
    {$IFNDEF Aerolib}
      {$loadlib prosocks}
    {$ENDIF}

    That's the part that checks if we're using AeroLib or not, if so then it's assumed the ProSocks plugin is already loaded and won't try to load it again. But for some reason it's not doing this...
    Let me know if this resolves your issue.

  3. #3
    Join Date
    Jul 2015
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Chris! View Post
    Hey there jilms. This is an issue with the reflection include & Aerolib clashing.



    Let me know if this resolves your issue.
    Hey Chris,
    Thanks for the help! I removed those lines from the Misc.Simba and the code is executing properly.

    Thanks!

  4. #4
    Join Date
    Sep 2012
    Location
    Australia.
    Posts
    839
    Mentioned
    16 Post(s)
    Quoted
    225 Post(s)

    Default

    Quote Originally Posted by jilms View Post
    Hey Chris,
    Thanks for the help! I removed those lines from the Misc.Simba and the code is executing properly.

    Thanks!
    If you try to run a purely reflection based script that doesn't use Aerolib you will need to add them back in. Otherwise it will say an error like "Unknown declaration SSLsocket".

  5. #5
    Join Date
    Nov 2008
    Posts
    45
    Mentioned
    0 Post(s)
    Quoted
    21 Post(s)

    Default

    I am having the same problem, after removing line 77 in misc.simba i then get the error Unknown declaration "SSLSocket" at line 80 in misc.simba any help?

  6. #6
    Join Date
    Dec 2010
    Posts
    483
    Mentioned
    30 Post(s)
    Quoted
    328 Post(s)

    Default

    Quote Originally Posted by james10000 View Post
    I am having the same problem, after removing line 77 in misc.simba i then get the error Unknown declaration "SSLSocket" at line 80 in misc.simba any help?
    You should not remove those lines if you aren't using Aerolib (which is what it sounds like).

  7. #7
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Lape is Broken?

    Simba Code:
    {$IFNDEF PROSOCKS}
    {$DEFINE PROSOCKS}
    {$loadlib Prosocks}
    {$ENDIF}

    {$IFNDEF PROSOCKS}
    {$loadlib Prosocks}
    {$ENDIF}


    begin
    end.

    loads it twice even though the pre-processor guard is there..
    I am Ggzz..
    Hackintosher

  8. #8
    Join Date
    Mar 2013
    Posts
    1,010
    Mentioned
    35 Post(s)
    Quoted
    620 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Lape is Broken?

    Simba Code:
    {$IFNDEF PROSOCKS}
    {$DEFINE PROSOCKS}
    {$loadlib Prosocks}
    {$ENDIF}

    {$IFNDEF PROSOCKS}
    {$loadlib Prosocks}
    {$ENDIF}


    begin
    end.

    loads it twice even though the pre-processor guard is there..
    https://villavu.com/forum/showthread...24#post1355924
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

  9. #9
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Ahh a work around?

    Creates a file, puts loadlib in there and include_once. Then there's no need for the IFNDEF or IFDECL. No need for any work around in PascalScript though :l

    I don't see why any of this is even needed.. It shouldn't even load the module twice. Simba has an array of all loaded modules throughout the program. I'm sure it can check whether or not the module was already loaded and ignore any subsequent loads/declarations..
    I am Ggzz..
    Hackintosher

  10. #10
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Ahh a work around?

    Creates a file, puts loadlib in there and include_once. Then there's no need for the IFNDEF or IFDECL. No need for any work around in PascalScript though :l

    I don't see why any of this is even needed.. It shouldn't even load the module twice. Simba has an array of all loaded modules throughout the program. I'm sure it can check whether or not the module was already loaded and ignore any subsequent loads/declarations..
    IFNDEF / IFDECL is needed in order to avoid it loading the lib several times. Say if Include1 loads prosocks, now Include2 also uses prosocks but lacks that condition it will as well try to load prosocks, doesn't matter if we use the include or include_once directive here.

    The "loadlib"-directive is indeed bugged, and it should be fixed, I thought it was fixed, but I'm not sure that's the case anymore (was looking through a few commits without finding anything).

    I do agree that this could just as well be handled by Simba, by checking if the lib is already loaded, and never reload it.
    Last edited by slacky; 08-22-2015 at 05:30 AM.
    !No priv. messages please

  11. #11
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by slacky View Post
    IFNDEF / IFDECL is needed in order to avoid it loading the lib several times.
    Doesn't seem to be the case.

    Simba Code:
    {$loadlib Prosocks}

    begin
      writeln('file parsed');
    end.


    Test:

    Simba Code:
    {$include_once testbs.simba}
    {$include_once testbs.simba}
    {$include_once testbs.simba}


    begin
    end.

    Loads the module only once. Parses the file only once. I also added a message box to DLLMain, it is only called once.

    TLDR: Module is only loaded once. No need for IFDECL or IFDEF.
    I am Ggzz..
    Hackintosher

  12. #12
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Doesn't seem to be the case.

    Simba Code:
    {$loadlib Prosocks}

    begin
      writeln('file parsed');
    end.


    Test:

    Simba Code:
    {$include_once testbs.simba}
    {$include_once testbs.simba}
    {$include_once testbs.simba}


    begin
    end.

    Loads the module only once. Parses the file only once. I also added a message box to DLLMain, it is only called once.

    TLDR: Module is only loaded once. No need for IFDECL or IFDEF.
    That is assuming every include includes the same file in order to load ProSocks. Which would not be the case unless you ship your own "simba-side" include for loading prosocks, and every include used that rather than loading prosocks in their own include.
    Last edited by slacky; 08-22-2015 at 05:38 AM.
    !No priv. messages please

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •