Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[OWBugzilla] [Bug 1155] Call calloc() failed when compiled with watcom for win 7 32bit etc.

0 views
Skip to first unread message

bugzill...@www.openwatcom.org

unread,
Sep 24, 2014, 1:52:27 PM9/24/14
to openwatco...@openwatcom.org
http://bugzilla.openwatcom.org/show_bug.cgi?id=1155





------- Comment #1 from bro...@physik.rwth-aachen.de 2014-09-24 10:52 PST8PDT -------
(In reply to comment #0)

> long cells = 22000896;
> p = (double*)calloc((unsigned)cells, sizeof(double));

That's a 167 MiB chunk of memory you're allocating. Are you sure your DOS
extender (and underlying DOS) supports memory sizes like that?


--
Configure bugmail: http://bugzilla.openwatcom.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

bugzill...@www.openwatcom.org

unread,
Sep 25, 2014, 4:09:55 AM9/25/14
to openwatco...@openwatcom.org
http://bugzilla.openwatcom.org/show_bug.cgi?id=1155





------- Comment #2 from 881...@qq.com 2014-09-25 01:09 PST8PDT -------
(In reply to comment #1)
> (In reply to comment #0)
>
> > long cells = 22000896;
> > p = (double*)calloc((unsigned)cells, sizeof(double));
>
> That's a 167 MiB chunk of memory you're allocating. Are you sure your DOS
> extender (and underlying DOS) supports memory sizes like that?
>

The same allocate is successful in windows XP, but failed in Win 7 32Bit and
win server 2003, I'm not sure what's the different. I'm using 'cmd' command to
run this application. In my mind, If XP is OK, then the Win 7 32 bit should be
OK.

bugzill...@www.openwatcom.org

unread,
Sep 28, 2014, 10:49:13 PM9/28/14
to openwatco...@openwatcom.org
http://bugzilla.openwatcom.org/show_bug.cgi?id=1155





------- Comment #3 from 881...@qq.com 2014-09-28 19:49 PST8PDT -------
I think it shouldn't be a defect, the limit of DMPI caused this issue. You can
modified the dpmi limit to resolve this issue.
0 new messages