|
From: Don-Duong Q. <dj...@ya...> - 2002-09-29 18:06:27
|
This is indirectly related to CsGL. I'll be using it to build an editor for my engine later. I'm hoping someone can help me shed some light on a problem I'm having. I've built my engine using C++ and exported it as dll libraries in VC++ 6. I've gotten some C4251 warnings about not exporting standard libary, base classes, but they don't seem to be a problem. I have a C++ class called gb::io::BinaryStream that I wrapped up in a managed C++ called gb::cs::io::BinaryStream. gb::io::BinaryStream derives from std::basic_fstream< char > for file manipulation. During my C# test app's construction, I have a variable of type gb::cs::io::BinaryStream that gets instantiated. However when I call gb::cs::io::BinaryStream.Open function (which delegates to gb::io::BinaryStream.Open) I get: An unhandled exception of type 'System.NullReferenceException' occurred in gbio_cs.dll Additional information: Object reference not set to an instance of an object. However, if I call gb::io::Close() no exception occurs. I also can't step into the dll for debugging, but if I link with static versions of my libraries everything works fine. Has anyone experienced this? Thanks, Don --------------------------------- Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! |