Well, that didn't go well. After adding my embedded serial like this here:
app.db = new VSqliteDataBase
app.db.EmbeddedSerial = conserv
Dim Connected as Boolean
if( gClient ) then
db.Host = "localhost"
db.UserName = "sa"
db.Password = "sa"
db.Port = 15532 // optional. You can change port for SQLite DB connections in the VServer.ini file.
Connected = db.Connect()
I tried to run the app in the debugger. I get a hard crash of the debugger EVERY TIME when trying to connect. macOS 10.15.5.
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Illegal instruction: 4
Termination Reason: Namespace SIGNAL, Code 0x4
Terminating Process: exc handler [62503]
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_malloc.dylib 0x00007fff7189df3e nanov2_allocate_from_block.cold.1 + 31
1 libsystem_malloc.dylib 0x00007fff7187e9b1 nanov2_allocate_from_block + 574
2 libsystem_malloc.dylib 0x00007fff7187df2b nanov2_allocate + 130
3 libsystem_malloc.dylib 0x00007fff7187de58 nanov2_malloc + 56
4 libsystem_malloc.dylib 0x00007fff7187dd7a malloc_zone_malloc + 104
5 libsystem_malloc.dylib 0x00007fff7187dcf5 malloc + 21
6 XojoFramework 0x0000000101d1c335 AllocateBuffer(unsigned long) + 23
7 XojoFramework 0x0000000101d1c3b1 StringOpsClassic::ConstructFromBuffer(char const*, unsigned int, int) + 39
8 XojoFramework 0x0000000101d2bb42 string::ConstructFromBuffer(char const*, unsigned long, unsigned int) + 78
9 XojoFramework 0x0000000101d2c727 operator+(string const&, string const& + 117
10 XojoFramework 0x0000000101d188de TCPSocketPosix::SendData(string) + 146
11 XojoFramework 0x0000000101e6b672 TCPSocketConnection::SendPacket(DebuggerPacketBuilder const& + 212
12 XojoFramework 0x0000000101da218f 0x101bfc000 + 1728911
13 XojoFramework 0x0000000101ebad57 std::__1::function<bool (long, long)>:perator()(long, long) const + 39
14 XojoFramework 0x0000000101ebad10 StackContext::Crawl(StackBounds, std::__1::function<bool (long, long)> const + 128
15 XojoFramework 0x0000000101d9bbdc 0x101bfc000 + 1702876
16 XojoFramework 0x0000000101d9960b DSDelegate:ebuggerConnectionMessage(DebuggerPacketParser const& + 17
17 XojoFramework 0x0000000101d97a45 DebuggerConnection::ProcessMessage(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > + 67
18 XojoFramework 0x0000000101e6ba68 TCPSocketConnection::SocketDataReceived(TCPSocket*) + 370
19 XojoFramework 0x0000000101d1b4a7 TCPSocket::FireEvents() + 123
20 XojoFramework 0x0000000101d180cd TCPSocketPosix::Poll() + 925
21 XojoFramework 0x0000000101da07ce 0x101bfc000 + 1722318
22 XojoFramework 0x0000000101da05e7 DebuggerHook + 836
23 vSqliteExample.debug 0x0000000101a57f2e App.Event_Open%%o<App> + 2462 (/App:29)
24 XojoFramework 0x0000000101cdc2d7 CocoaFinishApplicationStartup() + 153
25 XojoFramework 0x0000000101cdae7a 0x101bfc000 + 913018
26 com.apple.CoreFoundation 0x00007fff3722c9af __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
27 com.apple.CoreFoundation 0x00007fff3722c943 ___CFXRegistrationPost1_block_invoke + 63
28 com.apple.CoreFoundation 0x00007fff3722c8b8 _CFXRegistrationPost1 + 372
29 com.apple.CoreFoundation 0x00007fff3722c524 ___CFXNotificationPost_block_invoke + 80
30 com.apple.CoreFoundation 0x00007fff371fc69d -[_CFXNotificationRegistrar findbjectbserver:enumerator:] + 1554
31 com.apple.CoreFoundation 0x00007fff371fbb49 _CFXNotificationPost + 1351
32 com.apple.Foundation 0x00007fff39918866 -[NSNotificationCenter postNotificationNamebject:userInfo:] + 59
33 com.apple.AppKit 0x00007fff344cf153 -[NSApplication _postDidFinishNotification] + 312
34 com.apple.AppKit 0x00007fff344cee92 -[NSApplication _sendFinishLaunchingNotification] + 208
35 com.apple.AppKit 0x00007fff344c6004 _DPSNextEvent + 1758
36 com.apple.AppKit 0x00007fff344c44e0 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
37 XojoFramework 0x0000000101cdcab5 0x101bfc000 + 920245
38 XojoFramework 0x0000000101cdcaf9 0x101bfc000 + 920313
39 vSqliteExample.debug 0x00000001018e2cc5 Application._CallFunctionWithExceptionHandling%%o<Application>p + 181
40 XojoFramework 0x0000000101e6aa99 CallFunctionWithExceptionHandling(void (*)()) + 262
41 XojoFramework 0x0000000101cdca62 0x101bfc000 + 920162
42 com.apple.AppKit 0x00007fff344b61ee -[NSApplication run] + 658
43 XojoFramework 0x0000000101e68ea5 RuntimeRun + 42
44 vSqliteExample.debug 0x000000010197c0d3 REALbasic._RuntimeRun + 19
45 vSqliteExample.debug 0x0000000101a6a2ee _Main + 846 (/#main:63)
46 vSqliteExample.debug 0x0000000101a695e3 main + 19
47 libdyld.dylib 0x00007fff716c7cc9 start + 1
According to the docs (the url was mangled, it's the main page on VSQLiteDatabase class) I can use this code here:
SQLiteConnection = new VConnection("127.0.0.1", "sa", "sa")
SQLiteConnection.Open
remote_db = new VSqliteDataBase(SQLiteConnection, "db1") '1
remote_db.create '2
But the code doesn't compile:
1: requires fewer parameters
2: has no member create, the same is true for open, by the way.