|
|
|
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.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
Carty (Admin)
Admin
Posts: 1130
|
|
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..
|
|
|
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
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.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|