Error in reg dll

G

Girish

Hello.

I am not able to register DLL generated from py2exe

I have written following code to generate the DLL:

##################################################################################
from distutils.core import setup
import py2exe
import sys

# If run without args, build executables, in quiet mode.
if len(sys.argv) == 1:
sys.argv.append("py2exe")
sys.argv.append("-q")

class Target:
def __init__(self, **kw):
self.__dict__.update(kw)
# for the versioninfo resources
self.version = "2.8.9"
self.name = "DSPACE API"

# a COM server dll, modules is required
#

interp = Target(
description = "COM server module",
modules = ["Dspace"],
create_exe = True,
)

excludes = ["pywin", "pywin.debugger", "pywin.debugger.dbgcon",
"pywin.dialogs", "pywin.dialogs.list"]

options = {
"bundle_files": 1,
"ascii": 1, # to make a smaller executable, don't include the
encodings
"compressed": 1, # compress the library archive
"excludes": excludes, # COM stuff we don't want
}

setup(
options = {"py2exe": options},
zipfile = None, # append zip-archive to the executable.
com_server = [interp],
)

#######################################END########################################

When I try to register the dll using the commant: regsve32 dspace.dll,
I am getting error saying :"DLLRegisterServer in dspace.dll failed.
Return code was: 0xc0000005"

Please help me to solve this issue.

Thanks,
Girish...
 
G

Gabriel Genellina

I am not able to register DLL generated from py2exe
When I try to register the dll using the commant: regsve32 dspace.dll,
I am getting error saying :"DLLRegisterServer in dspace.dll failed.
Return code was: 0xc0000005"

I don't think the problem is in your setup.py, but on Dspace.py or any
module it uses. 0xc0000005 is an Access Violation - an attempt to
read/write memory at an illegal address.
Try removing pieces from Dspace.py until you find the culprit.
 
G

Girish

Hi,

somehow I fixed the issue related to error code 0xc0000005. Now I am
getting a different error code while registering DLL.. it says:
"DllRegisrerServer in Dspacvce.dll Failed. Reyurn Code was:
0x80040201"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top