comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@nospam.please>
Subject: Possible heap problem on Windows, help sought
Date: Wed, 29 Nov 2006 13:43:46 +0200
Date: 2006-11-29T13:43:46+02:00	[thread overview]
Message-ID: <456d72b1$0$31519$39db0f71@news.song.fi> (raw)

Hi all,

I'm using Gnat 3.15p (why change if it works ;-) on both MS Windows XP 
and Linux (Debian) and having some problems on the Windows platform that 
I suspect may be due to lack of heap space in my application. I'm not 
experienced with Windows programming so I may be omitting something obvious.

My compiled Ada application runs fine on Linux both for large and small 
jobs. On Windows it works for small jobs but stops in the middle for 
larger ones, with no error or exception message. Here "large" means 
about 250 - 300 MB of heap. I have some catch-all exception handlers at 
various levels of the software that should report exceptions using 
Text_IO, but nothing appears.

The funny thing is that if I run the application under gdb on Windows it 
works for large jobs too.

I've tried to link the application with larger heap space using the 
advice in the GNAT User Guide, for example

    gnatlink -g -v appname -Wl,--heap=0x18000000,--stack=0x1300000

but this did not help; the symptoms are the same. I'd be grateful for 
any help.

-- 
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
       .      @       .



             reply	other threads:[~2006-11-29 11:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-29 11:43 Niklas Holsti [this message]
2006-11-29 11:54 ` Possible heap problem on Windows, help sought Duncan Sands
2006-11-29 13:42   ` Niklas Holsti
2006-11-29 14:06 ` Niklas Holsti
2006-11-29 14:20   ` Duncan Sands
2006-11-29 15:04     ` Alex R. Mosteo
2006-11-29 16:40       ` Niklas Holsti
2006-11-29 17:23         ` Ludovic Brenta
2006-11-29 17:53           ` Niklas Holsti
2006-11-29 18:00             ` Ludovic Brenta
2006-12-01  1:05             ` Randy Brukardt
     [not found] ` <mailman.32.1164869912.4389.comp.lang.ada@ada-france.org>
2006-11-30 20:48   ` Niklas Holsti
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox