comp.lang.ada
 help / color / mirror / Atom feed
* Possible heap problem on Windows, help sought
@ 2006-11-29 11:43 Niklas Holsti
  2006-11-29 11:54 ` Duncan Sands
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Niklas Holsti @ 2006-11-29 11:43 UTC (permalink / 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
       .      @       .



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-12-01  1:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-29 11:43 Possible heap problem on Windows, help sought Niklas Holsti
2006-11-29 11:54 ` 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

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