Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error - Could not allocate global memory
Message
From
19/04/1997 14:55:56
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00028981
Message ID:
00028985
Views:
33
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform