1. eubins - change causing machine func errors
- Posted by ChrisB (moderator) Nov 03, 2010
- 1403 views
Hi
Windows xp
eubin eu-r3523.zip works ok
eubins-mingw32-3598M-20101026.zip and all subsequent eubins produce the error
Error specifics :
C:\EUPHORIA\eusqlite\eusqlite3.ew:319 in function sqlite_open() A machine-level exception occurred during execution of this statement filename = {101'e',109'm',112'p',108'l',111'o',121'y',101'e',101'e',115's', 46'.',115's',113'q',108'l'} mode = 0 filename_addr = 34431224 err_no = <no value> db = <no value> db_addr = 21988168 message_addr (from inlined routine 'sqlite_errmsg' at 45) = <no value> message (from inlined routine 'sqlite_errmsg' at 45) = <no value>etc
I have tested all the eubins with mingw32 in the file name, so I can only assume that there has been a change in the compiler that has caused this.
Note - sqlite3 uses the misc.e include file in order to retain eu3 compatability - don't know if this is an issue or not.
Chris
2. Re: eubins - change causing machine func errors
- Posted by jimcbrown (admin) Nov 03, 2010
- 1356 views
Hi
Windows xp
eubin eu-r3523.zip works ok
eubins-mingw32-3598M-20101026.zip and all subsequent eubins produce the error
Error specifics :
C:\EUPHORIA\eusqlite\eusqlite3.ew:319 in function sqlite_open() A machine-level exception occurred during execution of this statement filename = {101'e',109'm',112'p',108'l',111'o',121'y',101'e',101'e',115's', 46'.',115's',113'q',108'l'} mode = 0 filename_addr = 34431224 err_no = <no value> db = <no value> db_addr = 21988168 message_addr (from inlined routine 'sqlite_errmsg' at 45) = <no value> message (from inlined routine 'sqlite_errmsg' at 45) = <no value>etc
I have tested all the eubins with mingw32 in the file name, so I can only assume that there has been a change in the compiler that has caused this.
Note - sqlite3 uses the misc.e include file in order to retain eu3 compatability - don't know if this is an issue or not.
Chris
misc.e shouldn't have anything to do with it. Which machine_func() is the crash occuring in?
3. Re: eubins - change causing machine func errors
- Posted by jimcbrown (admin) Nov 03, 2010
- 1335 views
I just wanted to point out that the lack of watcom eubins is due to circumstance, not a deliberate decision to pull them. Watcom's still the official compiler under Windows, and all releases of Euphoria on that platform will continue to be based on Watcom.
4. Re: eubins - change causing machine func errors
- Posted by ChrisB (moderator) Nov 03, 2010
- 1355 views
global function sqlite_open(sequence filename, integer mode) atom filename_addr, err_no, db, db_addr filename_addr = allocate_string(filename) --put the filename into memory db_addr = allocate(4) --allocate memory for the db handle err_no = c_func(xsqlite3_open, {filename_addr, db_addr}) --call the open function THIS ONE db = peek4u(db_addr) sqlite_last_err_no = err_no if err_no != SQLITE_OK then sqlite_last_err_desc = sqlite_errmsg(db) fatal(db, "sqlite_open()") else sqlite_last_err_desc = "" end if return db end function
5. Re: eubins - change causing machine func errors
- Posted by jimcbrown (admin) Nov 03, 2010
- 1346 views
This has been fixed as of 3810. eubins-mingw32-3810-20101103.zip has also been uploaded.
6. Re: eubins - change causing machine func errors
- Posted by ChrisB (moderator) Nov 03, 2010
- 1321 views
Hi
Ok, thanks, I'll give it a go.
Chris
7. Re: eubins - change causing machine func errors
- Posted by ChrisB (moderator) Nov 04, 2010
- 1364 views
Hi
Yes, that fixed it, ta.
Chris