y_inline invalid pattern, even though used?
#1

Hello. I had to rebuild my environment after losing everything, and I tried compiling my pwn. It compiled flawlessly, but YSI tells me that

Quote:

*** YSI Error: Could not determine pattern type in y_inline

And then crashes on first inline used (invalid opcodes). Compilation flags used - "-d3 -v -O1"

Only thing I've found is http://forum.sa-mp.com/showpost.php?...&postcount=704 and I'm using inline extensively (35 functions). All includes are up to date. Did anybody encounter something similar?

#E:

Now, this is weird. Got this error in this straightforward case. Used code:

pawn Код:
#include <a_samp>

#define MYSQL_USE_YINLINE
#include <a_mysql>

main() {}

new
    dbhandle;

public OnGameModeInit() {
    dbhandle = mysql_connect("localhost", "root", "raven", "");
    mysql_log(LOG_WARNING | LOG_ERROR | LOG_DEBUG);
    inline Hello() {
        printf("SUP");
    }
    mysql_tquery_inline(dbhandle, "SELECT 2 FROM dual", using inline Hello, "");

    return 1;
}
mysql_log:

Quote:

[00:59:45] [DEBUG] mysql_tquery - connection: 1, query: "SELECT 2 FROM dual", callback: "FJ37DH3JG_MYSQL_INTERNAL", format: "d"
[00:59:45] [DEBUG] CMySQLQuery::CMySQLQuery() - constructor called
[00:59:45] [DEBUG] CMySQLQuery::Create - inline function detected
[00:59:45] [DEBUG] mysql_tquery - scheduling query "SELECT 2 FROM dual"..
[00:59:45] [DEBUG] CMySQLQuery::Execute[FJ37DH3JG_MYSQL_INTERNAL(d)] - starting query execution
[00:59:45] [DEBUG] CMySQLQuery::Execute[FJ37DH3JG_MYSQL_INTERNAL(d)] - query was successful
[00:59:45] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
[00:59:45] [DEBUG] CMySQLQuery::Execute[FJ37DH3JG_MYSQL_INTERNAL(d)] - data being passed to ProcessCallbacks()
[00:59:45] [DEBUG] Calling callback "FJ37DH3JG_MYSQL_INTERNAL"..
[00:59:45] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
[00:59:45] [DEBUG] CMySQLQuery::~CMySQLQuery() - deconstructor called

Reply
#2

Ok, looks like YSI doesn't like compiler optimisations, so -O1 has to be removed.
Reply
#3

Yeah when I use y_inline/y_dialogs with -d2 it will fail on linux.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)