N
Niall
I have an unmanaged C++ ray tracer which I am working to put a C# front end
on. It runs fine as just the unmanaged code. I have made a MC++ wrapper DLL
to expose the required types to the C# project. Things seem to be getting
through from the unmaged side to the managed side - the image is being
rendered correctly. However, at random points, calls to new are returning
null. Hence, when the managed type gets destroyed and calls delete on its
pointer for the encapsulated unmanaged type, there is an exception.
This really confuses me, I've never seen new return null before. The machine
isn't out of memory, there's hundreds of megs left. Does anyone have any
ideas what could be causing this behaviour?
Niall
on. It runs fine as just the unmanaged code. I have made a MC++ wrapper DLL
to expose the required types to the C# project. Things seem to be getting
through from the unmaged side to the managed side - the image is being
rendered correctly. However, at random points, calls to new are returning
null. Hence, when the managed type gets destroyed and calls delete on its
pointer for the encapsulated unmanaged type, there is an exception.
This really confuses me, I've never seen new return null before. The machine
isn't out of memory, there's hundreds of megs left. Does anyone have any
ideas what could be causing this behaviour?
Niall