Jump to content

[solved] _sqlite_gettable2d unexpected Stripper error


Recommended Posts

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /ShowGui /in "C:\AutoIt\dev\main.au3"
+>19:58:38 Starting AutoIt3Wrapper v.2.2.0.0 SciTE v.3.4.1.0   Keyboard:00000409  OS:WIN_7/Service Pack 1  CPU:X64 OS:X86    Environment(Language:0409)
+>         SciTEDir => C:\Program Files\AutoIt3\SciTE   UserDir => C:\Users\Home\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\Home\AppData\Local\AutoIt v3\SciTE 
-> No changes made..

>Running Au3Stripper (1.2.0.0)  from:C:\Program Files\AutoIt3\SciTE\Au3Stripper cmdline:
-### StripOnly/StripFunc Error: Found Call() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function.
>### current Func: _sqlite_gettable2d
C:\Program Files\AutoIt3\include\SQLite.au3(598,1) Warning for line:$iCbRval = Call($sCallBack, $aDataRow) 

-### StripOnly/StripFunc Error: Found Call() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function.
>### current Func: _sqlite_gettable2d
C:\Program Files\AutoIt3\include\SQLite.au3(614,1) Warning for line:$iCbRval = Call($sCallBack, $aDataRow) 

If I run my script with F5 it works.  If I compile with Stripper, I get this.  EXE seems to work though... ?

Compiling without stripper, no problem 

"Error" seems to be in SQLITE.AU3 and limited to   _sqlite_gettable2d -> or rather thats all I am currently using.

The offending lines in SQLITE.AU3 are      

        Local $iCbRval
        $iCbRval = Call($sCallBack, $aDataRow)
        If $iCbRval = $SQLITE_ABORT Or $iCbRval = $SQLITE_INTERRUPT Or @error Then

 

Please advise?

 

 

Edited by Skysnake
edit: solved, problem was unrelated

Skysnake

Why is the snake in the sky?

Link to comment
Share on other sites

This is the callback hook provided in this function (rarely used AFAIK). What stripper does to it you'd have to ask the "Master of strip", aka Jos.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

you are a star jchd, any syggestions on what I could do?  Write a little "catch the callback function" function?  Never done this?  Ideas and suggestions very welcome.

Thx 

Edited by Skysnake

Skysnake

Why is the snake in the sky?

Link to comment
Share on other sites

No, this is an undocumented callback feature: if the Byref $aRows parameter you pass is a string containing ""SQLITE_CALLBACK:myfunc" then your function called myfunc will be invoked for every row fetched instead of populating a result 2D array.

Indeed stripper can't determine which function will be called eventually since it isn't even passed as an explicit parameter directly.

Maybe the way out would be to explicitely invoke myfunc with a dummy parameter so that it doesn't do anything, so that stripper will know the the function is used somewhere. But this is only useful in case the callback machinery is used. Given that it isn't even documented I doubt leaving things as is would break anything.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

  • Developers

It is pretty simple: AU3Stripper will read all scriptlines and tries to determine which FUNC's are actually used. The FUNC's which aren't used are stripped.
In case a Call() statement is use it could happen that AU3Stripper isn't able to determine what FUncName in defined in the Call statement so hence the warning. You could add any FUNC that you never want to be stripped to

#Au3Stripper_Ignore_Funcs=

I see you are using an older version (1 year +) of AU3Stripper.

Jos
 

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

The Error shown by AU3Stripper is really a big fat warning.
It is not a given that the FUNC used in the CALL() actually got stripped, but I/AU3Stripper doesn't know for sure so wanted to make it ultimate clear that it could be possible,

So... If it works your fine but better test it all carefully.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...