Jump to content

Photo

Error when executing function


  • Please log in to reply
1 reply to this topic

#1 iamoutlaw Posted 17 November 2015 - 01:36 PM

iamoutlaw

    Soldier

  • Members
  • Pip
  • 1 posts

Hey guys, playing around with the library and if I can get this one thing to work this will literally be the answer to my prayers.

 

I'm trying to call a function in the process like so:

Dim pCreature = sharp(New IntPtr(&H4CED41)).Execute(Of Integer)(CallingConvention.ThisCall, Zone, creatureID)

My calling convention is correct, parameters are correct, address is correct, but I'm getting the following error and have absolutely no idea what to do.

 

 

An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in MemorySharp.dll

Additional information: Couldn't allocate memory of 0 byte(s).

 

I would be eternally grateful if someone could help me out.


  • Back to top
  • Report

#2 PappenPeter Posted 28 November 2015 - 08:39 PM

PappenPeter

    Soldier

  • Members
  • Pip
  • 4 posts

Start application as Admin

 

If this doesn't work then tell me the "LastWin32Error" aka "Marshal.GetLastWin32Error"

https://msdn.microso...(v=vs.110).aspx


  • Back to top
  • Report




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users