Skip to content

Fix type mismatch in NetComDomain.ObjectFromPointer - #107

Merged
josef-poetzl merged 1 commit into
devfrom
bugfix/netcomdomain-object-from-pointer
Nov 29, 2026
Merged

josef-poetzl merged 1 commit into
devfrom
bugfix/netcomdomain-object-from-pointer

Conversation

@josef-poetzl

Copy link
Copy Markdown
Member

The ACLib update in #105 changed NetComDomain.ObjectFromPointer to declare the temporary variable As stdole.IUnknown. Assigning it to an Object then calls QueryInterface(IDispatch), which the default AppDomain rejects: loading AccUnit fails with error 13 (type mismatch).

  • Restore Dim Unknown As Object (plain AddRef, no QueryInterface) with a comment why
  • Remove the stdole reference from the <codelib> block again (only needed for that change)

Tested in builds from the source (visible Access, copy in C:\Test): with the fix AccUnitLoaderFactory.Assert is created; without it, loading AccUnit fails.

Note: the fix has to be exported back to the CodeLib.

@josef-poetzl
josef-poetzl merged commit f53e549 into dev Nov 29, 2026
1 check passed
@josef-poetzl
josef-poetzl deleted the bugfix/netcomdomain-object-from-pointer branch November 29, 2026 21:48
@josef-poetzl josef-poetzl mentioned this pull request Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant