Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

Win32 and Interix Applications sharing memory

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Win32 and Interix Applications sharing memory Page: [1]
Login
Message << Older Topic   Newer Topic >>
Win32 and Interix Applications sharing memory - Nov. 11, '03, 9:37:08 AM   
keith

 

Posts: 25
Joined: Jun. 18, '03,
Status: offline
Back in March a question was posted about sharing memory between Win32 and Interix applications.

The feeling was that it could be done.

Does anyone have details of how to do it?

Best Regards

Keith
Post #: 1
RE: Win32 and Interix Applications sharing memory - Nov. 11, '03, 2:06:43 PM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
You can do it with memory mapped files.

What the Windows code looks like I' m not sure, but there is likely something up on the MSDN web site.

For Interix the usual Unix memory mapping API' s are used: mmap() and munmap(). Refer to the man pages for details on these API' s.

(in reply to keith)
Post #: 2
RE: Win32 and Interix Applications sharing memory - Nov. 20, '03, 11:50:34 AM   
keith

 

Posts: 25
Joined: Jun. 18, '03,
Status: offline
Rodney,

Thanks for the information.

What about a Win32 program being able to access ipcs shared memory in the Interix sub-system obtained using shmget() and shmat(), is this possible?

Best Regards

Keith

(in reply to Rodney)
Post #: 3
RE: Win32 and Interix Applications sharing memory - Nov. 20, '03, 11:59:02 AM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Not that I' m aware of.
It can always be an enhancement request :-)

Rodney

(in reply to keith)
Post #: 4
RE: Win32 and Interix Applications sharing memory - Nov. 20, '03, 12:29:51 PM   
keith

 

Posts: 25
Joined: Jun. 18, '03,
Status: offline
Rodney,

Thanks for the information.

How do I go about submitting it as an enhancement request?

Best Regards

Keith

(in reply to Rodney)
Post #: 5
RE: Win32 and Interix Applications sharing memory - Nov. 20, '03, 12:46:34 PM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Well, if you are BetaPlace member (for example, reviewing 3.5Beta) then the bug reporting system has a bug type " enhancement" .
I know that someone from the SFU dev group occationally reads through the forum. So they might pick it up that way.
I' ll see if I can forward it to the right person at MS.

Rodney

(in reply to keith)
Post #: 6
RE: Win32 and Interix Applications sharing memory - Nov. 20, '03, 1:57:23 PM   
markfunk

 

Posts: 670
Joined: Mar. 31, '03,
Status: offline
a starting point for Interix/Windows memory management info is described at:
http://msdn.microsoft.com/library/en-us/dnucmg/html/ucmglp.asp

(in reply to keith)
Post #: 7
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> Win32 and Interix Applications sharing memory Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.031