Quick question: what is the maximum size of an unmanaged object that C# can handle? I think I may have found my way around my 64-bit array problem, by making calls to a C++ dll, but I’d like to make sure.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s limited, in the end, by
VirtualAlloc, and it depends how you use the memory, and which OS you’re running. Accessing it via C#/.NET doesn’t really change this. The Windows Internals book has a Testlimit[64] application which explores these limits. Read the linked post and try out the application for a complete answer.