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

Home » Public Forums » archive » Re: IDL routine for compress raster-8 image? (lossless)
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: IDL routine for compress raster-8 image? (lossless) [message #3503] Tue, 07 February 1995 13:52 Go to previous message
robijn is currently offline  robijn
Messages: 18
Registered: June 1994
Junior Member
In article <3h7n0hINNi60@uts.ipp-garching.mpg.de>,
Karl Krieger <kak@ipp-garching.mpg.de> wrote:
> robijn@Strw.LeidenUniv.NL (Frank Robijn) writes:
>
>> In article <D3Kxxp.LI2@ireq.hydro.qc.ca>,
>> Gilles Ratel 8720 <ratel@ireq-ccfm.hydro.qc.ca> wrote:
>>> [...]
>>> I have a code in C langage, but is not possible use CALL_EXTERNAL
>>> because maximum data with DLL is 64 kB.
>>> [...]
>
>> Really? I don't have a PC version at hand, but I can't image why you can't
>> address >64K of data.
>
> Unfortunately, IDL for Windows only supports 16bit DLL's. Therefore, your
> address space for exchanging a single chunk of data is limited to
> a 64kB block. Inside your DLL you can of course allocate much larger
> arrays using FAR or HUGE memory models.
>
> It would be a good question to RSI's development team if support of
> 32bit DLL's is planned for Windoze95. Or, even better, IDL for OS/2.
>

Ok, I tried it at home. Indeed, you can only pass 64K of data. That is not
a Windows problem, but more likely a shortcoming of IDL. Apparently IDL
uses its own memory management routines, not Windows's GlobalAlloc.
Of course, each data chunk is still limited to 64K, but since the
processor is running in enhanced mode that fact is hidden by the use
of selectors. I agree that a 32-bit version would probably be more
efficient. Why not use win32s with Windows 3.1?

To return to the problem of the original posting: you can consider
passing the bitmap in two pieces and creating a complete copy in the DLL.
You should use huge pointers to address pixels in the bitmap, but
at least you can use the existing code.

Frank
--
_____ ____
/ / / Frank Robijn URL: http://WWW.Strw.LeidenUniv.NL/~robijn/
/___ /___/ Sterrewacht Leiden Internet: Robijn@Strw.LeidenUniv.NL
/ / \ Phone (31) 71 275841 Bitnet: Robijn@HLERUL51
/ / \ Fax : (31) 71 275819 Local: Robijn@HL628
Snail: P.O.Box 9513, 2300 RA Leiden, The Netherlands
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: IDL: CALL_EXTERNAL under Solaris 2.3
Next Topic: Bug in NR_QROMB?

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

Current Time: Sat Oct 11 04:20:35 PDT 2025

Total time taken to generate the page: 0.56343 seconds