consulo-csharp icon indicating copy to clipboard operation
consulo-csharp copied to clipboard

Extract value from pointer

Open winxalex opened this issue 9 years ago • 12 comments

screen shot 2016-05-13 at 2 02 42 pm screen shot 2016-05-13 at 2 06 00 pm

winxalex avatar May 13 '16 12:05 winxalex

Hm. Unity 5.4 ? Thanks for example

VISTALL avatar May 13 '16 12:05 VISTALL

Yes 5.4.b17

winxalex avatar May 13 '16 12:05 winxalex

Looks like - MonoDevelop can read pointer value and then extract value from it

VISTALL avatar May 13 '16 12:05 VISTALL

and that is old mono that I'm using and still works.

winxalex avatar May 13 '16 12:05 winxalex

can decompile too ho,ho,ho Mono.Cecil :)

winxalex avatar May 13 '16 12:05 winxalex

Sorry - but decompilation(and navigation to sources of libraries, is too big issue for now)

VISTALL avatar May 13 '16 12:05 VISTALL

And yes - looks like pointers have some different rules

image

VISTALL avatar May 13 '16 12:05 VISTALL

This is safe code with IntPtr 📦 . And about decompiler U CAN DO IT. NIKE

winxalex avatar May 13 '16 12:05 winxalex

No idea how they extract value. Need to search this way inside MonoDevelop code

VISTALL avatar May 13 '16 12:05 VISTALL

http://stackoverflow.com/questions/17339928/c-sharp-how-to-convert-object-to-intptr-and-back

dont' know how in Java

winxalex avatar May 13 '16 13:05 winxalex

java is not used here:) Mono used language independent debugger protocol

VISTALL avatar May 13 '16 13:05 VISTALL

Looks like you said answer for Microsoft .NET debugger. But for mono - idk, searching way inside Mono Develop source

VISTALL avatar May 13 '16 13:05 VISTALL