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

Home » Public Forums » archive » Re: Creating pointer in structure
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: Creating pointer in structure [message #27731 is a reply to message #27729] Thu, 01 November 2001 14:19 Go to previous messageGo to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
JD Smith wrote:
>
> One other case where having true null pointers is useful: when saving
> objects or structures, it's sometimes useful to kull out useless bits
> (like widget states and id's), which aren't really appropriate for
> keeping on disk.

Let's see... A widget ID costs us 4 bytes. To fill up one kilobyte on
your 80 Gb disk, it'll take... wait... 250 widgets. I have never been
able to make even that many. My screen isn't big enough. If I stored a
droplist widget with its value array, 100 characters wide by 1000
entries long (which is crazy by itself), that would take up 100 Kb,
roughly, right?

The time needed to weed out GUI elements before saving seems to be worth
more than the space savings. I just re-fill my restored, useless GUI IDs
with new IDs when I restore older legacy structures, and for the newer
code, I drop GUI altogether for saving, creting it from scratch on
restore by the Restore method.

I can appreciate it though if the reason not to store widget hierarchies
is not so much storage space driven as it contradicts JD's aestetic code
of IDL programming :-)

Cheers,
Pavel
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: gif license
Next Topic: Re: DLM problem when returning an array of structures ...

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

Current Time: Fri Oct 10 03:42:13 PDT 2025

Total time taken to generate the page: 0.00186 seconds