Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

16bit dependencies #1321

Open
tixdev opened this issue Oct 2, 2023 · 9 comments
Open

16bit dependencies #1321

tixdev opened this issue Oct 2, 2023 · 9 comments

Comments

@tixdev
Copy link

tixdev commented Oct 2, 2023

I'm running a 16-bit application with otvm, however, there's an issue when the application try to invoke odbc.dll library that is compiled in 16-bit.

As otvdm converts instructions from 16 to 32 bits, it attempts to access the library in an 'illegal' manner, causing error.

There's a possibility to exclude certain calls to this DLL from the conversion process?

@cracyc
Copy link
Contributor

cracyc commented Oct 2, 2023

There are other programs which have no problem using odbc. More detail about the problem and preferably a trace are needed.

@tixdev
Copy link
Author

tixdev commented Oct 2, 2023

Some odbc calls after added some file to the windows or dll dir now works, but other operations with odbc not, here a complete session until will got error, maybe i'm using an invalid files structure.

image image

Logfile.CSV

@cracyc
Copy link
Contributor

cracyc commented Oct 2, 2023

Really need a wine trace. See #226 (comment)

@tixdev
Copy link
Author

tixdev commented Oct 3, 2023

Ok sorry :)

trace.txt

@cracyc
Copy link
Contributor

cracyc commented Oct 3, 2023

The trace shows a different error, "0084:Call USER.430: LSTRCMP(295f123e "dbWeb Administrator Error Handler",139f1a56 "Error IM002: ODBC data source not found") ret=165f:00f5 ds=1207". Do you have the connection string set in the odbc admin control panel?

@tixdev
Copy link
Author

tixdev commented Oct 3, 2023

Yes, I created the entries with ODBC Administrator (32-bit) in the System DSN section. Subsequently, I copied the odbc.ini file to the otvm/windows directory; otherwise, the application wouldn't recognize them. By doing this, the application can now list the sources. However, I encounter an exception when trying to add data to a source. Looking at the file, my suspicion is that it refers to a 32-bit driver, or, it could be searching for a non-existent file or that some other files are missing, but i can't find in trace.

image image

@cracyc
Copy link
Contributor

cracyc commented Oct 3, 2023

A trace that has the error in the image is whats needed. Since the last trace had the wrong error it doesn't help debugging.

@tixdev
Copy link
Author

tixdev commented Oct 4, 2023

I recreated the trace file with the scenario mentioned above.

trace.txt

@cracyc
Copy link
Contributor

cracyc commented Oct 4, 2023

Try pointing the dsn at the version of odbcjt32.dll that comes with dbweb rather than with windows. The version that comes with windows 11 is missing some functions that the 16bit odbc library uses.

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

No branches or pull requests

2 participants