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

Click here to load this message in the networking platform