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: run time error when append multiple richTextWithOle
Topic Summary:
Created On: 10-Sep-2004 18:58
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.
 10-Sep-2004 18:58
User is offline View Users Profile Print this message


Li Zhang

Posts: 2
Joined: 13-Sep-2002

When I try to append multiple richTextWithOle together, I get a run time error. The following is partial DXL code I have.

Buffer disp = create;
for obj ... do {
disp = disp "\n" richTextWithOle(obj."Object Text") "\n";
}

delete(disp);

The following is the message in the doors Diagnostic window.

DOORS: **** Translating a structured exception ****
DOORS: Version DOORS 7.1, build number 71122, built on Jul 13 2004 14:31:55.
DOORS: Microsoft Windows 2000 Service Pack 3 (Build 2195)

DOORS: DOORS: 99 percent of memory is in use.
DOORS: There are 1046516 total Kbytes of physical memory.
DOORS: There are 4028 free Kbytes of physical memory.
DOORS: There are 2521264 total Kbytes of paging file.
DOORS: There are 755700 free Kbytes of paging file.
DOORS: There are 1fff80 total Kbytes of virtual memory.
DOORS: There are 6a478 free Kbytes of virtual memory.

DOORS: argv[0]: C:\Program Files\Telelogic\DOORS 7.1\bin\doors.exe
DOORS: doors.exe caused an EXCEPTION_ACCESS_VIOLATION in module doors.exe at 001B:004078D3
DOORS: 001B:004078D3 (0x00000000 0x60010020 0x03489944 0x25B7F5BE) doors.exe
DOORS: 001B:0051FE50 (0x03D10E80 0x25B7F5BE 0x000001D0 0x25B7ECA8) doors.exe
DOORS: 001B:00528350 (0x25B875D4 0x25B7EC98 0x00B173B0 0x000103FA) doors.exe
DOORS: 001B:007067B6 (0x25B7ECA8 0x25B875D4 0x25B7EC88 0x00B173B0) doors.exe
DOORS: 001B:007091BD (0x25B7EC98 0x00000004 0x25B7EC28 0x00B173B0) doors.exe
DOORS: 001B:0070856C (0x25B7EC88 0x03D273A0 0x043E9BD0 0x0362A060) doors.exe
DOORS: 001B:007074C4 (0x25B7EC28 0x00000390 0x25B7E9EC 0x00B173B0) doors.exe
DOORS: 001B:004A73FA (0x0012F4D0 0x02143E90 0x25B7E960 0x25B875B4) doors.exe
DOORS: 001B:0070676F (0x25B7E9EC 0x000025E0 0x25B7E960 0x00B173B0) doors.exe
DOORS: 001B:006C6042 (0x0012F9CC 0x00000000 0x25B875A0 0x015F6E00) doors.exe
DOORS: 001B:0070676F (0x25B7E960 0x00000000 0x25B7F310 0x015F6E00) doors.exe
DOORS: 001B:0070CCC2 (0x25B7E520 0x00000001 0x03D10F60 0x004C40BA) doors.exe
DOORS: 001B:0070CBDD (0x015E1CE0 0x25B83598 0x0012FA9C 0x00000000) doors.exe
DOORS: 001B:004FC177 (0x03CB1D40 0x77E1639B 0x03D07F40 0x00000111) doors.exe
DOORS: 001B:00630337 (0x03D07F40 0x000008AA 0x000103F6 0xC0000000) doors.exe
DOORS: 001B:0063072B (0x000203E6 0x00000111 0x000008AA 0x000103F6) doors.exe
DOORS: 001B:0062BE40 (0x0062BE2B 0x000203E6 0x00000111 0x000008AA) doors.exe
DOORS: 001B:77E13523 (0x00C684D0 0x00000111 0x000008AA 0x000103F6) USER32.dll
DOORS: 001B:77E139E5 (0x000203E6 0x00000111 0x000008AA 0x000103F6) USER32.dll
DOORS: 001B:77E2542F (0x000103F6 0x00000202 0x00000000 0x00090022) USER32.dll, RegisterClassW()+1119 byte(s)
DOORS: 001B:77E20E5A (0x000103F6 0x00000202 0x00000000 0x00090022) USER32.dll, AdjustWindowRect()+0087 byte(s)
DOORS: 001B:77E11EF0 (0x77E20DFC 0x000103F6 0x00000202 0x00000000) USER32.dll
DOORS: 001B:77E13D1E (0x77E20DFC 0x000103F6 0x00000202 0x00000000) USER32.dll
DOORS: 001B:77E13D9A (0x77E20DFC 0x000103F6 0x00000202 0x00000000) USER32.dll
DOORS: 001B:0063338A (0x000103F6 0x00000202 0x00000000 0x00090022) doors.exe
DOORS: 001B:00633416 (0x006333F9 0x000103F6 0x00000202 0x00000000) doors.exe
DOORS: 001B:77E1204C (0x0012FDD4 0x00000001 0x0062CDA2 0x0012FDD4) USER32.dll
DOORS: 001B:77E15F69 (0x00730072 0x00000001 0x00000000 0x04806E51) USER32.dll, IsWindowVisible()+0612 byte(s)
DOORS: 001B:00459766 (0x00400000 0x00000000 0x00134375 0x00000001) doors.exe
DOORS: 001B:0045A6A9 (0x00400000 0x00000000 0x00134375 0x00000001) doors.exe
DOORS: 001B:00407E7B (0x00730072 0x0065002E 0x7FFDF000 0x00000000) doors.exe
DOORS: 001B:7C581AF6 (0x00407D9B 0x00000000 0x000000C8 0x00000100) KERNEL32.dll, OpenProfileUserMapping()+0741 byte(s)
DOORS: **** end of event ****

Can any one please help?

Thank you

Li
Report this to a Moderator Report this to a Moderator
 10-Sep-2004 23:02
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Dumps aren't too useful; except that the "99% of memory in use" looks like a culprit to me. Next time be sure to tell us the DXL error in the DXL window.

[1] If you are using a Buffer you should issue: disp += "\n" richText...YaddyYaddy. Not sure what will happen the way you have it, but am sure it wastes time. And space. And probably creates lots of memory leak.
[2] I get confused and when appending or returning will always put function calls in extra parans:
"\n" (richTextWithOle(obj, "Object Text")) "\n"
[3] The final semi colon isn't needed but I don't think it will hurt anything so long as there is a space (an empty DXL line) after it.


What on earth are you going to do with this massive buffer of rich text diagrams anyway? Aren't you tempted to use "richTextNoOle" if you figure to print it?

- Louie
Report this to a Moderator Report this to a Moderator
 11-Sep-2004 00:39
User is offline View Users Profile Print this message


Li Zhang

Posts: 2
Joined: 13-Sep-2002

I try copy multiple text attributes into one text attribute. Each of the text attribute has OLE object. I believe that the string returned by richTextWithOle(obj."Object Text") is very big and "delete(disp)" call do not really clean the memory. In other words, is any easy way to copy multiple text attributes with OLE into one text attribute.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 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 1 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.