Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: How to increase the size of buffer...
Topic Summary:
Created On: 8-Aug-2007 11:16
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by David Pechacek, on Thursday, August 9, 2007 9:40 AM

Answer:
From the DXL Reference Manual:



create (buffer)

Declaration:
Buffer create([int initSize])

Operation:
Creates a buffer. A buffer has no intrinsic limit on its size; when a buffer becomes full it extends itself, if memory permits. The argument initSize specifies the initial size of the buffer. If no initial size argument is passed, this function creates a buffer that uses a default initial size of 255.


So to create a larger buffer initially, specify a size at creation. If it goes beyond that size, it will automatically make itself bigger as long as you have memory available. Are you copying rich text with OLE objects from Excel using the Copy and Paste method? If so, you're limited to the first 1024 characters. Copying and Pasting from Excel to DOORS is limited to the Text Property of a cell.

While the cell's value can go beyond 1024 characters, the Text property is limited to this number. This differs from setting a cells formatting to text where only 255 characters can be entered. If more characters than that are in the cell, "#" signs will be displayed. But the value is still there.
 8-Aug-2007 11:16
User is offline View Users Profile Print this message


Subrojyoti Sengupta

Posts: 52
Joined: 18-Nov-2005

I want to paste rich text with OLE objects into buffer as the no of OLE objects increases the buffer size gets exhausted ..  is there any solution to increase the size of buffer....
Report this to a Moderator Report this to a Moderator
 8-Aug-2007 11:41
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

It would help if you could paste a few lines of code and the error message they produce. Generally, you can just append text to a Buffer by using

Buffer b += string s
Buffer b += char c
Buffer b += Buffer b

but I guess your problem is somewhere else.

Peter
Report this to a Moderator Report this to a Moderator
 8-Aug-2007 16:36
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Answer Answer
From the DXL Reference Manual:



create (buffer)

Declaration:
Buffer create([int initSize])

Operation:
Creates a buffer. A buffer has no intrinsic limit on its size; when a buffer becomes full it extends itself, if memory permits. The argument initSize specifies the initial size of the buffer. If no initial size argument is passed, this function creates a buffer that uses a default initial size of 255.


So to create a larger buffer initially, specify a size at creation. If it goes beyond that size, it will automatically make itself bigger as long as you have memory available. Are you copying rich text with OLE objects from Excel using the Copy and Paste method? If so, you're limited to the first 1024 characters. Copying and Pasting from Excel to DOORS is limited to the Text Property of a cell.

While the cell's value can go beyond 1024 characters, the Text property is limited to this number. This differs from setting a cells formatting to text where only 255 characters can be entered. If more characters than that are in the cell, "#" signs will be displayed. But the value is still there.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.