Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error - Could not allocate global memory
Message
 
À
19/04/1997 14:55:56
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00028981
Message ID:
00028987
Vues:
39
>>The User is getting RANDOMLY the error Could Not Allocate Global Memory error message when the program is trying to register a windows API function.
>>The line of code generating the error is fnApi = RegFn("GETPROFILESTRING", "CCC@CI", "I").
>>The error is documented by MS as coming from API _UserError(), which I don't know much about.
>>The environment: Win95 network (2 stations)
>>MEMLIMIT in config.fpw: 80%, 1024, 4096
>>I would appreciate any more specific information on what is generating the error and any potential workaround.
>>TIA
>>Sorin
>
>GETPROFILESTRING is an Win32API function. Declare it with "DECLARE DLL" not with RegFn from FoxTools. DECLARE is much more reliable and you won't have problems you might have with FoxTools. As far as I know (maybe wrong), FoxTools doesn't work with 32 bit DLLs.
>
>Vlad

The App/EXE is generated in FPW26 that does not provide a DECLARE DLL feature so I'm restricted to using FOXTOOLS' RegFn().
The error occurs only on Win95 networks (File and printer sharing) which may take to many resources for the application to work properly, although both stations are Pentiums 133Mhz with 32Mb RAM each.
I hate to admit that this is the answer to the problem and I wonder if you have any other ideas.
Thanks
Sorin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform