Pocket Pc Re:Application on storage card giving problem - Pocket PC Forums

 
  • Increase font size
  • Default font size
  • Decrease font size
Pocket PC Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Application on storage card giving problem (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Application on storage card giving problem
#2384
Pariksheet (User)
PPC Senior
Posts: 60
graphgraph
User Offline Click here to see the profile of this user
Application on storage card giving problem 1 Year ago Karma: 0  
Hi All,

I have one windows mobile application and one service.
Service is loading some dlls from my application.
I installed application on storage card. Start the service.
Now, I removed storage card, service is works fine, even if it loads dlls from my application which is on storage card.
After, I insert storage card again.
And in my application try to load same dll which is loaded by service.
Then LoadLibrary() give me an error 193(Is not a valid application, ERROR_BAD_EXE_FORMAT).
If i stop service and again load same dll, then it works fine.

What is the problem in this case.
Anyone have idea about it, then please help me.

Regards,
Pariksheet.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2398
Carty (Admin)
Admin
Posts: 1130
graph
User Online Now Click here to see the profile of this user
Re:Application on storage card giving problem 1 Year ago Karma: 20  
When an application is loaded, the dll files are loaded to memory (RAM) and called from there. So, even when you have the .dll files in Storage card, when the application is loaded, the dll is cached to the RAM for use until the application is open.

When you remove the Storage card, the dll is still loaded to the RAM but the application will be terminated abruptly. So next time you try starting the application, the dll is already there in the RAM since it was not unloaded or closed properly.

So it is not advised to remove Storage card without proper termination of the application.

Regards,
Carty..
 
Report to moderator   Logged Logged  
 
Check out the new Windows Mobile App Store. And also our sister site PcXplore.com
  The administrator has disabled public write access.
#2407
Pariksheet (User)
PPC Senior
Posts: 60
graphgraph
User Offline Click here to see the profile of this user
Re:Application on storage card giving problem 12 Months ago Karma: 0  
Ok.
Thanks for reply.
It is really helpful to me.
To solve my problem, i have unload dlls when card is removed. And when card is inserted, again load dlls.

Regards,
Pariksheet.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop

Advertisements

auto blogging software
desktop wallpapers
reverse phone lookup