|
Hi,
I have a file with huge size say 2 Gig, i need to read and put it over my GUI. I feel that its costly operation and it will kill my application. Would like to apply Lazy Loading approach to read data and place it over.
Can you some one provide me an example that shows how it is being achived here C#?
|
|
|
|
|
Lazy initialisation is not going to help, you need to write code that maps your 2 gig file and searchs it without loading it at *all*, unless you're sure you're going to have the memory free to hold it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I dont get you... with out loading it how can show it on GUI ?
If i do like this
1. Read chunk of data like 10 Meg per chunk
2. Place only on chunk on GUI and memory map
3. When ever we goes back and forth we can bring it from physical memory ?
Will this alogirithm work out ? Any example like this?
|
|
|
|
|
You can't show 2 gig of data in your UI, no matter how you look at it.
Yes, if you read it a bit at a time, that's probably a viable approach. My point is that lazy loading means to load an object as you need it. I suspect you meant more what I was suggesting, that you load it a bit at a time, right ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Yes you are right, as well sorry if i have confused you.
Idea behid is reading bit of data and kept it as object and load into GUI. When we scrolls back and forth data model need to be get updataed.
Or
By using any Caching approach (Microsoft Patternts Library for Caching) can i have whole 2 gig of data into memory and load from it with out reading from physical file? Im working under 32-bit memory env hence it may support max. 2Gig size of data.
Any hopes ?
|
|
|
|
|
Hi,
I need Help in Understanding the mechanism of operator overloading in C#.Net.
I have just start C#.
Regards,
Salman Khursheed Bhatti
|
|
|
|
|
hi
google[^] knows (almost) everything
greets
M@u
|
|
|
|
|
Hi, Buddy, Thanx 4 the Info.....
Regards,
Salman Khursheed Bhatti
|
|
|
|
|
Try google..
Koushik
|
|
|
|
|
Hi,
I have studied some topics from google.
But now my requirement is to overload all the unary,binary and ternary operators.
Regards,
Salman Khursheed Bhatti
|
|
|
|
|
|
Thanx Bro...
I have jus find my solution...
Once again Thanks...
Regards,
Salman Khursheed Bhatti
|
|
|
|
|
hi freind i need help. i m developing an application and i declare a class and i need the array of the object o that particular class how can i declare it
wasim khan
|
|
|
|
|
List<yourclass> CollectionOfYourClassObjects = new List<yourclass>();
Should do it for you.
--
Cheers,
Gary
http://www.garyshort.org
|
|
|
|
|
You need to check 'Ignore HTML tags in this message (good for code snippets)' if you want to use < or > in your posts.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks Christian!
--
Cheers,
Gary
http://www.garyshort.org
|
|
|
|
|
*grin* no problem.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Grr bloody formating...
I'll try again...
List<YourClass> CollectionOfYourClassObjects = new List<YourClass>();
--
Cheers,
Gary
http://www.garyshort.org
|
|
|
|
|
You would do better to use a List, as you can add and remove items from it. List<myClass> Otherwise, you would do myClass[] coll = new myClass[10] ( for example, to create an array of 10 items ).
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
use this logic:
ClassName[] obj = null;
obj = new ClassName[size];
|
|
|
|
|
hi,
i have found many of ur articles very helping but i have to make a project on a keylogger in c# that should show the details of the current user including his login/logoff details, screen saver on/off details, application opening and closing details etc. plz reply me as soon as possible with ur helpful assistance.
thank u
|
|
|
|
|
I can't think of any non malicious use for the software you want to write
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Why on earth do you think you'll get help here on an issue that, at first second and third glance, seems to be a malevolent purpose. I can't think of many legitimate uses that you could put keylogging to. Check the site - it's codeproject.com not hackerzrus.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
how to create custom format validation ?
I want to know about the any converter which can convert validation in to regular expression
|
|
|
|
|
What do you mean ? There are regular expression validators. Are you talking about ASP.NET ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|