Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

UnboundLocalError: local variable 'success' referenced before assignment #10

Copy link
Copy link
@gokurosaki

Description

@gokurosaki
Issue body actions

I'm trying to run a DLL that I wrote in Visual Studio for windows through memory but am running into this error when I try to initialize it. I am running Python 3.10.11, I followed the readme's example to set up a basic test but am running into this issue. Any Ideas?

After resolving many imports it reaches this point 
...

DEBUG: Executing TLS.
DEBUG: no TLS address found
DEBUG: Starting new thread to execute PE
DEBUG: Checking for entry point.
DEBUG: Calling dll entrypoint 0x18006f0ff with DLL_PROCESS_ATTACH
exception: access violation writing 0x000000018006F0FF
Exception in thread Thread-1 (execPE):
Traceback (most recent call last):
  File "C:\Program Files\Python310\lib\threading.py", line 1016, in _bootstrap_inner
Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\PythonMemoryModule\s.py", line 833, in <module>
    main()
  File "C:\Users\Administrator\Desktop\PythonMemoryModule\s.py", line 807, in main
    startDll(w,h)
OSError: exception: access violation writing 0x000000018006F8B1
    self.run()
  File "C:\Program Files\Python310\lib\threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Administrator\Desktop\PythonMemoryModule\pythonmemorymodule\__init__.py", line 556, in execPE
    if not bool(success):
UnboundLocalError: local variable 'success' referenced before assignment```



Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.