Re: Query :- how to run a application from storage card by Naveenkoul
Naveenkoul
Sat Nov 05 00:25:03 CST 2005
hi ,
In case of virtual memory, when i was coding in EVC++ there were some
memory APIs , those were Virtual Alloc, Heap alloc, and local alloc.What i
feel virtual alloc if used was going to take virtual memory in PPC( i may be
wrong also , i am not sure about it).But in .net i have found no such feature
, of allocation.
I have asked this query becoz there was some reason behind asking this query.
I am coding in C# using PPC but wht is happening my application takes alot
of time to run it executes now in 55 minutes, that is wht has annoyed me
alot. and i am not able to develop a proper approach to it. first there was
file reading problem that i have removed now there is lot of looping going in
it. that is were it is taking a lot of time.and if there are already lot of
files in ppc then the time duration increases. wht i thought was the objects
which are being created may reduce the time, that is why i was looking if i
use storage card as a medium were from my application can run and allocate
memory.This thing i want to confirm.
If u can give me any ideas how shld i get timeduration small , i have to
bring it to to around 2 minutes max.
At present my ideas are gone.
waiting for reply.
Regards
Naveen
"r_z_aret@pen_fact.com" wrote:
> On Thu, 3 Nov 2005 22:15:02 -0800, "Naveen koul"
> <Naveenkoul@discussions.microsoft.com> wrote:
>
> >
> >Hello,
> >
> >there is one more thing i want to get cleared, that is , when my application
> >which is in storage card starts executing , and it will start reading files
> >and it allocates certain amont of memory to object that are being
> >created.Will it take the storage card memory to get its objects allocated or
> >it will allocate the pocket pc 's internal memory.
>
> I don't _know_ the answer. But I would be very surprised if the
> storage card is used for such memory in any way; I assume the storage
> card is treated very much like a hard drive on "big" Windows. I'm
> quite sure such memory comes primarily from base memory. I would be
> surprised if CE (and thus Pocket PC) supports virtual memory; if it
> does, then the "disk" space used during paging would almost certainly
> come from base memory.
>
> >
> >Regards
> >
> >Naveen
> >
> >"r_z_aret@pen_fact.com" wrote:
> >
> >> On Sat, 29 Oct 2005 04:12:05 -0700, "Naveen koul"
> >> <Naveenkoul@discussions.microsoft.com> wrote:
> >>
> >> >Sir,
> >> >
> >> >I need your help, i got ur email id from pocketpcdn forums.
> >> >
> >> >Sir i got an application which needs some files while running , can i use
> >> >storage card (SD) as a medium to rum the exe on my ppc. i ahve provided all
> >> >my files inthe storage card.
> >> >
> >> >what will be the path tot the files i should give if i need to run the
> >> >program from storage card.
> >>
> >> If the executable is on the same storage card as the files, then you
> >> can use GetModuleFileName to get the full path of the executable, and
> >> parse that to get paths for the files.
> >>
> >> If the executable is in main storage, but the files are on a card, you
> >> will need to find the card. The main pain is that the name of the root
> >> can vary. For English operating system, the base name can be "Storage
> >> Card", "CF Card" or "SD Card". For other languages, the names will
> >> probably be different. If a card is removed and replaced, the base
> >> name may well be modified by a numbers, as in "Storage Card 1",
> >> "Storage Card 2". So you will need a way to handle all these names
> >> _and_ make sure the card you find is really the card you want. You can
> >> use FindFirstFlashCard and relatives for at least some platforms;
> >> probably all you care about, but definitely not HPC.
> >>
> >> >
> >> >Regards
> >> >
> >> >Naveen
> >>
> >> -----------------------------------------
> >> To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
> >>
> >> Robert E. Zaret, eMVP
> >> PenFact, Inc.
> >> 20 Park Plaza, Suite 478
> >> Boston, MA 02116
> >> www.penfact.com
> >>
>
> -----------------------------------------
> To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
>
> Robert E. Zaret, eMVP
> PenFact, Inc.
> 20 Park Plaza, Suite 478
> Boston, MA 02116
> www.penfact.com
>