I'm rewriting an old App to include more features. Part of the App is pulling some data from a database. I'm copying that code exactly as it was in the old App.
When I'm tyring to execute that code in the new app, JMP crashes violently. It was giving me some error windows, now it just stops running. It does produce crash reports, though, in "...AppData\Local\Temp\JMPCrashReports\13".
So, if I isolate the code in a new script window like this:
dbc = Create Database Connection("DSN=qwerty;DATABASE=qwerty;SERVER=xxx.xx.xx.xx;PORT=5432;");
query = "SELECT t1......
FROM xxxxxxxx
WHERE ( ( ( xxxxxxx IN ( 'xxxxxx' ) ) AND ( (time>= '05/07/2018 12:00:01 AM') ) AND ( (time<= '05/07/2018 3:31:13 PM') ) ) ) ;";
DataTable = Execute SQL( dbc, query, "invisible", "Data");
It runs just fine.
If I comment Execute SQL line in the App, it runs fine (well, except for the fact that it doesn't pull anything):
//DataTable = Execute SQL( dbc, query, "invisible", "Data");
But if I uncomment this line, JMP crashes and shuts down immediately upon execution.
It looks like something else that exists when new App is running and that doesn't exist when a separate script or the old App are running prevents Execute SQL from running correctly.
Question: Any ideas on how to troubleshoot it further? I looked at the crash report - doesn't explain much. Anywhere I could send those reports?
Thanks,
M.