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

OCamlWin Interpreter path #3432

Closed
vicuna opened this issue Jan 13, 2005 · 1 comment
Closed

OCamlWin Interpreter path #3432

vicuna opened this issue Jan 13, 2005 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Jan 13, 2005

Original bug ID: 3432
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Wei Wong
Version: 3.08.2
OS: win2000
Submission from: 218.94.65.252 (218.94.65.252)

In file "win32caml/startocaml.c", line 144-150. It seems that the program is
expected to find the interpreter by the key "InterpreterPath" or asking the
user.
If there is no key named "InterpreterPath" in the registry yet, these codes
will work well. But if the key already exists and is set to a wrong value, the
program will show the error message("Incorrect path for ocaml.exe")
repeatedly(without asking the user for a correct interpreter path).
I changed the codes like this:

// ==========================================================
// ...
if ((!ReadRegistry(HKEY_CURRENT_USER,
"Software", "Objective Caml",
"InterpreterPath", path) || path[0] == 0)
&&
(!ReadRegistry(HKEY_LOCAL_MACHINE,
"Software", "Objective Caml",
"InterpreterPath", path) || path[0] == 0)) {
// ...
// ==========================================================

Besides, I'm sorry for my poor English. :P

@vicuna
Copy link
Author

vicuna commented Feb 2, 2005

Comment author: administrator

Fixed XL 2004-02-02

@vicuna vicuna closed this as completed Feb 2, 2005
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant