Hello,
I'm working with a C program that was ported with the MKS Toolkit/NutCracker. At one point, it uses the "dlopen()" command to load a Windows DLL. This normally works, but I have found a DLL where, when I pass it to this dlopen() command, I am given the error "Not enough storage is available to process this command."
I suspect this is a problem with the DLL, and not with my program. My question is, what might I try to get around this? The DLL is fairly sizeable (18 MB), and contains some static variables. Would increasing the DLL heap size work? I'm new to all this, and I've read on some sites that the DLL heap stores local variable information and is limited to 64K, while other sites seem to indicate that the heap will grow in size as it needs to, and that allocating a specific size during the DLL compilation doesn't have much effect.
Thanks for any insights you might be able to offer. Let me know if this would fit in a better forum.
Brent
I'm working with a C program that was ported with the MKS Toolkit/NutCracker. At one point, it uses the "dlopen()" command to load a Windows DLL. This normally works, but I have found a DLL where, when I pass it to this dlopen() command, I am given the error "Not enough storage is available to process this command."
I suspect this is a problem with the DLL, and not with my program. My question is, what might I try to get around this? The DLL is fairly sizeable (18 MB), and contains some static variables. Would increasing the DLL heap size work? I'm new to all this, and I've read on some sites that the DLL heap stores local variable information and is limited to 64K, while other sites seem to indicate that the heap will grow in size as it needs to, and that allocating a specific size during the DLL compilation doesn't have much effect.
Thanks for any insights you might be able to offer. Let me know if this would fit in a better forum.
Brent