sjchin Posted March 31, 2003 Posted March 31, 2003 RE:Dll Return Error while post on other form!!Pls Help I have make an dll using user control for my project. While i pass to other colleague, sometime the project will appear eror message "Object Reference Not Set to an Instance of An Object", may i know why it appear this error? While i open new project in my own pc(which using for develop dll), it working fine, if my colleague open new project, it won't return error. May i know what this problem is? Quote
*Gurus* divil Posted March 31, 2003 *Gurus* Posted March 31, 2003 It means there's an error in your code. If you put exception handling in, you could show a messagebox including a stack trace which will show the line number it's occuring on. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
AndreRyan Posted April 1, 2003 Posted April 1, 2003 Sounds like you haven't been RegSvr32 ing the control on the other computers, You have to register the ActiveX files before they can be used. RegSvr32 "C:\MyDLL\MyActiveXDLL.dll" RegSvr32 "C:\MyDLL\MyActiveXOCX.ocx" You could create a deployment package for the DLL/OCX so that it is registered during an install Quote .Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
*Gurus* divil Posted April 1, 2003 *Gurus* Posted April 1, 2003 AndreRyan, .NET doesn't make ActiveX Dlls. If he's made a dll with a user control in, it'll be a .NET assembly. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.