Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Oct 2000 20:57:26 -0800 (PST)
From:      harsha v <bsd_linux@yahoo.com>
To:        bright@wintelcom.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re:mem prob
Message-ID:  <20001031045726.71884.qmail@web10608.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
--0-1830479162-972968246=:71857
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

hi,
   i have attached file which has the declaration of
the objects and the file in which the invocation of
the main function.

i am sorry that i using a differ3ent mail address now.
the other mail id does'nt support attachments.

i would appreciate any help in this regard

------------- Original Message --------------
Alfred Perlstein  wrote:
To:harsha <crazyharshu@rediffmail.com>
From:Alfred Perlstein <bright@wintelcom.net>
Date:Mon, 30 Oct 2000 09:29:05 -0800
CC:"freebsd-questions@freebsd.org"
<freebsd-questions@FreeBSD.ORG>
Subject: Re: mem prob

* harsha  <crazyharshu@rediffmail.com> [001030 09:19]
wrote:
> hi,
>    i need some help on this.
> 
>    i am trying to allocate static array of objects
size 70MB. the array is 
> declared as a local variable. the executable dumped
a core.

Please provide some sample source.

-Alfred

__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/
--0-1830479162-972968246=:71857
Content-Type: application/x-tar; name="send.tar"
Content-Transfer-Encoding: base64
Content-Description: send.tar
Content-Disposition: attachment; filename="send.tar"

c2VuZC8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAADAwNDA3NTUAMDAwMTc1MwAwMDAwMDEyADAwMDAwMDAwMDAw
ADA3MTc3NDUyMzEwADAwMTIzNzYANQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
A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AAAACNpbmNs
dWRlICJteWRlZi5oIgpjbGFzcyBub2RlX2RlZgogICAgICB7CiAgICAgICBw
cml2YXRlOgogICAgICAgICAgICAgICAgbGxfaW50IGFkZHI7ICAgICAgIC8q
IEhvbGRzIHRoZSBhZGRyZXNzLiAgICAgICAgICAgICAgICAgICAgICAqLwog
ICAgICAgICAgICAgICAgdV9pbnQgIG1zOyAgICAgICAgIC8qIEtlZXBzIHRy
YWNrIG9mIHRoZSBtZW0gYWxsb2MuICAgICAgICAgICAqLwogICAgICAgcHVi
bGljOgogICAgICAgICAgICAgICAgbm9kZV9kZWYoKTsgICAgICAgIC8qIENv
bnN0cnVjdG9yIGluaXRpYWxpemVzIGFkZHIgYW5kIG1zLiAgICAqLwogICAg
ICAgICB2b2lkICAgVXBkYXRlX3ZhbCh2b2lkKTsgIC8qIEluY3JlYXNlcyB0
aGUgbWVtIHJlc2VydmVkIGF0IHRoZSBub2RlLiAqLwogICAgICAgICB1X2lu
dCAgU2hvd192YWwodm9pZCk7ICAgIC8qIFJldHVybnMgbWVtIHJlc2VydmVk
IGF0IGEgbm9kZS4gICAgICAgICAqLwogICAgICAgICB2b2lkICAgSW5wdXRf
dmFsKGxsX2ludCk7IC8qIEFzc2lnbnMgdGhlIGFkZHJlc3MgdG8gdGhlIG5v
ZGUuICAgICAgICAqLwogICAgICAgICBsbF9pbnQgU2hvd19hZGRyKHZvaWQp
OyAgIC8qIFJldHVybnMgdGhlIGFkZHJlc3MgaGVsZCBpbiB0aGUgbm9kZS4g
ICAqLwogICAgICB9OwoKbm9kZV9kZWY6Om5vZGVfZGVmKCkKICAgICAgewog
ICAgICAgIGFkZHI9MDsgICAgICAgICAgICAgICAgICAgIC8qIEluaXRpYWxp
emluZyB0aGUgYWRkcmVzcy4gICAgICAgICAgICAgICAqLwogICAgICAgIG1z
PTA7ICAgICAgICAgICAgICAgICAgICAgIC8qIEluaXRpYWxpemluZyB0aGUg
bWVtb3J5IHJlc2VydmVkLiAgICAgICAqLwogICA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Agc3JjX25vZGUoKTsgICAgICAgICAv
KiBDb25zdHJ1Y3RvciBpbml0aWFsaXplcyBkaXMgYW5kIGluZGV4LiAgKi8K
ICAgICAgICAgdm9pZCAgRGlzX2luKHVfaW50KTsgICAgICAvKiBVcGRhdGVz
IHRoZSB2YWx1ZSBvZiBkaXMuICAgICAgICAgICAgICAgKi8KICAgICAgICAg
dV9pbnQgRGlzX3Nob3codm9pZCk7ICAgICAvKiBSZXR1cm5zIHRoZSBsZW5n
dGggb2YgdGhlIHNwYXRpYWwgZWRnZS4gKi8KICAgICAgICAgdm9pZCAgSW5k
ZXhfaW4odV9pbnQpOyAgICAvKiBVcGRhdGVzIHRoZSBpbmRleCB2YWx1ZS4g
ICAgICAgICAgICAgICAgKi8KICAgICAgICAgdV9pbnQgSW5kZXhfc2hvdyh2
b2lkKTsgICAvKiBSZXR1cm5zIHRoZSB2YWx1ZSBvZiB0aGUgaW5kZXguICAg
ICAgICAgKi8KICAgICAgIH07CgpzcmNfbm9kZTo6c3JjX25vZGUoKQogICAg
ICAgewogICAgICAgIGRpcz0wOyAgICAgICAgICAgICAgICAgICAgIC8qIElu
aXRpYWxpc2luZy4gICAgICAgICAgICAgICAgICAgICAgICAgICAqLwogICAg
ICAgIGluZGV4PTA7CiAgICAgICB9Cgp2b2lkIHNyY19ub2RlOjpEaXNfaW4o
dV9pbnQgaW4pCiAgICAgICB7CiAgICAgICAgZGlzPWluOyAgICAgICAgICAg
ICAgICAgICAgLyogVXBkYXRpbmcgdGhlIGVkZ2UgZGlzdGFuY2UuICAgICAg
ICAgICAgICovCiAgICAgICB9Cgp1X2ludCBzcmNfbm9kZTo6RGlzX3Nob3co
dm9pZCkKICAgICAgIHsKICAgICAgICByZXR1cm4gZGlzOyAgICAgICAgICAg
ICAgICAvKiBSZXR1cm5pbmcgdGhlIGVkZ2UgZGlzdGFuY2UuICAgICAgICAg
ICAgKi8KICAgICAgIH0KCnZvaWQgc3JjX25vZGU6OkluZGV4X2luKHVfaW50
I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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAA==

--0-1830479162-972968246=:71857--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001031045726.71884.qmail>