Eric,
I must confess to a bit of confusion because some of the material I read 
suggests to me that a mapped file would allow me to handle much larger data 
than I could with a simple variable without hitting the out of memory error.  
I'm reading data from an ODBC source and dumping to an Excel file and was 
hoping to dump the ODBC data into a mapped file and then in a different part of 
my program dump that to Excel (handling in chunks if need).  So if I understand 
you correctly I'm going to have to handle the whole thing in chucks.  I was 
just trying to maintain the compartmentalized sections of my code.

Thanks for the feedback,
Ed

________________________________________
From: [email protected] [[email protected]] On 
Behalf Of Eric Iverson [[email protected]]
Sent: Wednesday, December 22, 2010 4:02 PM
To: Programming forum
Subject: Re: [Jprogramming] Passing mapped files as output of verb

I am not responding to the details of your message as I have not read it
carefully enough. However, I want to point out that a mapped file takes the
same space in your address space as a noun with the same data. Unless you
are mapping and unmapping, mapped files don't avoid 'out of memory' errors.
Depending on your host and configuration it may be that you can solve your
problem by increasing the size of your paging file.

On Wed, Dec 22, 2010 at 3:09 PM, Cox, Ed <[email protected]> wrote:

> I am trying to extend an existing function (for compatibility with a lot of
> code) so that when the data to be passed as output is beyond a certain size
> limit (to avoid "out of memory" errors) that it will create a mapped file
> and pass that as the output.  I had assumed this would work since passing
> mapped files as arguments to a verb works.  I assumed that if I assigned the
> output of the verb to a variable (noun) that it would then also be pointing
> to the mapped file.  When I tried this it does not appear to work - the
> variable assigned the value has no affect on the mapped file if it is given
> a new value, and the output of showmap_jmf_ does not list it.
>
> Is there any way to make this work?  Having to rewrite all my code to not
> obtain values via the output of verbs would really be a pain at this point.
>
> Thanks in advance,
> Ed Cox
>
> _________________________________________________
>
> This message is for the designated recipient only and may contain
> privileged, proprietary
> or otherwise private information. If you have received it in error, please
> notify the sender
> immediately and delete the original. Any other use of the email by you is
> prohibited.
>
> Dansk - Deutsch - Espanol - Francais - Italiano - Japanese - Nederlands -
> Norsk - Portuguese
> Svenska: www.carefusion.com/legal/email
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

_________________________________________________

This message is for the designated recipient only and may contain privileged, 
proprietary
or otherwise private information. If you have received it in error, please 
notify the sender
immediately and delete the original. Any other use of the email by you is 
prohibited.

Dansk - Deutsch - Espanol - Francais - Italiano - Japanese - Nederlands - Norsk 
- Portuguese
Svenska: www.carefusion.com/legal/email

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to