PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

PPC 2002 16MB App Memory limitation...Can't Load dll's!

Anyone else encounter this problem? Usually, only large app's will have this problem, trying to run on PPC 2002 machines. I have iPAQ 400Mhz/64MB brand new w/bluetooth.

My app runs fine on HPC 2000 machines w/64MB, but when launched on PPC 2002 iPAQ, there's dll load errors!

I've read the 8 page article by Douglas Boling, (do a search in msdn for Advanced Memory Management), which details the problem...but has anyone found a solution?

Like, has anyone found a way to pre-load the dll's elsewhere in memory (other than the current app's memory), yet be able to access the dll's from your app automatically when needed?

Is there perhaps any 3rd party software co's with a solution? Help needed ASAP! Thanks!

P.S. I'm using eVB 3.0 with the PPC 2002 SDK
Notes: Runs fine in emulator, just won't run on platform. Has 100+ forms, over 60 modules, uses ADOCE...tried to diminish memory (variable usage), take out some forms (modules must be there), but, even if I have just 3 forms, plus the modules, plus significantly reduced variables, still encounter dll load problems.
If you're loading some of your own DLLs in, try placing all of the code into one DLL (or less DLLs). That way you fragment your 32MB virtual memory block less.
Thanks for the reply.

Actually, the article makes 3 suggestions to try to solve the problem:
1) Combining dll's. This is not possible for my app, since all the dll's I'm trying to load are Microsoft dll's:
MSCEComm
MSCEComDlg
MSCEGrid
MSCEFile
MSCEMenubar
MSCEImagelist
+ the required dll's for using ADOCE 3.1 (there's 12 of them, that per the Help topics, are needed to run ADOCE 3.1):
Adoce31
Adocedb31
Adoceoledb31
Adosync
Fileosp
Msdadc
Msdaer
Msdaeren
Msdaosp
Adoxce31
Adosyncstub
Adocedb30
2) Make the dll's part of your app. Again, can't be done since I don't have the source code, and my app is in eVB anyway.
3) Change the load order of the dll's. I've tried every possible combination, loading the dll's as suggested from smallest to largest using LoadLibrary at the start of the app...still doesn't work.

I think that most who are facing this problem have a very large dll (self coded), and probably a relatively small app. In my case, I'm just trying to use the dll's supplied by MS for an eVB app, but I have a very large APP instead.
Try resetting the device and trying again. It seems that even DLLs that your process doesn't use are mapped into your virtual memory area if other applications use them.

Otherwise, you're probably left looking at the interprocess communication option he mentions; loading that many DLLs, I doubt it'd be much more effective. :(

Do you really need all of those DLLs at the same time, or could you do hit-and-run loading? (i.e. only loadlibrary the imagelist DLL when there's an active imagelist, and destroy it when it closes).

With that amount to be loaded in, as the guys says in the article - you're going to have to "improvise".