comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Allocating memory in LINKIMAGE program
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: allocating memory [message #56351 is a reply to message #20680] Thu, 18 October 2007 08:41 Go to previous messageGo to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
krastoboy@gmail.com wrote:
> I've the same problem!
> I'm working with an image of 1.8 G. on a machine with 4GB of memory.
> I've tried to use an half of the image but the problem still remains.
>
> Any suggestion?
>
> Thanks
> Lo

Hi,
You can use the procedure memtest from ITTVIS in order to find out the
size of the biggest array you could create.

Now, with windows, you can only have up to 2Gb of memory for any
process... even if your computer has 42 Gb available!. There is a way to
allocate up to 3 Gb, but this solution might make your system instable
(I use it quite often here, and I never had any issue).
You have to do 2 things: in your windows startup file (boot.ini), add
the option /3gb ... I suggest you not to modify the curent entry, but
to add a new one so if your system doesn't like it, it is easy to use
the normal configuration. Your entry should look somewhat like this:
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP
Professional 3G" /noexecute=optin /fastdetect /3GB

Restart your computer in the 3Gb mode.

Now you also have to modify the Idl executable... I did it with v6.2 and
v6.3 and it works perfectly. Again, make a copy of it, so you can choose
to launch IDL with up to 3gb of memory or with up to 2gb.
So, using visual studio (the free version from Microsoft works well),
you need to specify /LARGEADDRESSAWARE to the IDL executable (google
it, I don't remember what to do). Now run this new exe, and run memtest
again... you should see a big difference!

Personally, each time I need a lot of memory, I do it under Linux as
there is no silly memory limitations!

Jean
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using IDL from a perl script
Next Topic: Lonlat2reg.pro vs. Grid program

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:09:27 PDT 2025

Total time taken to generate the page: 0.00392 seconds