24 messages in net.java.dev.jna.usersRe: [jna-users] Re: Mapping Struct to...
FromSent OnAttachments
thex...@email.comNov 1, 2008 1:46 am 
Timothy WallNov 1, 2008 5:04 am 
thex...@email.comNov 1, 2008 8:40 am 
Timothy WallNov 1, 2008 11:14 am 
Timothy WallNov 1, 2008 11:17 am 
thex...@email.comNov 2, 2008 12:30 am 
Timothy WallNov 2, 2008 7:42 am 
thex...@email.comNov 3, 2008 2:02 am 
Timothy WallNov 3, 2008 3:49 am 
thex...@email.comNov 3, 2008 4:51 am 
Timothy WallNov 3, 2008 6:22 am 
thex...@email.comNov 3, 2008 7:47 am 
Timothy WallNov 3, 2008 8:21 am 
thex...@email.comNov 3, 2008 11:19 pm 
Timothy WallNov 4, 2008 5:33 am 
Timothy WallNov 4, 2008 5:34 am 
thex...@email.comNov 4, 2008 2:33 pm 
Timothy WallNov 5, 2008 5:44 am 
thex...@email.comNov 5, 2008 8:15 am 
Timothy WallNov 5, 2008 9:19 am 
thex...@email.comNov 5, 2008 3:22 pm 
Timothy WallNov 5, 2008 7:00 pm 
thex...@email.comNov 6, 2008 3:36 am 
thex...@email.comNov 6, 2008 10:55 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Re: Mapping Struct to JavaActions...
From:thex...@email.com (thex@email.com)
Date:Nov 6, 2008 3:36:14 am
List:net.java.dev.jna.users

Hi Tim

Well, a stack-allocated struct passed by address could go out of scope, while an integer value would just be copied around. But you'd need to be a bit more descriptive of your data paths and players; I can't guess from what you've said so far.

Let me explain it more detailed. As a matter of fact of what I am speaking now is not coded by myself, and I never really tried, so its the sum of information I did receive. As I am not familiar with C/C++ coding at all, I may have
mistaken the one or other expression or use a wrong word for expressing myself.

At the beginning there is an application A. You start it and it runs in its own process. You want to have access to its running data but there is no interface manufactured to deliver that access. Therefor you create an application B that itself starts that application A and therefor has got access to the memory of application A (this is kind of a guessed explanation, the facts prove that B got access to A's memory allocations). Application B now offers access to certain data by deploying a dll C. So any application can get access to the memory allocations of application A simply by including and using dll C. At the end of the story I am trying to put up an JNA Interface layed over dll C to access application A's memory.

Thank you on explaining further details of compiler/runtime beviour concerning structures and primitive datatypes. I think I will do a test similiar like the one with JNA having flip-flopping the loaded DLL, but this time with C# as this has been so far the only platform that succeeded in accessing the structure of both dll's. I'd expect that it shows the right values at all times. Everthing else might be a hint towards the cause itself.

Regards, Armin