G
Guest
Hi All,
I'm having a problem with a StackOverflowException in a managed class.
The exception is thrown when I attempt to allocate an unmanaged char array
inside the managed class. It appears to be caused by a call to mtinitlocknum
which throws the exception.
I've done some reading and most posts suggest that the problem is caused by
recursion or infinite loops. I've been through most of my code which leads up
to the exception but have not been able to see any functions which may be
using recursion.
I do call some of the Crypt Win32API functions such as CertOpenStore,
CertAddSerializedElementToStore and CryptStringToBinary and have my
suspicions that they may be causing the problem.
I've also been through my code looking for variables that I may not have
released correctly and so far haven't been able to see any.
Does anyone have any idea's as to why I'm receiving this message when trying
to allocate unmanaged pointers? It only seems to happen at the one point in
the code as well, I can declare plenty of unmanaged arrays before the point
where the exception is thrown.
Thanks
John
I'm having a problem with a StackOverflowException in a managed class.
The exception is thrown when I attempt to allocate an unmanaged char array
inside the managed class. It appears to be caused by a call to mtinitlocknum
which throws the exception.
I've done some reading and most posts suggest that the problem is caused by
recursion or infinite loops. I've been through most of my code which leads up
to the exception but have not been able to see any functions which may be
using recursion.
I do call some of the Crypt Win32API functions such as CertOpenStore,
CertAddSerializedElementToStore and CryptStringToBinary and have my
suspicions that they may be causing the problem.
I've also been through my code looking for variables that I may not have
released correctly and so far haven't been able to see any.
Does anyone have any idea's as to why I'm receiving this message when trying
to allocate unmanaged pointers? It only seems to happen at the one point in
the code as well, I can declare plenty of unmanaged arrays before the point
where the exception is thrown.
Thanks
John