-
VB.Net 2005 - Is there a membory buffer pool I can utilise?
I am writing a polled/response communications application and would like a facility to request memory buffers from a pool to hold message blocks. I'm using VB.Net 2005 for the project.
The idea is that on polling a device I would request two buffers from a memory pool, format the first as the poll message for transmit, and format the second to hold the receive message. I'd then queue these on a protocol task queue for the protocol task to process (add the header, FCS, trailer etc and send via the driver). The protocol task would inset the device's response characters in the second buffer as the receive message, strip off the protocol bytes and return the message buffers to the application task. The application task would then process the received message and return the buffers to the memory buffer pool.
Does the .NET framework have any kind of memory buffer pool that I can request buffers from (and return to the pool later)? This was a facility offered in a modified real-time embedded operating system that I worked with back in the 90's and it worked extrmely well. In that system the memory buffers were requested and returned from/to the memory pool via API calls.
Eric
Similar Threads
-
Replies: 0
Last Post: 07-03-2006, 02:25 AM
-
By semidieu in forum .NET
Replies: 2
Last Post: 05-03-2006, 03:53 PM
-
By MarkDuncan in forum .NET
Replies: 0
Last Post: 01-11-2006, 09:17 AM
-
Replies: 0
Last Post: 07-18-2005, 10:43 AM
-
Replies: 0
Last Post: 07-09-2005, 06:50 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks