|
From my code you can see.I only Create and Populate the Userspace for the #FIRST record.
•Subject: Re: C program for QDFRTVFD API
•From: Jevgeni Astanovski <jevgeniast@xxxxxxxxx>
•Date: Thu, 18 Sep 2014 10:16:46 +0300
Frank,
After careful examining of your DISPINFOC1 program I should say that
probably you misunderstood the idea of using user space.
Currently your program is not simply inefficient, but it is
"dangerously" inefficient in case you apply it to display files having
really big number of fields.
...
So after the first call (give me first) you fill the user space by a
number of FieldData_t structures (for all fields). And put the 2
integers in the beginning appropriately. Then you send out the first
structure and increment the pointer to the first unsent structure.
When you get "give me next" call, you do not call QDFRTVFD any more!
You rather get the user space and send away the first unsent structure
and increment the pointer. If the pointer to the next reached the end,
you inform the caller about that with the last structure.
This is one of the possible solutions using user space.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.