Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Posted

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

.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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...