[omniORB] Memory requirements for omniORB on WinNT
Brecht Vermeulen
bvermeul@mail.atlantis.rug.ac.be
Wed, 3 Mar 1999 17:44:41 +0100
--Boundary-=_XrJmOWFrxsjyBldbEFSArCBynEcd
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
Hi,
this are the results of the purifying jury :-)
Well I ve written a simple example based on the eg2 example, so I ve just
changed the interface echo.idl, and the implementation echo_i.cc and the call
in greeting.cc, eg2_impl.cc and eg2_clt.cc are the same.
The output from purify is in the attachment mailORB.
the stranges things are the invalid pointers read and write , but maybe it s
not an error because it works perfect.
But we just purchased purify and now we are scared :-).
greetings,
Brecht Vermeulen
--Boundary-=_XrJmOWFrxsjyBldbEFSArCBynEcd
Content-Type: text/x-c++;
name="echo_i.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="echo_i.cc"
Ly8gZWNob19pLmNjIC0gVGhpcyBzb3VyY2UgY29kZSBkZW1vbnN0cmF0ZXMgYW4gaW1wbG1lbnRh
dGlvbiBvZiB0aGUKLy8gICAgICAgICAgICAgb2JqZWN0IGludGVyZmFjZSBFY2hvLiBJdCBpcyBw
YXJ0IG9mIHRoZSB0aHJlZSBleGFtcGxlcwovLyAgICAgICAgICAgICB1c2VkIGluIENoYXB0ZXIg
MiAiVGhlIEJhc2ljcyIgb2YgdGhlIG9tbmlPUkIyIHVzZXIgZ3VpZGUuCi8vCiNpbmNsdWRlIDxz
dHJpbmcuaD4KI2luY2x1ZGUgImVjaG8uaGgiCgpjbGFzcyBFY2hvX2kgOiBwdWJsaWMgdmlydHVh
bCBfc2tfRWNobyB7CnB1YmxpYzoKICBFY2hvX2koKSB7fQogIHZpcnR1YWwgfkVjaG9faSgpIHt9
CiAgdmlydHVhbCBjaGFyICogZWNob1N0cmluZyAoU3RyaW5nU2VxJiByaWopIHRocm93IChDT1JC
QTo6U3lzdGVtRXhjZXB0aW9uKTsKfTsKCmNoYXIgKgpFY2hvX2k6OmVjaG9TdHJpbmcgKFN0cmlu
Z1Nl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-=_XrJmOWFrxsjyBldbEFSArCBynEcd
Content-Type: text/x-c++;
name="greeting.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="greeting.cc"
Ly8gZ3JlZXRpbmcuY2MgLSBUaGlzIHNvdXJjZSBjb2RlIGRlbW9uc3RyYXRlcyB0aGUgdXNlIG9m
IGFuIG9iamVjdAovLyAgICAgICAgICAgICAgIHJlZmVyZW5jZSBieSBhIGNsaWVudCB0byBwZXJm
b3JtIGFuIG9wZXJhdGlvbiBvbiBhbiAKLy8gICAgICAgICAgICAgICBvYmplY3QuIEl0IGlzIHBh
cnQgb2YgdGhlIHRocmVlIGV4YW1wbGVzIHVzZWQKLy8gICAgICAgICAgICAgICBpbiBDaGFwdGVy
IDIgIlRoZSBCYXNpY3MiIG9mIHRoZSBvbW5pT1JCMiB1c2VyIGd1aWRlLgovLwovLyBva2VlLCBn
ZWVuIG1lbW9yeSBsZWFrICEhISAoc2VxdWVuY2UgdmFuIHN0cmluZ3MpCi8vIDEwMDAwIGl0ZXJh
dGllcyBkdXVydCAzMCBzZWMgbWV0IG9tbmlvcmIKI2luY2x1ZGUgPGlvc3RyZWFtLmg+CiNpbmNs
dWRlICJlY2hvLmhoIgoKdm9pZApoZWxsbyhDT1JCQTo6T2JqZWN0X3B0ciBvYmopCnsKICBFY2hv
X3ZhciBlID0gRWNobzo6X25hcnJvdyhvYmopOwoKICBpZiAoQ09SQkE6OmlzX25pbCgoRWNob19w
dHIpZSkpIHsKICAgIGNlcnIgPDwgImhlbGxvOiBjYW5ub3QgaW52b2tlIG9uIGEgbmlsIG9iamVj
dCByZWZlcmVuY2UuXG4iIDw8IGVuZGw7CiAgICByZXR1cm47CiAgfQoKICBjb3V0PDwgImp1aXN0
IHZvb3IgaW5pdGlhdGllIHZhbiBzZXF1ZW5jZSI8PGVuZGw7CiAgU3RyaW5nU2VxX3ZhciB0ZXN0
amU9bmV3IFN0cmluZ1NlcSgzKTsgICAvLyBhbGxvY2F0ZXMgc3BhY2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ZXN0PDxlbmRsOwp9Cg==
--Boundary-=_XrJmOWFrxsjyBldbEFSArCBynEcd
Content-Type: text/plain;
name="echo.idl"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="echo.idl"
I2lmbmRlZiBfX0VDSE9fSURMX18KI2RlZmluZSBfX0VDSE9fSURMX18KCnR5cGVkZWYgc2VxdWVu
Y2U8c3RyaW5nPiBTdHJpbmdTZXE7CgppbnRlcmZhY2UgRWNobyB7CiAgc3RyaW5nIGVjaG9TdHJp
bmcoaW5vdXQgU3RyaW5nU2VxIHJpaik7Cn07CgojZW5kaWYgCg==
--Boundary-=_XrJmOWFrxsjyBldbEFSArCBynEcd
Content-Type: text/plain;
name="mailORB"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="mailORB"
U0VSVkVSCioqKioqKioKICAgIFN0YXJ0ZWQgICBlZzJfaW1wbCAgICAgICAgICAgICAoMjQwMDI1
IGVycm9ycywgICAgMCBsZWFrZWQgYnl0ZXMpCiAgICAgIFB1cmlmeSBpbnN0cnVtZW50ZWQgZWcy
X2ltcGwgKHBpZCAxNTg2NiBhdCBXZWQgTWFyICAzIDE3OjIxOjI0IDE5OTkpCiAgICAgIFVNUjog
VW5pbml0aWFsaXplZCBtZW1vcnkgcmVhZCAoNCB0aW1lcykKICAgICAgVU1SOiBVbmluaXRpYWxp
emVkIG1lbW9yeSByZWFkICg0IHRpbWVzKQogICAgICBVTVI6IFVuaW5pdGlhbGl6ZWQgbWVtb3J5
IHJlYWQgKDggdGltZXMpCiAgICAgIFVNUjogVW5pbml0aWFsaXplZCBtZW1vcnkgcmVhZCAoNCB0
aW1lcykKICAgICAgVU1SOiBVbmluaXRpYWxpemVkIG1lbW9yeSByZWFkICg0IHRpbWVzKQogICAg
ICBJUFc6IEludmFsaWQgcG9pbnRlciB3cml0ZSAoMzAwMDAgdGltZXMpCiAgICAgIFRoaXMgaXMg
b2NjdXJyaW5nIHdoaWxlIGluIHRocmVhZCAxMToKICAgICAgICAgICAg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0b3IgbmV3KHVuc2ln
bmVkIGludCkgW3J0bGliLm9dCiAgICAgICAgICAgICAgIG9tbmlfdGhyZWFkOjppbml0X3Q6Omlu
aXRfdCh2b2lkKSBbbGlib21uaXRocmVhZC5zby4yLjBdCiAgICAgICAgICAgICAgIF9fU1RBVElD
X0NPTlNUUlVDVE9SKHZvaWQpIFtnYXRla2VlcGVyLmNjXQogICAgICAgICAgICAgICBfaW5pdCAg
ICAgICAgICBbbGlidGNwd3JhcEdLLnNvLjEuMF0KICAgICAgICAgUExLOiA4MCBieXRlcyBwb3Rl
bnRpYWxseSBsZWFrZWQgYXQgMHg4OGMwOAogICAgICAgICBQTEs6IDgwIGJ5dGVzIHBvdGVudGlh
bGx5IGxlYWtlZCBhdCAweDg5YjcwCiAgICAgICAgIFB1cmlmeSBIZWFwIEFuYWx5c2lzIChjb21i
aW5pbmcgc3VwcHJlc3NlZCBhbmQgdW5zdXBwcmVzc2VkIGJsb2NrcykKICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgIEJsb2NrcyAgICAgIEJ5dGVzCiAgICAgICAgICAgICAgICAgICAg
ICAgTGVha2VkICAgICAgICAgIDUgICAgICAgICA4OAogICAgICAgICAgIFBvdGVudGlhbGx5IExl
YWtlZCAgICAgICAgICAyICAgICAgICAxNjAKICAgICAgICAgICAgICAgICAgICAgICBJbi1Vc2Ug
ICAgICAgICA4NSAgICAgIDIxNTM4CiAgICAgICAgICAgLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLQogICAgICAgICAgICAgIFRvdGFsIEFsbG9jYXRlZCAgICAgICAgIDky
ICAgICAgMjE3ODYKICAgICAgVGhyZWFkIFN1bW1hcnkgOiA4IHRocmVhZHMgaW4gZXhpc3RlbmNl
CiAgICAgIFByb2dyYW0gZXhpdGVkIHdpdGggc3RhdHVzIGNvZGUgMC4K
--Boundary-=_XrJmOWFrxsjyBldbEFSArCBynEcd--