From sunshine at public.kherson.ua Sat Jul 3 08:43:04 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 3 00:43:11 2004 Subject: Valentina for REALbasic now works on windows Message-ID: Hi All, We have spend 2 days porting V4RB to Windows. Now we can 1) build plugin directly on Windows 2) run RB WIN IDE and work with plugin and the same example projects 3) DEBUG plugin code !!! WOW !!! We are first who able DEBUG RB plugis on Windows! Even REAL software do not know how to do this :-) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From snw at paradise.net.nz Sun Jul 4 09:36:24 2004 From: snw at paradise.net.nz (Sean Wilson) Date: Sat Jul 3 16:53:29 2004 Subject: [V4MD] 2.0 beta? Message-ID: <6.1.1.1.2.20040704092536.01ae8898@pop3.paradise.net.nz> Hi Ruslan, Any idea when a Windows alpha/beta version of this xtra will be available for testing? Thanks, -Sean. From sunshine at public.kherson.ua Mon Jul 5 08:07:22 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 5 00:07:29 2004 Subject: [V4MD] 2.0 beta? In-Reply-To: <6.1.1.1.2.20040704092536.01ae8898@pop3.paradise.net.nz> Message-ID: On 7/4/04 12:36 AM, "Sean Wilson" wrote: > Hi Ruslan, > > Any idea when a Windows alpha/beta version of this xtra will be available > for testing? Hi Sean, Today Igor will start develop V4MD again. He will fix latest changes and I hope in 2-3 days we will make first upload Of V4MD WIN -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Tue Jul 6 15:33:30 2004 From: jda at his.com (jda) Date: Tue Jul 6 14:38:02 2004 Subject: Update? Message-ID: Hi Ruslan, Can you give us an update on where V4RB 2.0 beta stands? When do you think we'll be able to get our hands on a version that lets us use classes? Thanks, Jon From sunshine at public.kherson.ua Tue Jul 6 22:44:16 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 6 14:44:24 2004 Subject: Update? In-Reply-To: Message-ID: On 7/6/04 10:33 PM, "jda" wrote: > > Hi Ruslan, > > Can you give us an update on where V4RB 2.0 beta stands? When do you > think we'll be able to get our hands on a version that lets us use > classes? Hi Jon, We almost done Example with classes. There was a lots of issues with system tables that I was need polish. I think tomorrow we will upload new beta of V4RB and V4MD. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Tue Jul 6 15:48:26 2004 From: jda at his.com (jda) Date: Tue Jul 6 14:48:33 2004 Subject: Update? In-Reply-To: References: Message-ID: >, > > >> Can you give us an update on where V4RB 2.0 beta stands? When do you >> think we'll be able to get our hands on a version that lets us use >> classes? > >Hi Jon, > >We almost done Example with classes. >There was a lots of issues with system tables that I was need polish. > >I think tomorrow we will upload new beta of V4RB and V4MD. > > That's great, Ruslan. Is this something we can really use with our existing projects now? Is sql searching and unicode functional yet? Jon From sunshine at public.kherson.ua Tue Jul 6 23:11:21 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 6 15:11:30 2004 Subject: Update? In-Reply-To: Message-ID: On 7/6/04 10:48 PM, "jda" wrote: >>> Can you give us an update on where V4RB 2.0 beta stands? When do you >>> think we'll be able to get our hands on a version that lets us use >>> classes? >> >> Hi Jon, >> >> We almost done Example with classes. >> There was a lots of issues with system tables that I was need polish. >> >> I think tomorrow we will upload new beta of V4RB and V4MD. >> >> > > That's great, Ruslan. Is this something we can really use with our > existing projects now? Is sql searching and unicode functional yet? Yes, in SQL works - practically everything for single table. - joins but not finished yet 3 tasks here. Ivan works Unicode also should work. Igor have now 2 main tasks V4MD and polishing of strings and languages. We all together will think and play with unicode to see what we need and what not. Sergey should get tomorrow I think updated viSQL to 2.0 This should simply plaing with 2.0 for all us. For your project problem only that BLOB fields are not tested yet in V4RB. I think this will be next my task. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jul 8 08:04:43 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 06:16:08 2004 Subject: V4RB b7 uploaded. Message-ID: Hi All, http://paradigmasoft.com/download/v2_beta/v2_beta.html [NEW] Example Api/Field_Find show how to use NEW functions Vfield.Find( value ) and how to use NEW classes Sets to complex searches on several fields in single table without SQL. We think this is very cool extension, because Vfield.Find + Sets + Links = Navigational Model. This is alternative non-SQL way to work with databases. and we have decide implement this way for client/server architecture also. [NEW] Example Advanced/viSQL yes, Sergey have port viSQL to 2.0 engine. it can now open dbs, show structure, and do queries. [DONE][Kernel] - now works DISTINCT on single table and join when only one table fields are SELECTed ------------------ [DONE][Kernel] - implemented a lots of different syntaxes for JOIN FROM T1 join T2 ON T1.key = T2.ptr [WHERE search conditions] ^^^^^^^^^^^^^ this can be FOREIGN KEY or ObjectPtr this is SQL92 syntax. FROM T1 join T2 on link_name [WHERE search conditions] this is Valentina extension to support LINK abstraction FROM T1 join T2 // skipped link condition FROM T1, T2 this is Valentina extension. Valentina self will try find link. FROM T1, T2 WHERE T1.key = T2.ptr this is old-style of join. Link-condition is located in the WHERE clause. All this also works for LEFT|RIGHT|FULL OUTER joins of course. [DONE] -- Now we can close db and open it, information about db structure comes from sys tables. Here still many issues to polish. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jul 8 01:05:31 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 06:32:49 2004 Subject: V4RB b7 uploaded. Message-ID: Hi All, [NEW] Example Api/Field_Find show how to use NEW functions Vfield.Find( value ) and how to use NEW classes Sets to complex searches on several fields in single table without SQL. We think this is very cool extension, because Vfield.Find + Sets + Links = Navigational Model. This is alternative non-SQL way to work with databases. and we have decide implement this way for client/server architecture also. [NEW] Example Advanced/viSQL yes, Sergey have port viSQL to 2.0 engine. it can now open dbs, show structure, and do queries. [DONE][Kernel] - now works DISTINCT on single table and join when only one table fields are SELECTed ------------------ [DONE][Kernel] - implemented a lots of different syntaxes for JOIN FROM T1 join T2 ON T1.key = T2.ptr [WHERE search conditions] ^^^^^^^^^^^^^ this can be FOREIGN KEY or ObjectPtr this is SQL92 syntax. FROM T1 join T2 on link_name [WHERE search conditions] this is Valentina extension to support LINK abstraction FROM T1 join T2 // skipped link condition FROM T1, T2 this is Valentina extension. Valentina self will try find link. FROM T1, T2 WHERE T1.key = T2.ptr this is old-style of join. Link-condition is located in the WHERE clause. All this also works for LEFT|RIGHT|FULL OUTER joins of course. [DONE] -- Now we can close db and open it, information about db structure comes from sys tables. Here still many issues to polish. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Thu Jul 8 07:53:44 2004 From: jda at his.com (jda) Date: Thu Jul 8 06:53:47 2004 Subject: V4RB b7 uploaded. In-Reply-To: References: Message-ID: >Hi All, > > http://paradigmasoft.com/download/v2_beta/v2_beta.html > File Not Found... Jon From sunshine at public.kherson.ua Thu Jul 8 15:00:13 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 07:00:51 2004 Subject: Download page URL changed Message-ID: Hi All, It seems list works now, so correction: URL for 2.0 beta now is here http://paradigmasoft.com/download/v2_beta/download.html -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jul 8 15:04:39 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 07:04:46 2004 Subject: V4MD b7 uploaded. Message-ID: Hi director developers! On this page http://paradigmasoft.com/download/v2_beta/download.html You will find link to V4MD 2.0 beta page In the folder Examples you will find PDF guide to examples. Please try set up all by instructions. And run examples. We will be many thanks for any ideas on how to improve examples. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jul 8 09:33:51 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 07:06:03 2004 Subject: Test ignore Message-ID: -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Thu Jul 8 09:14:15 2004 From: jda at his.com (jda) Date: Thu Jul 8 08:14:27 2004 Subject: V4RB beta 7 Message-ID: Hi Ruslan, As expected, I'm running into problems when trying b7 with my app. Maybe some of these things aren't supposed to work yet, I don't know. But here are a few: 1. myCursor = new VCursor(thePrefsDB, "select * from prefs where RecId=0", kServer, kReadWrite) myCursor.setBlank -> crash myCursor is made, BTW, but the SQL field in the debugger is empty. Here are the last lines of the log after the crash: Cursor_SetRecBlank... PARAM: inCursor = 26512012 2. I sometimes (not always) get a crash on this line: call prefsDB.prefs.AddRecord even though prefsDB is created properly, with: prefsDB.Create( f, 1, 2048 ) 3. I see a .tmp file that sticks around. Since I've been crashing it probably just wasn't cleaned up. But since I never saw this before I thought I'd mention it. Jon From sunshine at public.kherson.ua Thu Jul 8 16:28:44 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 08:29:53 2004 Subject: V4RB beta 7 In-Reply-To: Message-ID: On 7/8/04 4:14 PM, "jda" wrote: > 3. > > I see a .tmp file that sticks around. Since I've been crashing it > probably just wasn't cleaned up. But since I never saw this before I > thought I'd mention it. Yes Jon, We now create new .tmp file and keep here ALL tmp files. This is much more safe and will make start after crash faster. Because we will just erase existed .tmp Instead do search of all tmp files on each volume. You always can trash this file May be we need make it as invisible -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jul 8 16:34:38 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 08:34:51 2004 Subject: In-Reply-To: Message-ID: On 7/8/04 4:14 PM, "jda" wrote: > Hi Ruslan, > > As expected, I'm running into problems when trying b7 with my app. > Maybe some of these things aren't supposed to work yet, I don't know. > But here are a few: > > 1. > > myCursor = new VCursor(thePrefsDB, "select * from prefs where > RecId=0", kServer, kReadWrite) I think we need check WHERE reciID = 0 query Well Sergey say it works Which fields types are in your table? BLOBs ? BTW, in 2.0 the BEST OFFICAL way to create EMPTY cursors will be syntax select * FROM T WHERE false Jon, can you make for us some test project which fails. The more simple the better. Because it is hard for us to guess what fails you. > myCursor.setBlank -> crash > > myCursor is made, BTW, but the SQL field in the debugger is empty. > > Here are the last lines of the log after the crash: > > Cursor_SetRecBlank... > PARAM: inCursor = 26512012 > > > > 2. > > I sometimes (not always) get a crash on this line: Log of crash exists ? > call prefsDB.prefs.AddRecord > > even though prefsDB is created properly, with: prefsDB.Create( f, 1, 2048 ) -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Thu Jul 8 09:52:15 2004 From: jda at his.com (jda) Date: Thu Jul 8 08:53:28 2004 Subject: In-Reply-To: References: Message-ID: > > > >> As expected, I'm running into problems when trying b7 with my app. >> Maybe some of these things aren't supposed to work yet, I don't know. >> But here are a few: >> >> 1. >> >> myCursor = new VCursor(thePrefsDB, "select * from prefs where >> RecId=0", kServer, kReadWrite) > >I think we need check WHERE reciID = 0 query >Well Sergey say it works > >Which fields types are in your table? >BLOBs ? There is one blob field, yes. > >BTW, in 2.0 the BEST OFFICAL way to create EMPTY cursors will be syntax > > select * FROM T WHERE false Tried that -- still crashed. BTW, here are the last lines from the OS crash log: Thread 0 Crashed: 0 Kernel_Carbon_Debug.shlb 0x022e5ce8 put_IsNull__Q23fbl17Value_string_nullFb + 0x20 1 Kernel_Carbon_Debug.shlb 0x02331ffc put_IsNull__Q23fbl5VTextFb + 0x68 2 Kernel_Carbon_Debug.shlb 0x0209f6e4 SetBlank__Q23fbl10Record_ImpFv + 0xec 3 Kernel_Carbon_Debug.shlb 0x022f6fdc SetBlank__Q23fbl14Table_IndirectFv + 0x30 4 Kernel_Carbon_Debug.shlb 0x022f2450 SetBlank__Q24vsql6CursorFv + 0x4c 5 Plugin 0x004f7ac4 Cursor_SetRecBlank__FP16REALobjectStruct + 0xb4 6 main 0x01157288 > > >Jon, can you make for us some test project which fails. >The more simple the better. > >Because it is hard for us to guess what fails you. > I'd be happy to send the project -- you know it's big, but the crash occurs very early in the creation of the preferences file (a Valentina DB), before any of the actual application code kicks in. I could comment it for you and you would quickly see... Jon From sunshine at public.kherson.ua Thu Jul 8 17:46:54 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 09:47:25 2004 Subject: In-Reply-To: Message-ID: On 7/8/04 4:52 PM, "jda" wrote: >> BTW, in 2.0 the BEST OFFICAL way to create EMPTY cursors will be syntax >> >> select * FROM T WHERE false > > Tried that -- still crashed. > > BTW, here are the last lines from the OS crash log: > > Thread 0 Crashed: > 0 Kernel_Carbon_Debug.shlb 0x022e5ce8 > put_IsNull__Q23fbl17Value_string_nullFb + 0x20 It looks to be string field problem. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Thu Jul 8 11:30:45 2004 From: jda at his.com (jda) Date: Thu Jul 8 10:30:56 2004 Subject: V4RB beta 7 In-Reply-To: References: Message-ID: > > >We now create new .tmp file and keep here ALL tmp files. > >This is much more safe and will make start after crash faster. >Because we will just erase existed .tmp >Instead do search of all tmp files on each volume. > >You always can trash this file >May be we need make it as invisible > You mean *each* db will have a permanent .tmp file? I hope not -- I distribute hundreds of small databases with my app and I certainly do not want the disk littered with .tmp files for each (visible or not). Can this be turned off (I don't care about start time after a crash, which is negligible now). Jon From sunshine at public.kherson.ua Thu Jul 8 18:40:31 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 10:40:43 2004 Subject: V4RB beta 7 In-Reply-To: Message-ID: On 7/8/04 6:30 PM, "jda" wrote: >> We now create new .tmp file and keep here ALL tmp files. >> >> This is much more safe and will make start after crash faster. >> Because we will just erase existed .tmp >> Instead do search of all tmp files on each volume. >> >> You always can trash this file >> May be we need make it as invisible >> > > You mean *each* db will have a permanent .tmp file? I hope not -- I > distribute hundreds of small databases with my app and I certainly do > not want the disk littered with .tmp files for each (visible or not). > Can this be turned off (I don't care about start time after a crash, > which is negligible now). Not permanent. On Close() this file is killed. Hmm, it is not simple to turn off it. Then where we will put our tmp files? :-) We can try to use single tmp file for all opened dbs. we need discuss this here. Why you make so many dbs ????? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Thu Jul 8 11:45:49 2004 From: jda at his.com (jda) Date: Thu Jul 8 10:48:39 2004 Subject: V4RB beta 7 In-Reply-To: References: Message-ID: > > > >> You mean *each* db will have a permanent .tmp file? I hope not -- I >> distribute hundreds of small databases with my app and I certainly do >> not want the disk littered with .tmp files for each (visible or not). >> Can this be turned off (I don't care about start time after a crash, >> which is negligible now). > >Not permanent. >On Close() this file is killed. > >Hmm, it is not simple to turn off it. >Then where we will put our tmp files? :-) > >We can try to use single tmp file for all opened dbs. >we need discuss this here. > >Why you make so many dbs ????? > Well, I have description files that contain lots of diverse information about how text is to be formatted for different purposes, for example, and each is its own database. BUT, they are not open at once -- only one at at a time. So if the .tmp file is deleted when it is closed that's not a problem at all. Invisible would be nice, though. What about putting them in the Temporary Folder (at least for Mac OS X). If I understand that folder correctly (I may not) the file will be deleted automatically when the app closes. Maybe you (or someone else) can shed light on this... Jon From sunshine at public.kherson.ua Thu Jul 8 19:05:34 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 11:05:40 2004 Subject: V4RB beta 7 In-Reply-To: Message-ID: On 7/8/04 6:45 PM, "jda" wrote: >>> You mean *each* db will have a permanent .tmp file? I hope not -- I >>> distribute hundreds of small databases with my app and I certainly do >>> not want the disk littered with .tmp files for each (visible or not). >>> Can this be turned off (I don't care about start time after a crash, >>> which is negligible now). >> >> Not permanent. >> On Close() this file is killed. >> >> Hmm, it is not simple to turn off it. >> Then where we will put our tmp files? :-) >> >> We can try to use single tmp file for all opened dbs. >> we need discuss this here. >> >> Why you make so many dbs ????? >> > > Well, I have description files that contain lots of diverse > information about how text is to be formatted for different purposes, > for example, and each is its own database. BUT, they are not open at > once -- only one at at a time. So if the .tmp file is deleted when it > is closed that's not a problem at all. Invisible would be nice, > though. > > What about putting them in the Temporary Folder (at least for Mac OS > X). If I understand that folder correctly (I may not) the file will > be deleted automatically when the app closes. Maybe you (or someone > else) can shed light on this... I think it will delete files on restart (in case was crash of system.) Windows also have similar place -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From snw at paradise.net.nz Fri Jul 9 10:22:51 2004 From: snw at paradise.net.nz (Sean Wilson) Date: Thu Jul 8 17:23:27 2004 Subject: V4MD b7 uploaded. In-Reply-To: References: Message-ID: <6.1.1.1.2.20040709101015.01b75390@pop3.paradise.net.nz> Hi Ruslan, I've downloaded the xtra, components and engine and I *think* I've installed them correctly. However, the first hurdle before I can start testing and trying the included examples is that the xtra doesn't work. Querying my xtraList (put the xtraList) shows the presence of V4MD.x32 BUT executing showXLib in the message window doesn't show any listing for Valentina xtras (either VDataBase or VCursor), despite the xtra being present in the Xtras folder. If I swap the beta xtra for V4MD.x32 (version 1.10) then both xtras appear as expected, so it appears to be something wrong with the xtra as opposed to anything else on my system. I have tried this with both Director MX and Director MX 2004. Thanks, -Sean. From sunshine at public.kherson.ua Fri Jul 9 06:47:41 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 8 22:47:53 2004 Subject: V4MD b7 uploaded. In-Reply-To: <6.1.1.1.2.20040709101015.01b75390@pop3.paradise.net.nz> Message-ID: On 7/9/04 1:22 AM, "Sean Wilson" wrote: Hi Sean, > I've downloaded the xtra, components and engine and I *think* I've > installed them correctly. However, the first hurdle before I can start > testing and trying the included examples is that the xtra doesn't work. > > Querying my xtraList (put the xtraList) shows the presence of V4MD.x32 BUT > executing showXLib in the message window doesn't show any listing for > Valentina xtras (either VDataBase or VCursor), despite the xtra being > present in the Xtras folder. If I swap the beta xtra for V4MD.x32 (version > 1.10) then both xtras appear as expected, so it appears to be something > wrong with the xtra as opposed to anything else on my system. > > I have tried this with both Director MX and Director MX 2004. Have you SET PATH in the your computer environment ? We will check showXLib here to make sure it works here. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From snw at paradise.net.nz Fri Jul 9 16:22:07 2004 From: snw at paradise.net.nz (Sean Wilson) Date: Thu Jul 8 23:22:20 2004 Subject: V4MD b7 uploaded. In-Reply-To: References: <6.1.1.1.2.20040709101015.01b75390@pop3.paradise.net.nz> Message-ID: <6.1.1.1.2.20040709161204.01b5efc8@pop3.paradise.net.nz> > > I've downloaded the xtra, components and engine and I *think* I've > > installed them correctly. However, the first hurdle before I can start > > testing and trying the included examples is that the xtra doesn't work. > > > > Querying my xtraList (put the xtraList) shows the presence of V4MD.x32 BUT > > executing showXLib in the message window doesn't show any listing for > > Valentina xtras (either VDataBase or VCursor), despite the xtra being > > present in the Xtras folder. If I swap the beta xtra for V4MD.x32 (version > > 1.10) then both xtras appear as expected, so it appears to be something > > wrong with the xtra as opposed to anything else on my system. > > > > I have tried this with both Director MX and Director MX 2004. > >Have you SET PATH in the your computer environment ? I thought so, but is there an easy way to check? Amongst other items "C:\PROGRA~1\PARADI~1\VCOMPO~1\" is part of my PATH and is a valid shortFileName to where I placed the VComponents folder. Thanks, -Sean. From sunshine at public.kherson.ua Fri Jul 9 09:04:17 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 9 01:04:30 2004 Subject: V4MD b7 uploaded. In-Reply-To: <6.1.1.1.2.20040709161204.01b5efc8@pop3.paradise.net.nz> Message-ID: On 7/9/04 7:22 AM, "Sean Wilson" wrote: > >>> I've downloaded the xtra, components and engine and I *think* I've >>> installed them correctly. However, the first hurdle before I can start >>> testing and trying the included examples is that the xtra doesn't work. >>> >>> Querying my xtraList (put the xtraList) shows the presence of V4MD.x32 BUT >>> executing showXLib in the message window doesn't show any listing for >>> Valentina xtras (either VDataBase or VCursor), despite the xtra being >>> present in the Xtras folder. If I swap the beta xtra for V4MD.x32 (version >>> 1.10) then both xtras appear as expected, so it appears to be something >>> wrong with the xtra as opposed to anything else on my system. >>> >>> I have tried this with both Director MX and Director MX 2004. >> >> Have you SET PATH in the your computer environment ? > > I thought so, but is there an easy way to check? > > Amongst other items "C:\PROGRA~1\PARADI~1\VCOMPO~1\" is part of my PATH and > is a valid shortFileName to where I placed the VComponents folder. Wait. 1) what Windows version you use? 2) again, you need create the next hierarchy c:/program files/Paradigma Software/VComponents_Win_VC In this folder present some DLLs and empty folders. 3) you need set environment variable PATH to point on this folder. for this you need click by right mouse on MyComputer icon. choose Advanced panel click button Environment Variables in the new window you can see USER variables and SYSTEM variables. both them have variable path. I prefer add to system part. so choose PATH and append string to the end of value c:/program files/Paradigma Software/VComponents_Win_VC; 4) now when you have set PATH variable to that folder, restart. Now Windows will search in the folder for DLLs. 5) note, archive VEngine_Win_VC contains file Kernel_win_debug.dll You need COPY it into Paradigma Software/VComponents_Win_VC That is all. You have folder Paradigma Software/VComponents_Win_VC You have all DLLs inside of it You have point PATH on it. Now you simply install V4MD Xtra into Director. This must work. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From snw at paradise.net.nz Fri Jul 9 18:48:25 2004 From: snw at paradise.net.nz (Sean Wilson) Date: Fri Jul 9 01:48:55 2004 Subject: V4MD b7 uploaded. In-Reply-To: References: <6.1.1.1.2.20040709161204.01b5efc8@pop3.paradise.net.nz> Message-ID: <6.1.1.1.2.20040709184148.01b5fd30@pop3.paradise.net.nz> >1) what Windows version you use? XP Pro >2) again, you need create the next hierarchy > > c:/program files/Paradigma Software/VComponents_Win_VC This was already done before I mailed you the first time. >In this folder present some DLLs and empty folders. Yes. The complete contents of VComponents_Win_VC and both files from VEngine_Win_VC >3) you need set environment variable PATH to point on this folder. > > for this you need click by right mouse on MyComputer icon. > choose Advanced panel > click button Environment Variables > > in the new window you can see > USER variables and SYSTEM variables. > > both them have variable path. > I prefer add to system part. > so choose PATH and append string to the end of value > > c:/program files/Paradigma Software/VComponents_Win_VC; I did this, but I used a DOS-style path as some of the already-present paths had adopted. Perhaps I'll try again with a "long" path as above but enclosed with quote marks. >4) now when you have set PATH variable to that folder, restart. > Now Windows will search in the folder for DLLs. And I had re-started ... >5) note, archive VEngine_Win_VC contains file Kernel_win_debug.dll >You need COPY it into Paradigma Software/VComponents_Win_VC Done. See above. >That is all. > You have folder Paradigma Software/VComponents_Win_VC > You have all DLLs inside of it > You have point PATH on it. > >Now you simply install V4MD Xtra into Director. > >This must work. All of this was how you describe it should be BEFORE my first mail suggesting a problem. I'll try again with a long path and let you know if it works. Is there any other way I can verify that the PATH is set correctly? Can I open a command window and type "Kernel_Win32_Debug.dll" (which is in the folder described), for example, and expect it to run something or return a result or ... Thanks, -Sean. From sunshine at public.kherson.ua Fri Jul 9 10:10:21 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 9 02:10:39 2004 Subject: V4MD b7 uploaded. In-Reply-To: <6.1.1.1.2.20040709184148.01b5fd30@pop3.paradise.net.nz> Message-ID: On 7/9/04 9:48 AM, "Sean Wilson" wrote: >> That is all. >> You have folder Paradigma Software/VComponents_Win_VC >> You have all DLLs inside of it >> You have point PATH on it. >> >> Now you simply install V4MD Xtra into Director. >> >> This must work. > > All of this was how you describe it should be BEFORE my first mail > suggesting a problem. I'll try again with a long path and let you know if > it works. Is there any other way I can verify that the PATH is set > correctly? Can I open a command window and type "Kernel_Win32_Debug.dll" > (which is in the folder described), for example, and expect it to run > something or return a result or ... Okay, Download archive Vengine once again. It now have one more DLL from Microsoft. What now ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From snw at paradise.net.nz Sat Jul 10 08:14:05 2004 From: snw at paradise.net.nz (Sean Wilson) Date: Fri Jul 9 15:14:17 2004 Subject: V4MD b7 uploaded. In-Reply-To: References: <6.1.1.1.2.20040709184148.01b5fd30@pop3.paradise.net.nz> Message-ID: <6.1.1.1.2.20040710080650.01b4ad58@pop3.paradise.net.nz> >Download archive Vengine once again. >It now have one more DLL from Microsoft. > >What now ? I added the included msvcr71.dll to the VComponents folder. I've tried this (again) with both C:\Program Files\Paradigma Software\VComponents_Win_VC\ OR C:\PROGRA~1\PARADI~1\VCOMPO~1\ added to my PATH environment variable and rebooted after making alterations. I have tried the xtra (in the correct folder/s) in both MX and MX 2004 and Director doesn't seem to register the xtra with either of these PATH configurations in either version of Director (showXLib doesn't show an entry for VDataBase or VCursor). -Sean. From sunshine at public.kherson.ua Fri Jul 9 23:20:17 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 9 15:20:28 2004 Subject: V4MD b7 uploaded. In-Reply-To: <6.1.1.1.2.20040710080650.01b4ad58@pop3.paradise.net.nz> Message-ID: On 7/9/04 11:14 PM, "Sean Wilson" wrote: > >> Download archive Vengine once again. >> It now have one more DLL from Microsoft. >> >> What now ? > > I added the included msvcr71.dll to the VComponents folder. > I've tried this (again) with both > C:\Program Files\Paradigma Software\VComponents_Win_VC\ > OR > C:\PROGRA~1\PARADI~1\VCOMPO~1\ > added to my PATH environment variable and rebooted after making > alterations. I have tried the xtra (in the correct folder/s) in both MX and > MX 2004 and Director doesn't seem to register the xtra with either of these > PATH configurations in either version of Director (showXLib doesn't show an > entry for VDataBase or VCursor). But have you try to run examples ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jul 9 23:25:22 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 9 15:25:30 2004 Subject: V4MD b7 uploaded. In-Reply-To: <6.1.1.1.2.20040710080650.01b4ad58@pop3.paradise.net.nz> Message-ID: On 7/9/04 11:14 PM, "Sean Wilson" wrote: > >> Download archive Vengine once again. >> It now have one more DLL from Microsoft. >> >> What now ? > > I added the included msvcr71.dll to the VComponents folder. > I've tried this (again) with both > C:\Program Files\Paradigma Software\VComponents_Win_VC\ > OR > C:\PROGRA~1\PARADI~1\VCOMPO~1\ Better to use the first always. > added to my PATH environment variable and rebooted after making > alterations. I have tried the xtra (in the correct folder/s) in both MX and > MX 2004 and Director doesn't seem to register the xtra with either of these > PATH configurations in either version of Director (showXLib doesn't show an > entry for VDataBase or VCursor). on my computer, I see that showxlib show Vdatabase. Hmm, I will check more. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jul 9 23:53:59 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 9 15:55:57 2004 Subject: V4MD b7 uploaded. In-Reply-To: <6.1.1.1.2.20040710080650.01b4ad58@pop3.paradise.net.nz> Message-ID: On 7/9/04 11:14 PM, "Sean Wilson" wrote: > >> Download archive Vengine once again. >> It now have one more DLL from Microsoft. >> >> What now ? > > I added the included msvcr71.dll to the VComponents folder. > I've tried this (again) with both > C:\Program Files\Paradigma Software\VComponents_Win_VC\ > OR > C:\PROGRA~1\PARADI~1\VCOMPO~1\ > added to my PATH environment variable and rebooted after making > alterations. I have tried the xtra (in the correct folder/s) in both MX and > MX 2004 and Director doesn't seem to register the xtra with either of these > PATH configurations in either version of Director (showXLib doesn't show an > entry for VDataBase or VCursor). I have play a little here. Even if I REMOVE from Vcomponents folder for example Vengine.DLL Then Director here start and load Xtra. And ShowxLib command still show Xtras. So it looks that problem not in DLLs. Hmm, but then where ??? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From snw at paradise.net.nz Sat Jul 10 09:17:50 2004 From: snw at paradise.net.nz (Sean Wilson) Date: Fri Jul 9 16:20:58 2004 Subject: V4MD b7 uploaded. In-Reply-To: References: <6.1.1.1.2.20040710080650.01b4ad58@pop3.paradise.net.nz> Message-ID: <6.1.1.1.2.20040710090532.01b4afd8@pop3.paradise.net.nz> >But have you try to run examples ? Of course. As soon as I do I get a "Handler not defined" error: #ValentinaSetDebugLevel. This is because the xtra isn't found. > > C:\Program Files\Paradigma Software\VComponents_Win_VC\ > > OR > > C:\PROGRA~1\PARADI~1\VCOMPO~1\ > >Better to use the first always. OK. I have done this. >I have play a little here. > >Even if I REMOVE from Vcomponents folder for example Vengine.DLL >Then Director here start and load Xtra. Hang on - there is no VEngine.dll file. Do you mean Kernel_Win32_Debug.dll? Which archive should this file be in? Just to be clear, I downloaded and "installed": V4MD_Win.exe Size: 290,8334 bytes Total files: 8 VComponents_Win_VC.exe Size: 2,572,834 bytes Total files: 6 VEngine_Win_VC.exe Size: 1,836,543 bytes Total files: 3 >And ShowxLib command still show Xtras. And it still doesn't for me. I'm guessing that there's a dependency, or a file missing, or a different build, or ... ? The xtra itself is 475,136 bytes and was modified Thursday, 8 July 2004, 9:56:01 a.m. >So it looks that problem not in DLLs. > >Hmm, but then where ??? Cheers, -Sean. From sunshine at public.kherson.ua Sat Jul 10 21:16:30 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 10 13:16:42 2004 Subject: Project? In-Reply-To: Message-ID: On 7/10/04 5:50 PM, "jda" wrote: >> >>> Why not just email an attachment? I can take up to 5 MB. >> >> Email usually add 50% to atachment, yes >> >> I can send you ok >> >> Will test with new resources at first >> > > If you will email me the latest vengine I'll continue to test with my app... Hi Jon, Good news. I have work hole day with your project. Fixed at least 5-6 bugs in kernel 2.0 So each time I can move more far then before. ------------------ Bad news. I have found 4-5 LOGICAL mistakes in your project regarding dbs. The worse is that 1) you have field with name "date" DATE -> this is key word of SQL92. Valentina 2.0 complains here. 2) you have table with name REFERENCES this is also key word of SQL !!! yes, Valentina 1.x did forgive this, but not 2.0 As far as I see, the only way to resolve this problem is to ship for you new version of your app, based on Valentina 1.x of course which will polish this issues in schema. Only after this 2.0 will be able accept your db structure. Another way -> you can fix all your SQL queries to have syntax SEELCT * FROM "references" // SQL92 syntax Or SEELCT * FROM [references] // ala MS SQL syntax Only problem with BaseObject Methods. Their texts are inside of vdb file. May be we can open db with bad formulas, but assign new. ------------- I think in the nearest 40-80 minutes I will upload new archives. And you can A) or change names of this field and table B) or fix SQL queries as shown Then I will continue with your project. I will send more notes on list later for you. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jul 10 21:16:56 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 10 13:17:06 2004 Subject: V4MD b7 uploaded. In-Reply-To: <6.1.1.1.2.20040710090532.01b4afd8@pop3.paradise.net.nz> Message-ID: On 7/10/04 12:17 AM, "Sean Wilson" wrote: Sean, We have found problem I will upload new archives soon -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jul 10 22:16:52 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 10 14:17:04 2004 Subject: V4RB MAC and V4MD WIN, new betas uplaoded Message-ID: http://paradigmasoft.com/download/v2_beta/download.html -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jul 10 22:21:23 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 10 14:21:33 2004 Subject: Jon, project note2 Message-ID: Hi Jon, Another note and the last issue I have meet with your project. V4RB LOG show next DataBase_Ctor... PARAM: instance = 26470812 return Table_Ctor... PARAM: instance = 26474408 VAR: gCreateInCtor = 1 VAR: gDatabase.get() = 118176596 return Table_SetName... PARAM: inTable = 26474408 PARAM: inNewName = "prefs" return --------- Then you create fields ----------- Then you create second db DataBase_Ctor... PARAM: instance = 26626304 return Table_Ctor... PARAM: instance = 4071720 VAR: gCreateInCtor = 1 VAR: gDatabase.get() = 122475108 return Table_SetName... PARAM: inTable = 4071720 PARAM: inNewName = "references" return And its fields Then you do Create() for second db DataBase_Create... PARAM: instance = 26626304 <<<<<<<<<< i.e. "References" PARAM: inMode = 1 PARAM: inSegmentSize = 2048 PARAM: inNativeOS = 0 return ------------- BUT I do not see in log where you have create or open the first database? And when I simply quite your app, I get crash on UPDATE. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jul 10 22:25:19 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 10 14:25:29 2004 Subject: Jon, project, note 3 Message-ID: Hi Jon, Another logical mistake in your project is that you create Method Table_CreateTextField... PARAM: inTable = 4071720 PARAM: inName = "titleMethod" PARAM: inType = 24 PARAM: inFlags = 8 PARAM: inMethod = "Upper(editors)" return object = 26901888 That refer to field "editors", which is create LATER ! In fact this is not good idea. In most programming language you need declare something BEFORE you will use it. Yes, Valentina 1.x was able resolve this, Payment for this was the second scan of all fields and attempt again compile bad methods. But this is waste of time. Right? In Valentina 2.0 we did not have such mechanim yet, so your project did fail here also. For now I have made just protection from crash. And I will need made again second iteration. I will try to do this that iteration happens ONLY if there was bad method. I.e. In case developer have made all right, we will not waste time as Valentina 1.x did this. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jul 10 22:28:13 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 10 14:28:22 2004 Subject: Jon, project, note 4 Message-ID: I have to see that in your Prefs database table You create one field for each parameter you want to store. Am I right that this table will save only one record? This is not good idea. Even if you set segment size for db = 2KB, you loose 2KB for each field/parameter. If you have 50 parameters your pref db will be 100KB. -------- The right way is -> table with 2 fields Property and Value Both VarChar. Then you will store all your 50 parameters in 2KB only, instead of 100KB. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Sat Jul 10 15:38:49 2004 From: jda at his.com (jda) Date: Sat Jul 10 14:39:02 2004 Subject: Jon, project, note 4 In-Reply-To: References: Message-ID: >I have to see that in your Prefs database table >You create one field for each parameter you want to store. > >Am I right that this table will save only one record? > >This is not good idea. > >Even if you set segment size for db = 2KB, you loose 2KB for each >field/parameter. > >If you have 50 parameters your pref db will be 100KB. > > >-------- >The right way is -> table with 2 fields Property and Value >Both VarChar. > >Then you will store all your 50 parameters in 2KB only, instead of 100KB. > I know. You are seeing some old code that I left in for backward compatibility. I use the second method for all new preferences I create now. I'd convert the old ones, too, but it would break so many things. Jon From jda at his.com Sat Jul 10 15:41:36 2004 From: jda at his.com (jda) Date: Sat Jul 10 14:41:47 2004 Subject: Jon, project, note 3 In-Reply-To: References: Message-ID: > > >That refer to field "editors", which is create LATER ! > Oops. Good catch. This is one of the evils of cut-and-paste. It wasn't in my 1.x code base, but added in 2.x because I changed the methods. Thanks -- it's fixed now! Jon From sunshine at public.kherson.ua Sat Jul 10 22:45:40 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 10 14:45:52 2004 Subject: Jon, project note2 In-Reply-To: Message-ID: On 7/10/04 10:21 PM, "Ruslan Zasukhin" wrote: And Jon, You need fix this self, because this is logic I can't workaround > Hi Jon, > > Another note and the last issue I have meet with your project. > V4RB LOG show next > > DataBase_Ctor... > PARAM: instance = 26470812 > return > > Table_Ctor... > PARAM: instance = 26474408 > VAR: gCreateInCtor = 1 > VAR: gDatabase.get() = 118176596 > return > > Table_SetName... > PARAM: inTable = 26474408 > PARAM: inNewName = "prefs" > return > > > --------- > Then you create fields > > > ----------- > Then you create second db > > DataBase_Ctor... > PARAM: instance = 26626304 > return > > Table_Ctor... > PARAM: instance = 4071720 > VAR: gCreateInCtor = 1 > VAR: gDatabase.get() = 122475108 > return > > Table_SetName... > PARAM: inTable = 4071720 > PARAM: inNewName = "references" > return > > > And its fields > Then you do Create() for second db > > DataBase_Create... > PARAM: instance = 26626304 <<<<<<<<<< i.e. "References" > PARAM: inMode = 1 > PARAM: inSegmentSize = 2048 > PARAM: inNativeOS = 0 > return > > > > > ------------- > BUT I do not see in log where you have create or open the first database? > And when I simply quite your app, I get crash on UPDATE. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Sat Jul 10 15:54:42 2004 From: jda at his.com (jda) Date: Sat Jul 10 14:54:52 2004 Subject: Jon, project note2 In-Reply-To: References: Message-ID: >On 7/10/04 10:21 PM, "Ruslan Zasukhin" wrote: > >And Jon, > >You need fix this self, because this is logic I can't workaround > Yes, I see. Another mistake made when converting my project to a form that can be compiled with 2.0. Fixed. I'm going to work on this now... Jon From sunshine at public.kherson.ua Sat Jul 10 23:06:33 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 10 15:06:43 2004 Subject: Jon, project note2 In-Reply-To: Message-ID: On 7/10/04 10:54 PM, "jda" wrote: >> On 7/10/04 10:21 PM, "Ruslan Zasukhin" wrote: >> >> And Jon, >> >> You need fix this self, because this is logic I can't workaround >> > > > Yes, I see. Another mistake made when converting my project to a form > that can be compiled with 2.0. Fixed. I'm going to work on this now... Ok, Note, right now for faster start you can try 1) rename that bad fields in all project, so I can just move forward 2) wrap them by [] or "" in all SQL in case this not works (I think it must work :) then only way 1) for now -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From snw at paradise.net.nz Sun Jul 11 08:57:06 2004 From: snw at paradise.net.nz (Sean Wilson) Date: Sat Jul 10 15:57:49 2004 Subject: V4MD b7 uploaded. In-Reply-To: References: <6.1.1.1.2.20040710090532.01b4afd8@pop3.paradise.net.nz> Message-ID: <6.1.1.1.2.20040711085337.01aed4a0@pop3.paradise.net.nz> >We have found problem Out of interest - what was the problem? From sunshine at public.kherson.ua Sun Jul 11 00:09:55 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 10 16:10:06 2004 Subject: V4MD b7 uploaded. In-Reply-To: <6.1.1.1.2.20040711085337.01aed4a0@pop3.paradise.net.nz> Message-ID: On 7/10/04 11:57 PM, "Sean Wilson" wrote: > >> We have found problem > > Out of interest - what was the problem? I have put wrong DLL. The prev archive was need MSVCR71D, but I have put MSCVR71 Now we have rebuilt ICU libs to be release, And now they use MSVCR71. And added one more DLL. So it works now, Sean ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From snw at paradise.net.nz Sun Jul 11 10:08:56 2004 From: snw at paradise.net.nz (Sean Wilson) Date: Sat Jul 10 17:09:36 2004 Subject: V4MD b7 uploaded. In-Reply-To: References: <6.1.1.1.2.20040711085337.01aed4a0@pop3.paradise.net.nz> Message-ID: <6.1.1.1.2.20040711094304.01c43008@pop3.paradise.net.nz> >I have put wrong DLL. > >The prev archive was need MSVCR71D, but I have put MSCVR71 > > >Now we have rebuilt ICU libs to be release, >And now they use MSVCR71. > >And added one more DLL. > >So it works now, Sean ? No, it still doesn't. I downloaded VComponents and V4MD self-extracting archives, but not VEngine (going by the modification dates on your FTP site) - is this correct, were there only 2 of the 3 archives altered? (If so, BTW, you could remove msvcr71.dll from the VEngine archive as it's duplicated in VComponents.) The xtra still doesn't show up when executing showXLib and if I run any of the examples it fails on the _first_ call to any Valentina-related handler. However, when I run "put the xtraList" in my message window there is an entry for Valentina: [#name: "V4MD.x32", #version: "2, 0, 0"] I'm not sure what this means (whether Director, on start up, just scans it's Xtras folder and sub-folders getting info on *.x32) or whether this means that on some level it is being "registered". If the GUID were not unique I would expect a "Duplicate ..." error on startUp. Is something failing in IMoaRegister? For whatever reason neither Valentina xtra appears as a scripting xtra in either MX or MX 2004. My C:\Program Files\Paradigma Software\VComponents_Win_VC\ folder contains the following: FOLDERS: compressors encryptors fields functions importers Indexes libs_antlr libs_icu libs_pictures resources script_languages FILES: Components_Readme.txt icudt26l.dll icuin26.dll icuio26.dll icuuc26.dll Kernel_Win32_Debug.dll Kernel_Win32_Debug.lib msvcp71.dll msvcr71.dll Is the structure correct and do I have all the necessary files? Thanks, -Sean. From sunshine at public.kherson.ua Sun Jul 11 01:48:05 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 10 17:48:18 2004 Subject: V4MD b7 uploaded. In-Reply-To: <6.1.1.1.2.20040711094304.01c43008@pop3.paradise.net.nz> Message-ID: On 7/11/04 1:08 AM, "Sean Wilson" wrote: > No, it still doesn't. I downloaded VComponents and V4MD self-extracting > archives, but not VEngine (going by the modification dates on your FTP > site) - is this correct, were there only 2 of the 3 archives altered? (If > so, BTW, you could remove msvcr71.dll from the VEngine archive as it's > duplicated in VComponents.) Hmm, no. Vengine also must be new. Let me check -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sun Jul 11 01:50:41 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 10 17:50:53 2004 Subject: V4MD b7 uploaded. In-Reply-To: <6.1.1.1.2.20040711094304.01c43008@pop3.paradise.net.nz> Message-ID: On 7/11/04 1:08 AM, "Sean Wilson" wrote: > >> I have put wrong DLL. >> >> The prev archive was need MSVCR71D, but I have put MSCVR71 >> >> >> Now we have rebuilt ICU libs to be release, >> And now they use MSVCR71. >> >> And added one more DLL. >> >> So it works now, Sean ? > > No, it still doesn't. I downloaded VComponents and V4MD self-extracting > archives, but not VEngine (going by the modification dates on your FTP > site) - is this correct, were there only 2 of the 3 archives altered? (If > so, BTW, you could remove msvcr71.dll from the VEngine archive as it's > duplicated in VComponents.) Aha, this archive have stick on coping from one computer to another. Now all 3 archives are updated on FTP. Please try now. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From snw at paradise.net.nz Sun Jul 11 11:28:43 2004 From: snw at paradise.net.nz (Sean Wilson) Date: Sat Jul 10 18:28:57 2004 Subject: V4MD b7 uploaded. In-Reply-To: References: <6.1.1.1.2.20040711094304.01c43008@pop3.paradise.net.nz> Message-ID: <6.1.1.1.2.20040711112743.01c2ec18@pop3.paradise.net.nz> >Aha, this archive have stick on coping from one computer to another. > >Now all 3 archives are updated on FTP. > >Please try now. Now showXLib shows both Valentina xtras as expected. I will try the included examples and report back. Thanks, -Sean. From valentina-list at vermontsoftworks.com Sun Jul 11 10:22:45 2004 From: valentina-list at vermontsoftworks.com (Erik Mueller-Harder) Date: Sun Jul 11 09:23:01 2004 Subject: VField.find In-Reply-To: References: Message-ID: Hi, Ruslan -- I'm looking through your examples now. *VERY* cool! Is .find documented somewhere? It looks like there are four parameters? Or do the parameters vary by field type? Thanks! -- Erik On Jul 8, 2004, at 01:04, Ruslan Zasukhin wrote: > [NEW] Example Api/Field_Find > show how to use NEW functions Vfield.Find( value ) > and how to use NEW classes Sets to complex searches on > several > fields in single table without SQL. > > We think this is very cool extension, because > Vfield.Find + Sets + Links = Navigational Model. > > This is alternative non-SQL way to work with databases. > and we have decide implement this way for client/server > architecture also. From sunshine at public.kherson.ua Sun Jul 11 17:33:18 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jul 11 09:34:24 2004 Subject: VField.find In-Reply-To: Message-ID: On 7/11/04 5:22 PM, "Erik Mueller-Harder" wrote: Hi Erik, > Hi, Ruslan -- > > I'm looking through your examples now. *VERY* cool! Thanks, And look on LINKs examples! This is even more cool. In fact this features should be used together. > Is .find documented somewhere? On beta page there is quick reference. Not remember if Find() is there. Let me know if not. > It looks like there are four > parameters? Or do the parameters vary by field type? In 2.0 added the work with INVARIANT type of REALbasic. So now for example Vfield has property .Value It is of invariant type. This is simply syntax for fast/lazy coding, But of course invariant works little slower then say Vlong.value which know that it is of type 'long' Find() also use variants. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From valentina-list at vermontsoftworks.com Sun Jul 11 10:53:36 2004 From: valentina-list at vermontsoftworks.com (Erik Mueller-Harder) Date: Sun Jul 11 09:53:49 2004 Subject: VField.find In-Reply-To: References: Message-ID: <168E8286-D34A-11D8-BF1F-000393DC4766@vermontsoftworks.com> > And look on LINKs examples! > > This is even more cool. > In fact this features should be used together. That's next; I want to take this in order.... This new API is looking very exciting! >> Is .find documented somewhere? > > On beta page there is quick reference. > Not remember if Find() is there. > Let me know if not. It is; sorry I missed that download. > In 2.0 added the work with INVARIANT type of REALbasic. > > So now for example Vfield has property .Value > It is of invariant type. > > This is simply syntax for fast/lazy coding, > But of course invariant works little slower then say > Vlong.value which know that it is of type 'long' Understood -- and that may come in handy at times. I'll generally use the defined types, though, for speed, safety, and self-documentation. Many thanks, -- Erik From sunshine at public.kherson.ua Mon Jul 12 19:19:59 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 12 11:20:16 2004 Subject: V4RB 2.0 beta 7 In-Reply-To: Message-ID: On 7/12/04 6:05 PM, "Sims, John" wrote: Hi John, I have CC to beta list. > Hello Ruslan, > > I am very sorry to bother you. > > I have finally reached a point where I can start looking at Valentina > 2.0. I installed all of the files as stated on the beta download > website but I am getting the same crash on Valentina.Init using the > Common\Init_Shutdown example that others where seeing in the early > betas. I searched through the archives and saw that V4RB seemed to > start working for others at beta 3 but I do not see anything about if > they did something special to fix the crash on Init. I am using > V4RB2.0b7, REALbasic 5.5.2, OS X 10.2.8 > > I have copied the VComponents folder into the Library/CFMSupport folder > and then the Kernel_Carbon_Debug.shlb file from the Vengine folder into > the Library/CFMSupport/Vcomponents folder. The V4RB 2.0 plugin is the > only file in my plugins folder and I do get the Valentina > objects/methods/properties etc. in my Intellisense in the IDE. > > I see in one of the archive postings that there was an attached XML file > that needed to go into the vcomponents/resources/english. I saw 2 XML > files in this folder after my installation. Is there another XML file > required or does beta 7 come with the necessary XML files? > > Any idea what I might be missing? In b7 all 2 required XML files are already in Vcomponents folder. Hmm, can you send log of crash ? So REALbasic find plugin, show it, as I understand compile and run application... This means that all right with paths and dlls. As I understand Jon, was able run b7 with no problems. Yes Jon? Again, Please send me log of crash. Also in the folder of example you can see V4RB_LOG.txt file. What it shows ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Mon Jul 12 12:25:22 2004 From: jda at his.com (jda) Date: Mon Jul 12 11:28:43 2004 Subject: V4RB 2.0 beta 7 In-Reply-To: References: Message-ID: > > >So REALbasic find plugin, show it, as I understand compile and run >application... This means that all right with paths and dlls. > >As I understand Jon, was able run b7 with no problems. >Yes Jon? > Yes, I'm able to run b7 with RB 5.5.2 (and 5.5.3.fc2). Of course, the database crashes when closed and reopened, but you knew that... :-> Jon P. S. OS X 10.3.4, if that matters. From AYU8 at CDC.GOV Mon Jul 12 14:12:09 2004 From: AYU8 at CDC.GOV (Sims, John) Date: Mon Jul 12 13:13:27 2004 Subject: V4RB 2.0 beta 7 Message-ID: Ruslan, As asked, I will continue this discussion through the mailing list. By "fails", I mean that the program goes into the debugger at this line. The debugger indicates a Vexception has occurred. If I put a breakpoint on this line and try to step into it, it again says a vexception has occurred. As stated below, I tried wrapping this line in a try/catch block but the debugger never goes into the "catch", it just stops and says the vexception has occurred. I tried a few of the examples to make sure it was not just this one but they all have the same result for me. To me, it sounds just like what was happening to Jon and Frank with the very early betas but seemed to clear up once they got to beta 3. I couldn't find anything in the archives to indicate that they did anything special. For those of you new to the discussion: RB 5.5.2, V4RB2b7, OS X 10.2.8, Blue iBook G3 -John -----Original Message----- From: Ruslan Zasukhin [mailto:ruslan@paradigmasoft.com] Sent: Monday, July 12, 2004 1:29 PM To: Sims, John Subject: Re: V4RB 2.0 beta 7 On 7/12/04 7:25 PM, "Sims, John" wrote: > Ruslan, > > Thank you for your always fast response. > > Perhaps "crash" was bad wording. The application does not crash > REALbasic, but the Valentina.Init line fails. I tried wrapping a > try/catch block around it but it doesn't trap it. What means fails ? > Try > Valentina.Init(8 * 1024 * 1024) ----> Never gets passed this line > Catch ex as Vexception > msgbox(ex.message) ----> Although the REALbasic debugger "tool-tip" > shows below this line. It states: "Vexception [Help]" End try > > The code is on my machine at home so I'll have to send you the > V4RB_LOG.txt file either tonight or first thing in the morning. > > I'll keep an eye on the betas list today in case someone there has > some suggestions and I will try any suggestions before contacting you > again. No problem to bother me! We need run it. Just send all questions to beta list. You are subscribed, > I have seen on the betas list that it is working for others so I > suspect I have either done something incorrectly or am overlooking > something. Yes, this is strange. I do not understand where is problem. > Again, thanks for your help and I will send you the V4RB_LOG.txt file > as soon as I can. Ok, -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Mon Jul 12 14:19:04 2004 From: jda at his.com (jda) Date: Mon Jul 12 13:19:23 2004 Subject: V4RB 2.0 beta 7 In-Reply-To: References: Message-ID: > > >> Try >> Valentina.Init(8 * 1024 * 1024) ----> Never gets passed this line > > Catch ex as Vexception That compiles (hm...), but there are three parameters I pass. The cache size, the Mac licence number (or ""), and the PC license number (or ""). Maybe that's your problem? Jon From AYU8 at CDC.GOV Mon Jul 12 14:23:23 2004 From: AYU8 at CDC.GOV (Sims, John) Date: Mon Jul 12 13:23:48 2004 Subject: V4RB 2.0 beta 7 Message-ID: Perhaps, I don't have the code in front of me so when I wrote the e-mail, I may not have the line exactly correct. I'll double check. I am running the examples that come with the V4RB2 download with no changes (except when I was trying to figure out what is going on). So, if the examples use Valentina.Init(8 * 1024 * 1024,"","") Then that is how I ran it. That said, I will double check this and also try inserting my Mac and Win licence numbers and see if that makes a difference. Are you using your 1.x codes are do we have to get different codes for the 2.x betas? Thanks for the response, Jon. -John -----Original Message----- From: valentina-beta-bounces@lists.macserve.net [mailto:valentina-beta-bounces@lists.macserve.net] On Behalf Of jda Sent: Monday, July 12, 2004 2:19 PM To: Valentina Beta Subject: RE: V4RB 2.0 beta 7 > > >> Try >> Valentina.Init(8 * 1024 * 1024) ----> Never gets passed this line > > Catch ex as Vexception That compiles (hm...), but there are three parameters I pass. The cache size, the Mac licence number (or ""), and the PC license number (or ""). Maybe that's your problem? Jon _______________________________________________ Valentina-beta mailing list Valentina-beta@lists.macserve.net http://lists.macserve.net/mailman/listinfo/valentina-beta From jda at his.com Mon Jul 12 14:32:05 2004 From: jda at his.com (jda) Date: Mon Jul 12 13:32:55 2004 Subject: V4RB 2.0 beta 7 In-Reply-To: References: Message-ID: > > >Then that is how I ran it. That said, I will double check this and also >try inserting my Mac and Win licence numbers and see if that makes a >difference. Are you using your 1.x codes are do we have to get >different codes for the 2.x betas? > >Thanks for the response, Jon. > >-John I'm using my 1.x code. But frankly I haven't gotten it to run 10 minutes without a crash, so I don't know if it will timeout when I do! :-> Jon From AYU8 at CDC.GOV Mon Jul 12 14:45:14 2004 From: AYU8 at CDC.GOV (Sims, John) Date: Mon Jul 12 13:45:49 2004 Subject: V4RB 2.0 beta 7 Message-ID: > > I'm using my 1.x code. But frankly I haven't gotten it to run 10 > minutes without a crash, so I don't know if it will timeout when I > do! :-> > > Jon :-) At least you've got it running. I just know I've overlooked something silly. I'm looking forward to getting into some of the new features as Ruslan gets them working. I'm intrigued about the Binary Links and the Vsets. Plus, I'm curious to see how much faster he has made it...if he makes it much faster than 1.x, it may be the first step towards building a time machine :-> -John From jda at his.com Mon Jul 12 14:45:37 2004 From: jda at his.com (jda) Date: Mon Jul 12 13:45:58 2004 Subject: Opening an older db In-Reply-To: References: Message-ID: Ruslan, what's the best way to figure out if a db being opened in V2.x was made with V1.x? Should we always try to open the db as a generic VDatabase and test for the SchemaVersion (assuming we used it, as I have been)? The close it an reopen myDB.Open(f) it is 2.0? Or is there a way that doesn't involve opening each db, closing, and reopening it (which will become wasteful, because once users have migrated all their databases to V2.0 this won't be necessary)? It seems that this would be a good place for an exception/try-catch block. But when I trap the exception that's thrown the error message is blank... Jon From sunshine at public.kherson.ua Mon Jul 12 21:46:42 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 12 13:46:59 2004 Subject: V4RB 2.0 beta 7 In-Reply-To: Message-ID: On 7/12/04 9:19 PM, "jda" wrote: >> >> >>> Try >>> Valentina.Init(8 * 1024 * 1024) ----> Never gets passed this line >>> Catch ex as Vexception > > That compiles (hm...), but there are three parameters I pass. The > cache size, the Mac licence number (or ""), and the PC license number > (or ""). Maybe that's your problem? No, With RB 5.5 Valentina use default parameters, So in Valentina 2.0 we can simply skip some parameters. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Jul 12 23:20:05 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 12 15:20:22 2004 Subject: V4RB 2.0 beta 7 In-Reply-To: Message-ID: On 7/12/04 9:23 PM, "Sims, John" wrote: > Perhaps, > > I don't have the code in front of me so when I wrote the e-mail, I may > not have the line exactly correct. I'll double check. I am running the > examples that come with the V4RB2 download with no changes (except when > I was trying to figure out what is going on). So, if the examples use > > Valentina.Init(8 * 1024 * 1024,"","") > > Then that is how I ran it. That said, I will double check this and also > try inserting my Mac and Win licence numbers and see if that makes a > difference. Are you using your 1.x codes are do we have to get > different codes for the 2.x betas? This will not make difference. Beta 2.0 do not have any serials now -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Jul 12 23:26:10 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 12 15:26:25 2004 Subject: V4RB 2.0 beta 7 In-Reply-To: Message-ID: On 7/12/04 9:45 PM, "Sims, John" wrote: >> >> I'm using my 1.x code. But frankly I haven't gotten it to run 10 >> minutes without a crash, so I don't know if it will timeout when I >> do! :-> >> >> Jon > > :-) > > At least you've got it running. I just know I've overlooked something > silly. I'm looking forward to getting into some of the new features as > Ruslan gets them working. I'm intrigued about the Binary Links and the > Vsets. Plus, I'm curious to see how much faster he has made it...if he > makes it much faster than 1.x, it may be the first step towards building > a time machine :-> :-) 1) beta now is very slow. Because a) we do not use at all cache now. b) we log each step and command with Flush() now ---------- 2) I have told. Then main improvements was in A) cache. Now BIG cache of size e.g. 100-200MB will work in 100-500 times faster of Valentina 1.x cache. B) the same is true for internal file system. For huge dbs, >500MB file system works now in hundreds times faster than 1.x C) also improved sorting indexes for numeric fields types. they improved not in speed but in life-cicle. Now modification operations do not require rebuild them. in some queries this can be one or few seconds save. D) some algorithms improved thanks to new internal way access indexes. E) not done yet -- I want improve format of indexes. This must speedup them in 2-10 times on search of single/first value. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Jul 12 23:27:52 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 12 15:28:07 2004 Subject: Opening an older db In-Reply-To: Message-ID: On 7/12/04 9:45 PM, "jda" wrote: > Ruslan, what's the best way to figure out if a db being opened in > V2.x was made with V1.x? I think we will make special function for this. Jochen already have ask about this for Valentina Studio. > Should we always try to open the db as a generic VDatabase and test > for the SchemaVersion (assuming we used it, as I have been)? The > close it an reopen myDB.Open(f) it is 2.0? I dream about new special function Convert_1_2( db_1, db_2 ) > Or is there a way that doesn't involve opening each db, closing, and > reopening it (which will become wasteful, because once users have > migrated all their databases to V2.0 this won't be necessary)? > > It seems that this would be a good place for an exception/try-catch > block. But when I trap the exception that's thrown the error message > is blank... -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Mon Jul 12 16:32:58 2004 From: jda at his.com (jda) Date: Mon Jul 12 15:33:32 2004 Subject: Opening an older db In-Reply-To: References: Message-ID: > > Should we always try to open the db as a generic VDatabase and test >> for the SchemaVersion (assuming we used it, as I have been)? The > > close it an reopen myDB.Open(f) it is 2.0? > >I dream about new special function > > Convert_1_2( db_1, db_2 ) > Couldn't this be done by having v2 do an XML dump of db_1 and a load into db_2? Jon From sunshine at public.kherson.ua Mon Jul 12 23:39:27 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 12 15:39:42 2004 Subject: Opening an older db In-Reply-To: Message-ID: On 7/12/04 11:32 PM, "jda" wrote: >>> Should we always try to open the db as a generic VDatabase and test >>> for the SchemaVersion (assuming we used it, as I have been)? The >>> close it an reopen myDB.Open(f) it is 2.0? >> >> I dream about new special function >> >> Convert_1_2( db_1, db_2 ) >> > > Couldn't this be done by having v2 do an XML dump of db_1 and a load into > db_2? Not remember if I have told this on this list * taking into account that Valentina 2.0 engine itself is about 3MB of size, And it uses several MB of third party libs, I think it will be not big problem if we drop here into Vcomponents folder Kernel_1.dll about 1.2 MB. Having this dll, it is possible open 1.x database and do simple and fast BYTE to BYTE conversion. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Mon Jul 12 17:03:42 2004 From: jda at his.com (jda) Date: Mon Jul 12 16:04:49 2004 Subject: Opening an older db In-Reply-To: References: Message-ID: > > >Not remember if I have told this on this list > >* taking into account that Valentina 2.0 engine itself is about 3MB of size, >And it uses several MB of third party libs, I think it will be not big >problem if we drop here into Vcomponents folder Kernel_1.dll about 1.2 MB. > >Having this dll, it is possible open 1.x database and do simple and fast >BYTE to BYTE conversion. > Maybe even that could be cut down, since you only need to convert V1.x to V2, no actually do anything with the data (like create indexes, sql operations, etc.) Speaking of size, will it be possible for us to use the OS X ICU library that's already installed? This could be an option, no? That will save up to 8 MB if we want to have all of the available languages at hand, which will be a big savings for those of use who sell our apps by download. Jon From sunshine at public.kherson.ua Tue Jul 13 08:57:31 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 13 00:57:49 2004 Subject: Opening an older db In-Reply-To: Message-ID: On 7/13/04 12:03 AM, "jda" wrote: >> Not remember if I have told this on this list >> >> * taking into account that Valentina 2.0 engine itself is about 3MB of size, >> And it uses several MB of third party libs, I think it will be not big >> problem if we drop here into Vcomponents folder Kernel_1.dll about 1.2 MB. >> >> Having this dll, it is possible open 1.x database and do simple and fast >> BYTE to BYTE conversion. >> > > Maybe even that could be cut down, since you only need to convert > V1.x to V2, no actually do anything with the data (like create > indexes, sql operations, etc.) Right, I also have think about this. This require time, testing and so on. And yes, I will try do this > Speaking of size, will it be possible for us to use the OS X ICU > library that's already installed? This could be an option, no? Yes, this must work./ For this I need add one more function to Valentina to point that path. > That > will save up to 8 MB if we want to have all of the available > languages at hand, which will be a big savings for those of use who > sell our apps by download. Yes. Only potential problem here, if later in e.g. 10.5 Apple ship something newer and it have different format. I need ask on IBM list how stable is format of this .dat file. Also this file in 8MB contains all 170 languages. Exists utility which allow OPEN this file and remove all what you not need. Then size can go down to 3.5MB as they say. I have see in Adobe InDesign that they include .dat file with just 300KB. I think it includes only English. We will study all this together later. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From AYU8 at CDC.GOV Tue Jul 13 08:04:33 2004 From: AYU8 at CDC.GOV (Sims, John) Date: Tue Jul 13 07:04:51 2004 Subject: V4RB 2.0 beta 7 Message-ID: > >So, if the > > examples use > > > > Valentina.Init(8 * 1024 * 1024,"","") > > > > Then that is how I ran it. That said, I will double check this and > > also try inserting my Mac and Win licence numbers and see if that > > makes a difference. Are you using your 1.x codes are do we have to > > get different codes for the 2.x betas? > > This will not make difference. > > Beta 2.0 do not have any serials now > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need for speed ] Ruslan, Here is the contents of the V4RB_LOG.txt file: Valentina_GetVersion... return res.get() = "2.0b7" Valentina_SetDebugLevel... PARAM: inLevel = 2 return Valentina_GetDebugLevel... return gV4RB_DebugMode = 2 Valentina_Init... PARAM: inCacheSize = 8388608 PARAM: inMacSN->CString() = "" PARAM: inWinSN->CString() = "" ERROR: 365826 Return To clarify the problem now that I have looked at it a little more, the Valentina.Init line is raising an exception with the error code of 365826. I didn't think my try/catch was working because I had "Break on exception" turned on in RB and didn't realize it. Sorry if I confused you because of that. Again, thanks for you time. -John From sunshine at public.kherson.ua Tue Jul 13 15:19:47 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 13 07:20:06 2004 Subject: V4RB 2.0 beta 7 In-Reply-To: Message-ID: On 7/13/04 3:04 PM, "Sims, John" wrote: > Ruslan, > > Here is the contents of the V4RB_LOG.txt file: > > Valentina_GetVersion... > return res.get() = "2.0b7" > > Valentina_SetDebugLevel... > PARAM: inLevel = 2 > return > > Valentina_GetDebugLevel... > return gV4RB_DebugMode = 2 > > Valentina_Init... > PARAM: inCacheSize = 8388608 > PARAM: inMacSN->CString() = "" > PARAM: inWinSN->CString() = "" > ERROR: 365826 I need redo to show errors in HEX This is //File %U does not exist. DECLARE_ERROR( ERR_OS_FILE_NOT_FOUND, 0x59502); Hmm. It looks to me some XML file was not found. Check that in reosurces/english You have 2 xml files. > Return > > To clarify the problem now that I have looked at it a little more, the > Valentina.Init line is raising an exception with the error code of > 365826. I didn't think my try/catch was working because I had "Break on > exception" turned on in RB and didn't realize it. Sorry if I confused > you because of that. > > Again, thanks for you time. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From AYU8 at CDC.GOV Tue Jul 13 08:38:33 2004 From: AYU8 at CDC.GOV (Sims, John) Date: Tue Jul 13 07:38:51 2004 Subject: V4RB 2.0 beta 7 Message-ID: > > Ruslan, > > > > Here is the contents of the V4RB_LOG.txt file: > > > > Valentina_GetVersion... > > return res.get() = "2.0b7" > > > > Valentina_SetDebugLevel... > > PARAM: inLevel = 2 > > return > > > > Valentina_GetDebugLevel... > > return gV4RB_DebugMode = 2 > > > > Valentina_Init... > > PARAM: inCacheSize = 8388608 > > PARAM: inMacSN->CString() = "" > > PARAM: inWinSN->CString() = "" > > ERROR: 365826 > > I need redo to show errors in HEX > > This is > > //File %U does not exist. > DECLARE_ERROR( ERR_OS_FILE_NOT_FOUND, 0x59502); > > Hmm. > > It looks to me some XML file was not found. > > Check that in > > reosurces/english > > You have 2 xml files. > > -- > Best regards, > Ruslan Zasukhin [ I feel the need...the need for speed ] I remember looking through the resources/english folder because of something I saw in another post. I recall seeing 2 files in this folder but I do not remember exactly what their names are. I will double check when I get home but I have a copy of the installation files here at work (I'm on a Windoze machine here at work so I can't actually do anything) and I see 2 xml files in the resources/english folder. They are kernel_errors.xml and sql_errors.xml. Thanks, -John From AYU8 at CDC.GOV Wed Jul 14 08:01:30 2004 From: AYU8 at CDC.GOV (Sims, John) Date: Wed Jul 14 07:01:38 2004 Subject: [V4RB] Trouble with beta 2 installation - SOLVED!! Message-ID: Hello all, I would first like to thank Ruslan and Jon for helping me try to figure out what I had done wrong. For those of you about to start down the same path as I, here is what I did wrong. For reference, I am using OS X 10.2.8 The installation instructions say to put the Vcomponents folder into the "Library/CFMSupport" folder. I took this to mean the "Library/CFMSupport" folder under the "System" folder (HD:System:Library:CFMSupport). This is not the case. There is a "Library/CFMSupport" folder at the root of the harddrive (I'm not as familiar with OS X as I am with Classic so I didn't know it was there). Once I discovered this folder and moved the Vcomponents folder to this location (HD:Library:CFMSupport) everything started working just fine. I ran through several of the examples and all worked as expected. Again, thanks to Ruslan and Jon - I appreciate your time! Take care. -John From sunshine at public.kherson.ua Wed Jul 14 18:35:08 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jul 14 10:35:31 2004 Subject: [V4RB] Trouble with beta 2 installation - SOLVED!! In-Reply-To: Message-ID: On 7/14/04 3:01 PM, "Sims, John" wrote: > Hello all, > > I would first like to thank Ruslan and Jon for helping me try to figure > out what I had done wrong. For those of you about to start down the > same path as I, here is what I did wrong. > > For reference, I am using OS X 10.2.8 > > The installation instructions say to put the Vcomponents folder into the > "Library/CFMSupport" folder. I took this to mean the > "Library/CFMSupport" folder under the "System" folder > (HD:System:Library:CFMSupport). This is not the case. There is a > "Library/CFMSupport" folder at the root of the harddrive (I'm not as > familiar with OS X as I am with Classic so I didn't know it was there). > Once I discovered this folder and moved the Vcomponents folder to this > location (HD:Library:CFMSupport) everything started working just fine. > I ran through several of the examples and all worked as expected. > > Again, thanks to Ruslan and Jon - I appreciate your time! Thank you, John. I think I need 1) correct "/Library/CFMSupport" ^^^ means root 2) may be explicitly underline that exists 2 folders... -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From frank-list2 at mindstarprods.com Thu Jul 15 08:15:14 2004 From: frank-list2 at mindstarprods.com (Frank Schima) Date: Thu Jul 15 07:15:27 2004 Subject: [V4RB] Trouble with beta 2 installation - SOLVED!! In-Reply-To: References: Message-ID: On Jul 14, 2004, at 11:35 AM, Ruslan Zasukhin wrote: > 1) correct "/Library/CFMSupport" > ^^^ > means root > > 2) may be explicitly underline that exists 2 folders... Not to mention that there is also the user Library folder. -Frank From sunshine at public.kherson.ua Fri Jul 16 13:22:49 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 16 05:23:00 2004 Subject: V4MD, 2.0 support of Images Message-ID: Hi Martin, You have ask many times that we have add support of Images. I wonder, do you know at least one Xtra for Director which is able work with Images. Xtra Which can CREATE new image ? And which can get Image from Director and do something with it ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jul 16 15:28:29 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 16 07:28:37 2004 Subject: V4MD, 2.0 support of Images In-Reply-To: <04e001c46b2f$87917bb0$b900a8c0@batcomputer> Message-ID: On 7/16/04 3:22 PM, "Chuck Neal" wrote: > I know of one. ;) > > www.directxtras.com > > Check out Direct Image Xtra. Also imaging lingo in Director can manipulate > images quote well. What is he needing to do? I have yet to find much lingo > can't do on its own in regards to images. There are also about 3-4 others > for exporting image files from Director into various formats. Thank you Chuk, Chuck, Martin, please subscribe to Valentina beta list. Then we can discuss all together. http://paradigmasoft.com/support/discussion.html -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jul 16 15:32:37 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 16 07:32:45 2004 Subject: V4MD, 2.0 support of Images In-Reply-To: <04e001c46b2f$87917bb0$b900a8c0@batcomputer> Message-ID: On 7/16/04 3:22 PM, "Chuck Neal" wrote: > I know of one. ;) > > www.directxtras.com > > Check out Direct Image Xtra. Also imaging lingo in Director can manipulate > images quote well. What is he needing to do? I have yet to find much lingo > can't do on its own in regards to images. There are also about 3-4 others > for exporting image files from Director into various formats. Right now Valentina can do GetPicture( cursor, "fldname", cast member ) Martin dream about pic = GetPicture( cursor, "fldname" ) So picture will go NOT into cast member but into variable of lingo. He say this will be faster and .Image is modern way comparing to .Picture. Right Martin? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jul 16 15:51:52 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 16 07:52:00 2004 Subject: When was added Compression format to Director Message-ID: Hi All, We have to see that Director MX have .compression property for bitmap. When this feature was added to Director? Just intresting, Andy, you remember that in 1999 year, we have add to V4MD (and to Valentina kernel) support of JPG library in Picture field? You remember why we have made this ? :-) In fact if IDE/language can give to engine already COMPRESSD picture in some format, that engine have nothing todo, we can simply store several KB of RAM and store info that format is e.g. JPG. May be we need in Valentina 2.0 simply remove from kernel JPG library? Director MX can give us JPG as I see may be although older versions cannot do this... REALbasic I think also have some plugins to compress into RAM/memBuffer a picture, which we can later get in V4RB plugin. C/c++ the same. Developer can use third party graph libs which he wish. VPHP do not need also that Valentina convert graphic self. VCOM (VB) and C# do not know... I think also they can do this. So guys, why we need in Valentina 2.0 engine to have buil-in libraries to convert pictures? Anybody see any advantages of this ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jul 16 16:30:42 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 16 08:30:51 2004 Subject: When was added Compression format to Director In-Reply-To: <6.1.1.1.2.20040716145822.01b019e8@pop.gmx.de> Message-ID: On 7/16/04 4:04 PM, "Martin Kloss" wrote: > At 14:51 16.07.2004, Ruslan Zasukhin wrote: >> We have to see that Director MX have .compression property for bitmap. >> When this feature was added to Director? > > Since Director 8, there are two new properties for bitmap castmembers. > But they only work for movies in Shockwave format, which most projectors > are not. Here's the info from the Director help files: > > member(whichMember).imageCompression > > It indicates the type of compression that Director will apply to the member > when saving the movie in Shockwave format. This property can be tested > and set, and has no effect at runtime. Aha, So Director cannot give to Valentina ready JPG. Well, this explains why Andy have advice me to add into Valentina own JPG compression. So we still must have this feature (mainly for director developers). -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From martin.kloss at gmx.de Fri Jul 16 17:23:46 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Fri Jul 16 10:24:04 2004 Subject: When was added Compression format to Director In-Reply-To: References: <6.1.1.1.2.20040716145822.01b019e8@pop.gmx.de> Message-ID: <6.1.1.1.2.20040716172029.01b2e1d0@pop.gmx.de> At 15:30 16.07.2004, you wrote: >So Director cannot give to Valentina ready JPG. No, I don't think that's possible. You will always get the bitmap data from a bitmap member. But I'm not sure what kind of data you'll get from an image object. You should ask some Xtras developers on Xtras-L or check the docs of the XDK, it should say something about that since image objects have been added to the XDK in version 8.5, I think. Martin. Martin Kloss "Everybody is somebody else's weirdo." Like the author? Buy the book: http://www.amazon.de/exec/obidos/ASIN/3934358322/lingmmugd Need music? http://www.selling-sound.com Get your daily dose of Lingo: http://www.lingopark.de From sunshine at public.kherson.ua Fri Jul 16 20:07:40 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 16 12:08:05 2004 Subject: When was added Compression format to Director In-Reply-To: <6.1.1.1.2.20040716172029.01b2e1d0@pop.gmx.de> Message-ID: On 7/16/04 6:23 PM, "Martin Kloss" wrote: > At 15:30 16.07.2004, you wrote: >> So Director cannot give to Valentina ready JPG. > > No, I don't think that's possible. You will always get > the bitmap data from a bitmap member. But I'm not > sure what kind of data you'll get from an image object. Yes, looks to be a case. > You should ask some Xtras developers on Xtras-L > or check the docs of the XDK, it should say something > about that since image objects have been added to > the XDK in version 8.5, I think. Bitmap, and only bitmap. Or MEDIA format. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jul 16 20:20:24 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 16 12:20:33 2004 Subject: When was added Compression format to Director In-Reply-To: Message-ID: On 7/16/04 7:24 PM, "Andy Fuchs" wrote: > at 16.07.2004 14:51 Uhr, Ruslan Zasukhin wrote: > >> Andy, you remember that in 1999 year, we have add to V4MD (and to Valentina >> kernel) support of JPG library in Picture field? >> >> You remember why we have made this ? :-) > > Hi Ruslan, > > we did this, because that's the only way to create a TRUE cross-plattform / > cross-application database. Director images are useless outside Director. I see, Andy. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jul 16 20:39:22 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 16 12:39:32 2004 Subject: V4MD: question: Xtra which create another Xtra ? Message-ID: Hi Director experts, In C/C++ and REALbasic we can write Set* set = field.Find( 5 ) Function find() have create and return object of new class. And C++ and REALbasic and Java and in each normal OO language This is MUST BE feature. In Director/Lingo I never have such syntax. So can we do in Lingo something as: db = new (Xtra "Vdatabase") tbl = db.CreateTable( "Person" ) Here tbl must be of type (Xtra "VTable") Is this possible in Lingo? If yes, then how effective this ? If no, then why no ? :-) Lingo looks claims that it have some OO features. So why it not have such basic feature of OO language ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jul 16 21:17:49 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 16 13:17:59 2004 Subject: [DIRECT-L] V4MD: question: Xtra which create another Xtra ? In-Reply-To: <040a01c46b5e$ad2aaed0$6400a8c0@Legolas> Message-ID: On 7/16/04 8:59 PM, "John Mathis" wrote: Hi John, > Although I can't think of an applicable example using xtras, I don't think > there is any architectural limitation on doing that. > > I know that you can achieve exactly that structure using scripts...I do it > all the time...I'm just foggy on the xtras part. Scripts ? .... But scripts this is only feature of Lingo itself, right? We develop Valentina Database Xtra itself. So scripts I think is not solution... Practical usage I have show already. In c++, Java, REALbasic versions of Valentina we have classes Vdatabase Vtable Vfield Vcursor Vset Vlink ...... db = new Vdatabase Vtable tbl = db.CreateTable( "Person" ) Vfield fld = tbl.CreateField( "FirstName", kTypeVarChar, 2000, fIdexed ) As you see we have chain of calls. Supervisor class can create new instance of other class. With XDK as far as I see we cannot do this. Bad. > John > > ----- Original Message ----- > From: "Ruslan Zasukhin" > To: > Sent: Friday, July 16, 2004 12:39 PM > Subject: [DIRECT-L] V4MD: question: Xtra which create another Xtra ? > > >> Hi Director experts, >> >> In C/C++ and REALbasic we can write >> >> Set* set = field.Find( 5 ) >> >> Function find() have create and return object of new class. >> >> And C++ and REALbasic and Java and in each normal OO language >> This is MUST BE feature. >> >> In Director/Lingo I never have such syntax. >> >> So can we do in Lingo something as: >> >> >> db = new (Xtra "Vdatabase") >> >> tbl = db.CreateTable( "Person" ) >> >> >> Here tbl must be of type (Xtra "VTable") >> >> Is this possible in Lingo? >> >> If yes, then how effective this ? >> >> If no, then why no ? :-) >> Lingo looks claims that it have some OO features. >> So why it not have such basic feature of OO language ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From chuck at mediamacros.com Fri Jul 16 14:26:56 2004 From: chuck at mediamacros.com (Chuck Neal) Date: Fri Jul 16 13:23:16 2004 Subject: [DIRECT-L] V4MD: question: Xtra which create another Xtra ? In-Reply-To: Message-ID: <05ea01c46b62$79fc9560$b900a8c0@batcomputer> Well, Xtras can call base lingo, so you could make the table then let the Xtra itself do a ... Xtra("VTable").new("table name") Call. As for doing it Directly that might get tricky as it would be an Xtra creating another Xtra instance without using lingo. Not sure the XDK allows for that. -Chuck -------------------------- Chuck Neal CEO, MediaMacros, Inc. chuck@mediamacros.com http://www.mediamacros.com -----Original Message----- From: valentina-beta-bounces@lists.macserve.net [mailto:valentina-beta-bounces@lists.macserve.net] On Behalf Of Ruslan Zasukhin Sent: Friday, July 16, 2004 2:18 PM To: Macromedia Director; valentina-beta@lists.macserve.net Subject: Re: [DIRECT-L] V4MD: question: Xtra which create another Xtra ? On 7/16/04 8:59 PM, "John Mathis" wrote: Hi John, > Although I can't think of an applicable example using xtras, I don't > think there is any architectural limitation on doing that. > > I know that you can achieve exactly that structure using scripts...I > do it all the time...I'm just foggy on the xtras part. Scripts ? .... But scripts this is only feature of Lingo itself, right? We develop Valentina Database Xtra itself. So scripts I think is not solution... Practical usage I have show already. In c++, Java, REALbasic versions of Valentina we have classes Vdatabase Vtable Vfield Vcursor Vset Vlink ...... db = new Vdatabase Vtable tbl = db.CreateTable( "Person" ) Vfield fld = tbl.CreateField( "FirstName", kTypeVarChar, 2000, fIdexed ) As you see we have chain of calls. Supervisor class can create new instance of other class. With XDK as far as I see we cannot do this. Bad. > John > > ----- Original Message ----- > From: "Ruslan Zasukhin" > To: > Sent: Friday, July 16, 2004 12:39 PM > Subject: [DIRECT-L] V4MD: question: Xtra which create another Xtra ? > > >> Hi Director experts, >> >> In C/C++ and REALbasic we can write >> >> Set* set = field.Find( 5 ) >> >> Function find() have create and return object of new class. >> >> And C++ and REALbasic and Java and in each normal OO language This is >> MUST BE feature. >> >> In Director/Lingo I never have such syntax. >> >> So can we do in Lingo something as: >> >> >> db = new (Xtra "Vdatabase") >> >> tbl = db.CreateTable( "Person" ) >> >> >> Here tbl must be of type (Xtra "VTable") >> >> Is this possible in Lingo? >> >> If yes, then how effective this ? >> >> If no, then why no ? :-) >> Lingo looks claims that it have some OO features. >> So why it not have such basic feature of OO language ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- _______________________________________________ Valentina-beta mailing list Valentina-beta@lists.macserve.net http://lists.macserve.net/mailman/listinfo/valentina-beta From sunshine at public.kherson.ua Fri Jul 16 21:29:25 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 16 13:29:30 2004 Subject: [DIRECT-L] V4MD: question: Xtra which create another Xtra ? In-Reply-To: Message-ID: On 7/16/04 9:07 PM, "Troy Rollins" wrote: > On Jul 16, 2004, at 1:39 PM, Ruslan Zasukhin wrote: Hi Troy, >> So can we do in Lingo something as: >> >> >> db = new (Xtra "Vdatabase") >> >> tbl = db.CreateTable( "Person" ) >> >> >> Here tbl must be of type (Xtra "VTable") >> >> Is this possible in Lingo? > > I know less about Valentina than you do about Lingo (e.g. almost > nothing). When, was "Xtra VTable" instantiated? During the create table > process? Yes, function CreateTable() must create new instance of "Xtra Vtable" Again, each normal OO language can do this. This is not related to Valentina itself. This is issue of *language*. > Is this something Valentina normally does (instantiate the > VTable xtra "behind the scenes)? Or does VTable normally have to be > called like - > > tbl = new(Xtra "VTable") Troy, Valentina do not have such feature now in Lingo. This is why I ask about this. I'd like to do this for Lingo developers, but it seems no way. :-( Lingo cannot do this. And NO, the DREAM is that we must not do tbl = new(Xtra "VTable") > Either way, I would think it would be possible, but the Xtra developer > would have to make that work. Is there something in the createTable > method which instantiates the VTable xtra and returns what Director > needs to access it? I want to do this, but I do not see way how. So question is: Have anybody see at least one other Xtra which can do such tricks? >> If yes, then how effective this ? >> >> If no, then why no ? :-) > > I don't know, why does Valentina require two xtras for one database? Because each Xtra should play role of different *objects* of different *classes*. One database can have several tables. Each table can have several fields. One database can have several cursors in the same time. If you look on Valentina 1.x or Arca you will see that both use tricks as reference to field // V4MD selectionid // Arca Which contains some magic numbers. This is simply tricks. In such way works *procedural* languages, but not OO. If still not clear I can give 2 examples of code and syntax for procedural style and for OO style. >> Lingo looks claims that it have some OO features. >> So why it not have such basic feature of OO language ? >> > > Ask Macromedia that one. Lingo is OOP in a generic OOP sense, but it > isn't C or RealBasic, and doesn't try to be. Macromedia do not answer for now on Xtra-dev list. So, I wonder if somebody have see that other third-party Xtras create and return behind scene other Xtra ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From chuck at mediamacros.com Fri Jul 16 14:36:17 2004 From: chuck at mediamacros.com (Chuck Neal) Date: Fri Jul 16 13:33:51 2004 Subject: [DIRECT-L] V4MD: question: Xtra which create another Xtra ? In-Reply-To: Message-ID: <05f101c46b63$c9fad5d0$b900a8c0@batcomputer> You might also try emailing Tom Higgins at Macromedia. He can probably direct you to people that can answer this better. :) -Chuck -------------------------- Chuck Neal CEO, MediaMacros, Inc. chuck@mediamacros.com http://www.mediamacros.com -----Original Message----- From: valentina-beta-bounces@lists.macserve.net [mailto:valentina-beta-bounces@lists.macserve.net] On Behalf Of Ruslan Zasukhin Sent: Friday, July 16, 2004 2:18 PM To: Macromedia Director; valentina-beta@lists.macserve.net Subject: Re: [DIRECT-L] V4MD: question: Xtra which create another Xtra ? On 7/16/04 8:59 PM, "John Mathis" wrote: Hi John, > Although I can't think of an applicable example using xtras, I don't > think there is any architectural limitation on doing that. > > I know that you can achieve exactly that structure using scripts...I > do it all the time...I'm just foggy on the xtras part. Scripts ? .... But scripts this is only feature of Lingo itself, right? We develop Valentina Database Xtra itself. So scripts I think is not solution... Practical usage I have show already. In c++, Java, REALbasic versions of Valentina we have classes Vdatabase Vtable Vfield Vcursor Vset Vlink ...... db = new Vdatabase Vtable tbl = db.CreateTable( "Person" ) Vfield fld = tbl.CreateField( "FirstName", kTypeVarChar, 2000, fIdexed ) As you see we have chain of calls. Supervisor class can create new instance of other class. With XDK as far as I see we cannot do this. Bad. > John > > ----- Original Message ----- > From: "Ruslan Zasukhin" > To: > Sent: Friday, July 16, 2004 12:39 PM > Subject: [DIRECT-L] V4MD: question: Xtra which create another Xtra ? > > >> Hi Director experts, >> >> In C/C++ and REALbasic we can write >> >> Set* set = field.Find( 5 ) >> >> Function find() have create and return object of new class. >> >> And C++ and REALbasic and Java and in each normal OO language This is >> MUST BE feature. >> >> In Director/Lingo I never have such syntax. >> >> So can we do in Lingo something as: >> >> >> db = new (Xtra "Vdatabase") >> >> tbl = db.CreateTable( "Person" ) >> >> >> Here tbl must be of type (Xtra "VTable") >> >> Is this possible in Lingo? >> >> If yes, then how effective this ? >> >> If no, then why no ? :-) >> Lingo looks claims that it have some OO features. >> So why it not have such basic feature of OO language ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- _______________________________________________ Valentina-beta mailing list Valentina-beta@lists.macserve.net http://lists.macserve.net/mailman/listinfo/valentina-beta From sunshine at public.kherson.ua Fri Jul 16 22:10:18 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 16 14:10:29 2004 Subject: [DIRECT-L] V4MD: question: Xtra which create another Xtra ? In-Reply-To: <40F82410.9030604@iqtv.com> Message-ID: On 7/16/04 9:53 PM, "Mathew Ray" wrote: > I know NOTHING about MOA or Xtra development, but in other languages you > can generally create wrapper functionality that could emulate this > behavior. Why not create a 'wrapper' xtra that would handle the creation > of additional classes within the Valentina Xtra, so that one xtra > manages the creation of all the needed database objects? > > This should definitely be possible: > > db = new (Xtra "Vdatabase") --create a new db ref > table = db.createTable("myTable") Mathew, this is exactly what I want!!! So you think this is possible? okay, we will try again check all XDK docs and examples. > but table isn't neccessarily an instance of the xtra, but an instance to > an object created within the xtra. What difference? > I agree with Troy totally in that all classes and functionality should > be part of one 'package' which is the xtra. I think you already have read my answer that YES, Macromedia XDK allow us to have several logical Xtras inside of single file Xtra which we all install into Director > Just because the xtra is > designed in an OO fashion doesn't mean the inner workings need to be > exposed to the person scripting the director app. If this was Java, I > might be more inclined to agree, but most Director developers enjoy the > 'plug-n-chug' concept where they drop one xtra into the folder and that > enables the functionality. Right. In REALbasic, developers drop into folder "plugins" just one file "V4RB". Inside of this plugin are hidden many classes. I think we confuse here Xtra -> file that is installed into Director Xtra -> some ala-class which we can instantiate in Lingo and call its handlers > In fact, I found myself having to write a Valentina parent script > wrapper myself when I used 1.0 about a year or two ago. That way I could > use my own methods to access the database without worrying about how to > phrase the parameters and such for the xtra, and make my own functions > for dealing with the data. I also think...may be use scripts as wrappers. Something similar we have made in Valentina PHP. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jul 16 22:18:33 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 16 14:18:38 2004 Subject: [DIRECT-L] V4MD: question: Xtra which create another Xtra ? In-Reply-To: <043e01c46b67$ae499d40$6400a8c0@Legolas> Message-ID: On 7/16/04 10:04 PM, "John Mathis" wrote: >> Scripts ? .... >> >> But scripts this is only feature of Lingo itself, right? >> >> We develop Valentina Database Xtra itself. So scripts I think is not >> solution... > > No, I agree -- I only mention it as an example...in many ways, xtras behave > similiar to scripts, so they may share that ability as well. > > You asked about an example -- vbScriptXtra has one main method > 'createObject'. You provide the ProgID and it returns a reference to an > object. The returned object is an instance of (apparently) a class that is > contained within vbScriptXtra. (and vbScriptXtra is distributed as just a > single file, of course.) > > The author (Eugene Shoustrov) is quite skilled, and may be able to offer > assistance on your xtra. Great! Thank you very much, John, for this info! Igor, please find and download vbScriptXtra. We will check it. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sun Jul 18 09:12:19 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jul 18 01:12:24 2004 Subject: Jon, I can open pref db in your project now. Message-ID: Bug fixed. So now on second run your app not crashes. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Sun Jul 18 08:06:51 2004 From: jda at his.com (jda) Date: Sun Jul 18 07:07:01 2004 Subject: Jon, I can open pref db in your project now. In-Reply-To: References: Message-ID: >Bug fixed. > >So now on second run your app not crashes. > Yea! Upload b8 when you feel comfortable and I'll get to work! Jon From sunshine at public.kherson.ua Mon Jul 19 10:09:25 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 19 02:09:41 2004 Subject: V4RB b8 // Message-ID: Hi all, Beta 8 * fix bug in kernel String class, which prevent opening of db. * new example SQL/Bind. Demonstrates how to use SQL query with binded parameters. You will see: * how it works with SqlExecute() and SqlSelect(). * how to use SQL92 standard syntax with ???. * how to use non-standard syntax ?:n?. * how to mix both syntaxes (not recommended although). -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Mon Jul 19 07:34:54 2004 From: jda at his.com (jda) Date: Mon Jul 19 06:35:01 2004 Subject: V4RB b8 // In-Reply-To: References: Message-ID: >Hi all, > >Beta 8 > Hi Ruslan, It crashes when I create a new database. You have my project -- please try File -> New Database. After the crash the Valentina log ends with: Cursor_Ctor... PARAM: instance = 27105296 PARAM: inDB = 26512196 PARAM: inSQLstr = "select * from thereferences where RecId=0" PARAM: inCursorLocation = 2 PARAM: inCursorType = 3 PARAM: inDirection = 1 And the system crash log has: Thread 0 Crashed: 0 Kernel_Carbon_Debug.shlb 0x0256e534 SortGroupsByRecID__Q23fbl6MapSetFv + 0x1c 1 Kernel_Carbon_Debug.shlb 0x0256defc BuildSelection__Q23fbl6MapSetFv + 0x24 2 Kernel_Carbon_Debug.shlb 0x02570fbc MakeResult__Q23fbl11TableSorterCFv + 0x30 3 Kernel_Carbon_Debug.shlb 0x02300cd4 RefreshDistinct__Q23fbl14Table_IndirectFv + 0x11c 4 Kernel_Carbon_Debug.shlb 0x02300598 put_Distinct__Q23fbl14Table_IndirectFb + 0x28 5 Kernel_Carbon_Debug.shlb 0x02157a9c CreateResultTable__Q24vsql14Node_TableExprFQ23fbl31fbl_smart_ptrUl + 0x178 6 Kernel_Carbon_Debug.shlb 0x02156124 Execute_Select_From1_Where__Q24vsql14Node_TableExprFRQ24vsql11Environment + 0x244 7 Kernel_Carbon_Debug.shlb 0x02158a20 Execute_Select_From_Where_Indirect__Q24vsql14Node_TableExprFRQ24vsql11Environment + 0x54 8 Kernel_Carbon_Debug.shlb 0x02158950 Execute_Select_From_Where__Q24vsql14Node_TableExprFRQ24vsql11Environment + 0x64 9 Kernel_Carbon_Debug.shlb 0x02154f00 ExecuteSql__Q24vsql14Node_TableExprFRQ24vsql11Environment + 0x50 10 Kernel_Carbon_Debug.shlb 0x021512b4 ExecuteSql__Q24vsql16Node_QuerySelectFRQ24vsql11Environment + 0x64 11 Kernel_Carbon_Debug.shlb 0x0216dab8 ExecuteSql__Q24vsql11Node_SelectFRQ24vsql11Environment + 0x30 12 Kernel_Carbon_Debug.shlb 0x0226535c ProceedCommand__Q24vsql8DatabaseFRQ24vsql11Environment + 0x68 13 Kernel_Carbon_Debug.shlb 0x02263d04 SqlSelect__Q24vsql8DatabaseFPCwQ24vsql15ECursorLocationQ24vsql9ELockTypeQ24vsql16ECursorDirectionQ23fbl78fbl_smart_ptr>> + 0xc4 14 Plugin 0x004fa5b8 Cursor_Ctor_Param__FP16REALobjectStructP16REALobjectStructP16REALstringStructiii + 0x19c 15 main 0x01155308 App.makeNewDatabase%b%oo + 0x71c Jon From sunshine at public.kherson.ua Mon Jul 19 16:42:15 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 19 08:42:21 2004 Subject: server release In-Reply-To: <51553388-D988-11D8-BA9B-003065B985AE@pandora.be> Message-ID: On 7/19/04 4:34 PM, "Bram Van Steenlandt" wrote: >> 2) Hmm, Igor, what about next idea which we can make in 5 minutes of >> work. >> to Vserver we add new admin command >> >> Vserver.BackUp( disk_location ) >> >> Vserver will wait until all WRITE commands finish, >> And it will prevent new WRITE commands until finish. >> >> As only all WRITE commands gone, then we can simply duplicate db files >> into >> specified locations on the HIGHEST POSSIBLE speed. > OK cool but why not > Vserver.backup("remote_server",login,password) > this way we can easely backup onto another computer wich is better > because the chances of two computer catching fire at the same time is > very small 1) if "other computer" is computer in the same LOCAL network, Then you can easy mount its HDD to Vserver computer, So command Vserver.backup( "shared_volume" ) Will give you exactly what you want, right? > and also: we now use our filemaker backups when we need to go to a > remote location (no internet because file structure for server is the > same as client) valentina also has same structure so you could say something > like > > Vserver.backup("MyPowerbook","Login","password") > > This would be super 2) you mean here DOWNLOAD db files to your *remote client* computer? ** this will be much slower and take much longer time. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From peter.de.berdt at pandora.be Wed Jul 21 13:04:03 2004 From: peter.de.berdt at pandora.be (Peter De Berdt) Date: Wed Jul 21 06:04:12 2004 Subject: [FEATURE REQUEST] Unique server number on VServer Message-ID: Would it be possible to obtain a semi-unique serial number (e.g. MAC Address) from the server through an SQL Query? Let me explain why: in the past, we used a dongle for software security, but because of various reasons, we switched to internet activation linked to the server. In 4D, we are able to obtain the MAC Address of the server, which is then sent along with some other information to our servers, which then validates if the MAC Address is already registered, if not, it adds it to the customer's info, otherwise it checks if they are the same (if they're not, it means the customer tried to install the software on a different server). I can obtain the MAC Address without a problem using MonkeyBread or Einhugur's plug-in on the client side (which in case of single user version is ok), but for the multi-user version, I would need some kind of unique server id to register the software with. Best regards Peter De Berdt From sunshine at public.kherson.ua Wed Jul 21 14:21:59 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jul 21 06:22:08 2004 Subject: [FEATURE REQUEST] Unique server number on VServer In-Reply-To: Message-ID: On 7/21/04 2:04 PM, "Peter De Berdt" wrote: > Would it be possible to obtain a semi-unique serial number (e.g. MAC > Address) from the server through an SQL Query? > > Let me explain why: in the past, we used a dongle for software > security, but because of various reasons, we switched to internet > activation linked to the server. In 4D, we are able to obtain the MAC > Address of the server, which is then sent along with some other > information to our servers, which then validates if the MAC Address is > already registered, if not, it adds it to the customer's info, > otherwise it checks if they are the same (if they're not, it means the > customer tried to install the software on a different server). > > I can obtain the MAC Address without a problem using MonkeyBread or > Einhugur's plug-in on the client side (which in case of single user > version is ok), but for the multi-user version, I would need some kind > of unique server id to register the software with. Hi Peter, I wonder if simply IP of server computer where is installed Valentina server Will be okay for you? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From giv at tlc.kherson.ua Wed Jul 21 14:23:54 2004 From: giv at tlc.kherson.ua (Igor Gomon) Date: Wed Jul 21 06:23:53 2004 Subject: [FEATURE REQUEST] Unique server number on VServer References: Message-ID: <000c01c46f15$34c83970$3b04a8c0@giv> > Would it be possible to obtain a semi-unique serial number (e.g. MAC > Address) from the server through an SQL Query? Do you mean physical address of the network connection, something like XX-XX-XX-XX-XX-XX? Currently this is not implemented, but I think that we can add this to VServer class interface. Say, String s = VServer.GetMacAddress() What do you think, Ruslan? -- Best regards, Igor Gomon ------------------------------------------------------------- e-mail: giv@tlc.kherson.ua web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://listserv.macserve.net/mailman/listinfo/valentina From sunshine at public.kherson.ua Wed Jul 21 14:33:40 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jul 21 06:33:46 2004 Subject: [FEATURE REQUEST] Unique server number on VServer In-Reply-To: <000c01c46f15$34c83970$3b04a8c0@giv> Message-ID: On 7/21/04 2:23 PM, "Igor Gomon" wrote: >> Would it be possible to obtain a semi-unique serial number (e.g. MAC >> Address) from the server through an SQL Query? > Do you mean physical address of the network connection, something like > XX-XX-XX-XX-XX-XX? > > Currently this is not implemented, but I think that we can add this to > VServer > class interface. Say, > > String s = VServer.GetMacAddress() > > What do you think, Ruslan? * I need more info about what is Mac address. * if this is simply Ethernet card address, then I think more correctly use other name. * and I'd like to get more detailed picture what you try to do. >From first letter I have not understand good. In steps... server here, my client app here, user try do not legal thing as... I want protect using this idea... -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From peter.de.berdt at pandora.be Wed Jul 21 23:59:10 2004 From: peter.de.berdt at pandora.be (Peter De Berdt) Date: Wed Jul 21 16:59:19 2004 Subject: [FEATURE REQUEST] Unique server number on VServer In-Reply-To: References: Message-ID: <3248E36E-DB61-11D8-90C6-000393DB2B60@pandora.be> >>> Would it be possible to obtain a semi-unique serial number (e.g. MAC >>> Address) from the server through an SQL Query? >> Do you mean physical address of the network connection, something like >> XX-XX-XX-XX-XX-XX? >> >> Currently this is not implemented, but I think that we can add this to >> VServer >> class interface. Say, >> >> String s = VServer.GetMacAddress() >> That's exactly what I'd need >> What do you think, Ruslan? > > * I need more info about what is Mac address. > > * if this is simply Ethernet card address, then I think more correctly > use > other name. Yes, it simply the Ethernet card address, but in all programming languages, it's called MAC Address: Media Access Control Address. The only thing that can break it, is when there are two or more network interfaces available on the system (e.g. Ethernet and Airport). It's a simple toolbox call, if I'm right. You can see it on MacOS X when you open up System Profiler and look under network (e.g. 00:30:65:12:44:5c). The IP address won't do, it's very easily changed with basic system knowledge. > > * and I'd like to get more detailed picture what you try to do. >> From first letter I have not understand good. > In steps... > server here, > my client app here, > user try do not legal thing as... > I want protect using this idea... > OK, let me explain: A year or two back, we used Rainbow dongles to protect our software from being installed on two servers. Due to various reasons (they didn't work on MacOS X, customers that switched systems needed a new dongle, the price went up), we decided to implement a new way of preventing our software to be installed on two systems: 1. Using the client's id (every customer has its own id in our database) and the most unique number you can obtain on a computer system, being the MAC Address (it can be spoofed and it has its flaws, but for decent protection it's about the only thing you can use), we create a license key (an encrypted string). This is done on a client, but it gets the MAC Address from the server (because each workstation has a different MAC Address of course). 2. This license key is sent to our own company server (by pressing a button in our application), which is running a database containing all customer licenses and activated modules (our software has several modules that can be active or disabled). Now we can have three scenarios: ? The customer's license has an empty MAC Address field in our database (first use of our software) -> The MAC Address is extracted from the license key and is put in our database, an encrypted string is sent back, approving the license and activating the purchased modules and number of concurrent users ? The customer's license already has a MAC Address field filled in in our database and it matches the one being sent in the request -> the customer gets an approved license back and activates the purchased modules and number of concurrent users (e.g. the purchased an extra user or module) ? The customer's license already has a MAC Address field filled in in our database and it doesn't match the one being sent in the request -> the customer gets a message saying his system information has changed and he needs to provide a reason why. This reason is then manually reviewed and if it is a valid reason, the MAC Address field in our database is cleared so they can reregister it With single user applications, I can just use (in RB 5.5): Dim ni as NetworkInterface ni=System.GetNetworkInterface StaticText1.Text=ni.MacAddress However, for a multi-user version of our app (using Valentina Server), I would need to be able to get the MAC Address of the server and I would prefer if I didn't have to put an extra application besides Valentina Server to do just this. Now you may ask: why not register the application on the server? Because most of the times, it's one of the employees that calls for support and they don't have access to the server or don't know how to use it. If we can tell them to push a button in our app on their workstation (and they have an internet connection on their computer), it's something they CAN do :-) Hope this clears things up... Best regards Peter De Berdt From sunshine at public.kherson.ua Thu Jul 22 01:58:02 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jul 21 17:58:10 2004 Subject: [FEATURE REQUEST] Unique server number on VServer In-Reply-To: <3248E36E-DB61-11D8-90C6-000393DB2B60@pandora.be> Message-ID: On 7/22/04 12:59 AM, "Peter De Berdt" wrote: >>> What do you think, Ruslan? >> >> * I need more info about what is Mac address. >> >> * if this is simply Ethernet card address, then I think more correctly >> use >> other name. > > Yes, it simply the Ethernet card address, but in all programming > languages, it's called MAC Address: Media Access Control Address. Aha, yes, now I remember. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jul 22 02:10:23 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jul 21 18:10:31 2004 Subject: [FEATURE REQUEST] Unique server number on VServer In-Reply-To: <3248E36E-DB61-11D8-90C6-000393DB2B60@pandora.be> Message-ID: On 7/22/04 12:59 AM, "Peter De Berdt" wrote: > Yes, it simply the Ethernet card address, but in all programming > languages, it's called MAC Address: Media Access Control Address. > > The only thing that can break it, is when there are two or more network > interfaces available on the system (e.g. Ethernet and Airport). It's a > simple toolbox call, if I'm right. You can see it on MacOS X when you > open up System Profiler and look under network (e.g. > 00:30:65:12:44:5c). > > The IP address won't do, it's very easily changed with basic system > knowledge. >> >> * and I'd like to get more detailed picture what you try to do. >>> From first letter I have not understand good. >> In steps... >> server here, >> my client app here, >> user try do not legal thing as... >> I want protect using this idea... >> > OK, let me explain: > > A year or two back, we used Rainbow dongles to protect our software > from being installed on two servers. Due to various reasons (they > didn't work on MacOS X, customers that switched systems needed a new > dongle, the price went up), we decided to implement a new way of > preventing our software to be installed on two systems: > > 1. Using the client's id (every customer has its own id in our > database) and the most unique number you can obtain on a computer > system, being the MAC Address (it can be spoofed and it has its flaws, > but for decent protection it's about the only thing you can use), we > create a license key (an encrypted string). This is done on a client, > but it gets the MAC Address from the server (because each workstation > has a different MAC Address of course). Well, I think we can add this as FUNCTION for BaseObject method. Then no need to change API and protocols. But then you will need create BaseObject method in some table. Hmm, not very logical. Another way -- as Igor suggests: add it as property to Vserver class. Or may be evene better. It seems we have not in Vserver Set/Get property methods? Right? Then let's add it here. Igor, I think ACE have algorithm ho do this. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jul 22 10:41:46 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 22 02:42:00 2004 Subject: Jon, please correct this Message-ID: Hi Jon, When we create new db in your project, You start add some records into misc table. I see in the log file strange order of creation/destruction of cursors. Cursor_Ctor... PARAM: instance = 26792288 PARAM: inDB = 26796632 PARAM: inSQLstr = "select * from misc where RecId=0" PARAM: inCursorLocation = 2 PARAM: inCursorType = 3 PARAM: inDirection = 1 return > Cursor_Destructor... > PARAM: instance = 26690640 > return > > Field_Destructor... > PARAM: inFld = 26984016 > VAR: data->mpField = 0 > return > > Field_Destructor... > PARAM: inFld = 26984108 > VAR: data->mpField = 0 > return > > Field_Destructor... > PARAM: inFld = 26984064 > VAR: data->mpField = 0 > return Cursor_SetRecBlank... PARAM: inCursor = 26792288 return Cursor_GetFieldByName... PARAM: inCursor = 26792288 PARAM: inName = "minimumVersionRequired" return object = 26984064 Field_SetString... PARAM: inFld = 26984064 PARAM: inValue = "800" return Cursor_AddRecord... PARAM: inCursor = 26792288 return (int) res = 1 In the blue color above you see that when you have create one cursor the previous start to die. I am sure that you have code BY LOGIC as next curs = db.SqlSelect() ... curs = db.SqlSelect() This is correct code from point of view of REALbasic, but this is not very good from point of view Valentina, and more correctly say: functions that allocates/lock/eat resources The first cursor LOCK records, so may happens that you simply will not be able create second cursor because it also will want the same records. The CORRECT WAY is to free resources ASAP. curs = db.SqlSelect() ... curs = nil // this will start destructors curs = db.SqlSelect() curs = nil Also I think in your code you keep Cursor variable as Window property or may be application class property. And you have forget to NIL it before you close db. This cause now new crash in 2.0 which I will fix now. Although it still good idea destroy all objects before db.close(). And I will try to add feature that V4RB will write into log WARNING in case it find object destroyed AFTER db.close(). In any case fix above issue with cursors and send me new project. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Thu Jul 22 08:49:00 2004 From: jda at his.com (jda) Date: Thu Jul 22 07:49:14 2004 Subject: Jon, please correct this In-Reply-To: References: Message-ID: >In the blue color above you see that when you have create one cursor the >previous start to die. > >I am sure that you have code BY LOGIC as next > > curs = db.SqlSelect() > ... > > curs = db.SqlSelect() > > >This is correct code from point of view of REALbasic, but this is not very >good from point of view Valentina, and more correctly say: > functions that allocates/lock/eat resources > >The first cursor LOCK records, so may happens that you simply will not be >able create second cursor because it also will want the same records. But the second cursor is a selection from a different table, so it can't select the same records. I thought it wouldn't matter if I didn't nil out the first reference and it would be closed by RB. But I'll nil it out myself, as you suggest. Done. > > >Also I think in your code you keep Cursor variable as Window property or may >be application class property. And you have forget to NIL it before you >close db. This cause now new crash in 2.0 which I will fix now. Although it >still good idea destroy all objects before db.close(). OK. > >And I will try to add feature that V4RB will write into log WARNING in case >it find object destroyed AFTER db.close(). > >In any case fix above issue with cursors and send me new project. > I'll send it in a few minutes. Jon From sunshine at public.kherson.ua Thu Jul 22 18:50:27 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 22 10:50:34 2004 Subject: Jon, please correct this In-Reply-To: Message-ID: On 7/22/04 3:49 PM, "jda" wrote: >> In the blue color above you see that when you have create one cursor the >> previous start to die. >> >> I am sure that you have code BY LOGIC as next >> >> curs = db.SqlSelect() >> ... >> >> curs = db.SqlSelect() >> >> >> This is correct code from point of view of REALbasic, but this is not very >> good from point of view Valentina, and more correctly say: >> functions that allocates/lock/eat resources >> >> The first cursor LOCK records, so may happens that you simply will not be >> able create second cursor because it also will want the same records. > > But the second cursor is a selection from a different table, so it > can't select the same records. I thought it wouldn't matter if I > didn't nil out the first reference and it would be closed by RB. But > I'll nil it out myself, as you suggest. Points are: 1) YES in your case you do not have conflict between record locks. But if you will use the same STYLE in other places you may get into trouble. Better always to use the same good style. 2) in your project you keep cursor as property of window. Yes, REALbasic will SELF kill it, but WHEN? May happens that cursor will live 30 minutes, and all this time it will keep records locked. Cursors must be "good citizens" and they should release their resources AS SOON AS POSSIBLE. 3) btw, this is why I recommend correct and db.VershionSchema access. it is always good idea consider ANY access to db kernel as HARD AND LONG TIME operation. Even if it happens in 0.0001 of second. This may prepare your app for multi-user way. When you have many users your simple call may take longer time because of waiting for other user. Not each call, but again better use good style always and keep self safe. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jul 22 20:32:22 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 22 12:32:30 2004 Subject: V4RB b9 uploaded Message-ID: Hi All, * FIXED bug on db.open() * improved work with Classes * FIXED bug with SELECT blobFld FROM T ---------- Jon, * Now I can open close pref db many times. * I can create new main db * I can open close main db many times * I can add record into main db and navigate them * I can open db and records here. There was fail of SQL query on exception when I have try to make find. So we need check this. Also I have strange problem. When I Build app from your project, then on start it shows 5-7 dialogs that complain on Alias TT plugin. So try to build app and check if you have this problem also. I have had it 2 weeks ago, but it have disappear. Now it come back. I do not see reasons why. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Thu Jul 22 14:20:28 2004 From: jda at his.com (jda) Date: Thu Jul 22 13:20:43 2004 Subject: V4RB b9 uploaded In-Reply-To: References: Message-ID: >Hi All, > >* FIXED bug on db.open() > >* improved work with Classes > >* FIXED bug with SELECT blobFld FROM T Sorry, but I don't have the URL at this computer. Can you post that again, please? > >So try to build app and check if you have this problem also. OK. Jon From sunshine at public.kherson.ua Thu Jul 22 21:26:21 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 22 13:26:31 2004 Subject: V4RB b9 uploaded In-Reply-To: Message-ID: On 7/22/04 9:20 PM, "jda" wrote: >> Hi All, >> >> * FIXED bug on db.open() >> >> * improved work with Classes >> >> * FIXED bug with SELECT blobFld FROM T > > Sorry, but I don't have the URL at this computer. Can you post that > again, please? http://paradigmasoft.com/download/v2_beta/download.html -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jul 22 21:27:35 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 22 13:27:48 2004 Subject: V4RB b9 uploaded In-Reply-To: Message-ID: On 7/22/04 8:32 PM, "Ruslan Zasukhin" wrote: > Jon, > > * Now I can open close pref db many times. > * I can create new main db > * I can open close main db many times > * I can add record into main db and navigate them > * I can open db and records here. > > There was fail of SQL query on exception when I have try to make find. > So we need check this. I have found that problem is caused by left() function ----------------------------------------------- line 1:41: unexpected token: ( line 1:42: expecting ')', found 'left' line 1:56: expecting ')', found ',' line 1:59: unexpected token: ) : unexpected AST node: : unexpected AST node: select id,hit from thereferences where ((left(allFields, 1) = 'PETER')) order by id Select QuerySelect 1 ( mAll ) SelectList SelectList_Elem_Expr id SelectList_Elem_Expr hit TableExpr Table_NonJoin_Table thereferences Select QueryTableRef Table_NonJoin_Table id ----------------------------------------------- So we will start work in this area now. searches on strings. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Thu Jul 22 14:34:36 2004 From: jda at his.com (jda) Date: Thu Jul 22 13:34:47 2004 Subject: V4RB b9 uploaded In-Reply-To: References: Message-ID: > >I have found that problem is caused by left() function > >----------------------------------------------- >line 1:41: unexpected token: ( >line 1:42: expecting ')', found 'left' >line 1:56: expecting ')', found ',' >line 1:59: unexpected token: ) >: unexpected AST node: >: unexpected AST node: >select id,hit from thereferences where ((left(allFields, 1) = 'PETER')) Hm, wasn't the integer parameter in LEFT unnecessary? I mean, I seem to recall it doesn't do anything, but was left over from some old implementation (or was never implemented)... Jon From sunshine at public.kherson.ua Thu Jul 22 21:36:55 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 22 13:37:00 2004 Subject: V4RB b9 uploaded In-Reply-To: Message-ID: On 7/22/04 9:34 PM, "jda" wrote: >> >> I have found that problem is caused by left() function >> >> ----------------------------------------------- >> line 1:41: unexpected token: ( >> line 1:42: expecting ')', found 'left' >> line 1:56: expecting ')', found ',' >> line 1:59: unexpected token: ) >> : unexpected AST node: >> : unexpected AST node: >> select id,hit from thereferences where ((left(allFields, 1) = 'PETER')) > > > Hm, wasn't the integer parameter in LEFT unnecessary? I mean, I seem > to recall it doesn't do anything, but was left over from some old > implementation (or was never implemented)... Actually on 2.0 left() in the sense of Valentina 1.x Is not implemented yet. BY THE WAY: if you have LIKE in your code then you should change it on REGEX -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Thu Jul 22 21:43:29 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 22 13:43:34 2004 Subject: V4RB b9 uploaded In-Reply-To: Message-ID: On 7/22/04 9:34 PM, "jda" wrote: >> >> I have found that problem is caused by left() function >> >> ----------------------------------------------- >> line 1:41: unexpected token: ( >> line 1:42: expecting ')', found 'left' >> line 1:56: expecting ')', found ',' >> line 1:59: unexpected token: ) >> : unexpected AST node: >> : unexpected AST node: >> select id,hit from thereferences where ((left(allFields, 1) = 'PETER')) > > > Hm, wasn't the integer parameter in LEFT unnecessary? I mean, I seem > to recall it doesn't do anything, but was left over from some old > implementation (or was never implemented)... Try to remove (( )) around left() Btw, it seems I cannot compile you latest project. I try more -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Thu Jul 22 14:44:24 2004 From: jda at his.com (jda) Date: Thu Jul 22 13:44:38 2004 Subject: V4RB b9 uploaded In-Reply-To: References: Message-ID: > > >Actually on 2.0 left() in the sense of Valentina 1.x >Is not implemented yet. > >BY THE WAY: > > if you have LIKE in your code > then you should change it on REGEX > Sorry, I don't know what you mean by that. I do use LIKE frequently. What do I have to do in my code to convert from 1.x to 2.x? Jon P.S. I can compile and run my project, for the first time. Congratulations! I don't get any warnings or errors about the TT alias plug-in. I'm also having some problem saving and retrieving some data in my Preferences database -- once I track that down I'll get back to you (off-list). From sunshine at public.kherson.ua Thu Jul 22 21:48:39 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 22 13:48:45 2004 Subject: V4RB b9 uploaded In-Reply-To: Message-ID: On 7/22/04 9:44 PM, "jda" wrote: >> Actually on 2.0 left() in the sense of Valentina 1.x >> Is not implemented yet. >> >> BY THE WAY: >> >> if you have LIKE in your code >> then you should change it on REGEX >> > > Sorry, I don't know what you mean by that. I do use LIKE frequently. > What do I have to do in my code to convert from 1.x to 2.x? Valentina 2.0 will use SQL 92 syntax and rules for LIKE. fld LIKE '__fff%' So we cannot use anymore LIKE with sense of Valentina 1.x. To resolve this we have now new key word REGEX You need simple do find/replace in all your project and replace LIKE -> REGEX > Jon > > P.S. I can compile and run my project, for the first time. > Congratulations! I don't get any warnings or errors about the TT > alias plug-in. When you start COMPILED app, yes? > I'm also having some problem saving and retrieving > some data in my Preferences database -- once I track that down I'll > get back to you (off-list). Ok, btw, I did not test your prefs window. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Thu Jul 22 14:59:32 2004 From: jda at his.com (jda) Date: Thu Jul 22 13:59:44 2004 Subject: V4RB b9 uploaded In-Reply-To: References: Message-ID: > > > P.S. I can compile and run my project, for the first time. >> Congratulations! I don't get any warnings or errors about the TT >> alias plug-in. > >When you start COMPILED app, yes? Yes, the compiled app launches fine. > >> I'm also having some problem saving and retrieving >> some data in my Preferences database -- once I track that down I'll >> get back to you (off-list). > >Ok, btw, I did not test your prefs window. > I think I see the problem. In 1.x I passed a variant to Valentina, which was clever enough to figure it out: prefsDB.prefs.Field(fldToUpdate).SetString(updateInfo) //updateInfo is a variant Now, when I pass it a string of numbers, it seems to store only half the data, each byte being preceded by a null byte (I assume it's UTF-16). So, in 2.0, do I need to convert the variant to it's correct type before storing it in a Valentina database? Or is this something you'll be fixing (it's convenient, of course, to have Valentina do the conversion for you, but easy to work around if you're not going to change the current 2.x behavior). Jon From sunshine at public.kherson.ua Thu Jul 22 22:23:00 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 22 14:23:07 2004 Subject: V4RB b9 uploaded In-Reply-To: Message-ID: On 7/22/04 9:59 PM, "jda" wrote: >>> I'm also having some problem saving and retrieving >>> some data in my Preferences database -- once I track that down I'll >>> get back to you (off-list). >> >> Ok, btw, I did not test your prefs window. >> > > I think I see the problem. > > In 1.x I passed a variant to Valentina, which was clever enough to > figure it out: > > prefsDB.prefs.Field(fldToUpdate).SetString(updateInfo) //updateInfo > is a variant And this have work in 1.x ???!! 1.x never have use variants, only in 2.0 I have add them. May be REALbasic self have convert to String ? > Now, when I pass it a string of numbers, it seems to store only half > the data, each byte being preceded by a null byte (I assume it's > UTF-16). > > So, in 2.0, do I need to convert the variant to it's correct type > before storing it in a Valentina database? Or is this something > you'll be fixing (it's convenient, of course, to have Valentina do > the conversion for you, but easy to work around if you're not going > to change the current 2.x behavior). I think this can be fixed. On the other hand, function SetString() is declared as excepting String parameter! I need look on this later. If you correct this then it works ? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Thu Jul 22 15:40:44 2004 From: jda at his.com (jda) Date: Thu Jul 22 14:40:59 2004 Subject: V4RB b9 uploaded In-Reply-To: References: Message-ID: > > >On the other hand, function SetString() is declared as > excepting String parameter! > >I need look on this later. > >If you correct this then it works ? > No. I think this is the first Unicode problem... I have defined a field SN as SN = CreateStringField("SN", 30) I'm storing a 16 digit string here, like: 1234567890123456 -- I converted to UTF8 before storing When I retrieve it with this code: SN = prefsDB.prefs.SN.value I get SN = 1 2 3 4 5 6 7 8 where the space before each number is a null byte (00) -- obviously UTF-16. Can you compile my project yet? If not, trash Preferences and try again. Jon From sunshine at public.kherson.ua Thu Jul 22 22:55:35 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 22 14:55:43 2004 Subject: V4RB b9 uploaded In-Reply-To: Message-ID: On 7/22/04 10:40 PM, "jda" wrote: >> >> >> On the other hand, function SetString() is declared as >> excepting String parameter! >> >> I need look on this later. >> >> If you correct this then it works ? >> > > No. > > I think this is the first Unicode problem... > > I have defined a field SN as > > SN = CreateStringField("SN", 30) > > I'm storing a 16 digit string here, like: > > 1234567890123456 -- I converted to UTF8 before storing > > When I retrieve it with this code: > > SN = prefsDB.prefs.SN.value > > I get SN = > > 1 2 3 4 5 6 7 8 > > where the space before each number is a null byte (00) -- obviously UTF-16. > > Can you compile my project yet? If not, trash Preferences and try again. Problem not in YOUR preferences RB complain on line prefs.RecordCount Looks like plugin not found. Strange -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Thu Jul 22 15:57:03 2004 From: jda at his.com (jda) Date: Thu Jul 22 14:57:14 2004 Subject: Assigning Creator type In-Reply-To: References: Message-ID: In 1.x I used these lines to create a database and assign a Mac Creator: tempDataBase = new myDataBase tempDataBase.Creator = "ABCD" tempDataBase.Create(f, 1, 2 * 1024 ) I see that in 2.0 the Creator is always "VALA", not the one I assigned. Jon From sunshine at public.kherson.ua Thu Jul 22 23:01:45 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 22 15:01:51 2004 Subject: Assigning Creator type In-Reply-To: Message-ID: On 7/22/04 10:57 PM, "jda" wrote: > In 1.x I used these lines to create a database and assign a Mac Creator: > > tempDataBase = new myDataBase > tempDataBase.Creator = "ABCD" > tempDataBase.Create(f, 1, 2 * 1024 ) > > I see that in 2.0 the Creator is always "VALA", not the one I assigned. Ok, I will check -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jul 23 11:33:24 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 23 03:33:31 2004 Subject: DONE: MAC: on open will be used CREATOR of .vdb file Message-ID: -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jul 23 14:37:54 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 23 06:38:01 2004 Subject: DONE: Mac Types will be assigned to volumes of db. Message-ID: -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From ernestogiannotta at tiscalinet.it Fri Jul 23 19:39:54 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Fri Jul 23 12:40:40 2004 Subject: Assigning Creator type In-Reply-To: Message-ID: on 22-07-2004 21:57, jda at jda@his.com wrote: > In 1.x I used these lines to create a database and assign a Mac Creator: > > tempDataBase = new myDataBase > tempDataBase.Creator = "ABCD" > tempDataBase.Create(f, 1, 2 * 1024 ) > > I see that in 2.0 the Creator is always "VALA", not the one I assigned. > old issue... assign tempDataBase.Creator = "ABCD" after DB creation Cool Runnings, Erne. -- | e r | Ernesto Giannotta | n e | Musical Box - a media store From jda at his.com Fri Jul 23 14:11:14 2004 From: jda at his.com (jda) Date: Fri Jul 23 13:11:26 2004 Subject: Assigning Creator type In-Reply-To: References: Message-ID: >on 22-07-2004 21:57, jda at jda@his.com wrote: > >> In 1.x I used these lines to create a database and assign a Mac Creator: >> >> tempDataBase = new myDataBase > > tempDataBase.Creator = "ABCD" >> tempDataBase.Create(f, 1, 2 * 1024 ) >> >> I see that in 2.0 the Creator is always "VALA", not the one I assigned. >> > >old issue... > >assign >tempDataBase.Creator = "ABCD" >after DB creation > erne, I've been using the method tempDataBase.Creator = "ABCD" successfully for several years, always with the current V1.x release. Anyway, it seems Ruslan has now made this work in 2.0. Jon From sunshine at public.kherson.ua Fri Jul 23 21:16:20 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Fri Jul 23 13:16:56 2004 Subject: Assigning Creator type In-Reply-To: Message-ID: On 7/23/04 8:39 PM, "erne" wrote: > on 22-07-2004 21:57, jda at jda@his.com wrote: > >> In 1.x I used these lines to create a database and assign a Mac Creator: >> >> tempDataBase = new myDataBase >> tempDataBase.Creator = "ABCD" >> tempDataBase.Create(f, 1, 2 * 1024 ) >> >> I see that in 2.0 the Creator is always "VALA", not the one I assigned. >> > > old issue... > > assign > tempDataBase.Creator = "ABCD" > after DB creation Erne, it seems you are wrong. Must be BEFORE create() -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From ernestogiannotta at tiscalinet.it Sat Jul 24 09:04:21 2004 From: ernestogiannotta at tiscalinet.it (erne) Date: Sat Jul 24 02:06:23 2004 Subject: Assigning Creator type In-Reply-To: Message-ID: on 23-07-2004 20:16, Ruslan Zasukhin at sunshine@public.kherson.ua wrote: >>> In 1.x I used these lines to create a database and assign a Mac Creator: >>> >>> tempDataBase = new myDataBase >>> tempDataBase.Creator = "ABCD" >>> tempDataBase.Create(f, 1, 2 * 1024 ) >>> >>> I see that in 2.0 the Creator is always "VALA", not the one I assigned. >>> >> >> old issue... >> >> assign >> tempDataBase.Creator = "ABCD" >> after DB creation > > Erne, it seems you are wrong. > > Must be BEFORE create() > ooops! sorry guys! I was confusing with the DB.SchemaVersion prop I better think twice before open mouth :-) Cool Runnings, Erne. -- | e r | Ernesto Giannotta | n e | Musical Box - a media store From sunshine at public.kherson.ua Sat Jul 24 10:12:24 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 24 02:12:37 2004 Subject: NEW: V4RB: Valentina.ThrowExceptions() Message-ID: On default Valentina 2.0 throw VException class. If you want port an existing V4RB 1.x project, then you may find useful disable exceptions from V4RB. You can do this using call Valentina.ThrowExceptions( false ). In this case Valentina will return error codes in old way using Vdatabase.ErrCode. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jul 24 10:15:28 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 24 02:15:34 2004 Subject: [V4RB/CHG] Valentina.GetVersion renamed to Valentina.Version Message-ID: I think this is more correct because it looks as a property. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jul 24 10:33:29 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 24 02:33:38 2004 Subject: [V4RB/NEW] Valentina. PathToVComponents() Message-ID: DECLARATION: PathToVComponents( Assigns inPath as FolderIterm ) DESCRIPTION: If you want put in your distribution the Vcomponents folder into place other than "/Library/CFMSupport" then you can use this function to specify in your code that new location. -------------- Notes: not tested and not finished yet. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jul 24 10:37:07 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 24 02:37:13 2004 Subject: [V4RB/NEW] Valentina.PathToICU() Message-ID: DECLARATION: PathToICU( Assigns inPath as FolderIterm) DESCRIPTION: On MacOS X, the IBM's library ICU already is installed. including big 8MB .dat file. You can in your distribution not include this file, but you should then in code specify path to Apple's file. The path is stable as is "..............." Potential problem with this way: may happens that new version of OS X will ship new .dat file, which will not be compatible with V4RB build. Although not many chances for this. .dat file has stable format. ----------- Notes: not tested and finished yet. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Sat Jul 24 11:00:29 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 24 03:00:39 2004 Subject: [V4RB/FIXED] Vstring.Value Message-ID: Now it will return correct UTF8 value. NOTE: here was old 1.x code yet. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Sun Jul 25 12:13:33 2004 From: jda at his.com (jda) Date: Sun Jul 25 11:13:42 2004 Subject: EscapeString fails In-Reply-To: References: Message-ID: I'm not sure if this is to be expected at this point in the beta, but FYI s = Valentina.EscapeString(s, false) returns a null string (it was a UTF-8 string, but only ASCII characters). Jon From sunshine at public.kherson.ua Sun Jul 25 19:41:04 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sun Jul 25 11:41:15 2004 Subject: EscapeString fails In-Reply-To: Message-ID: On 7/25/04 7:13 PM, "jda" wrote: > I'm not sure if this is to be expected at this point in the beta, but FYI > > s = Valentina.EscapeString(s, false) > > returns a null string (it was a UTF-8 string, but only ASCII characters). Ok, I will check -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Jul 26 17:03:33 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 26 09:03:41 2004 Subject: [KERNEL/NEW] Table.Dump() and Table.LoadDump() Message-ID: These functions are similar to Vdatabase class methods. Using them you can dump single table of a db into XML or SQL dump. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Jul 26 17:05:25 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 26 09:05:30 2004 Subject: [KERNEL/NEW] Parameters for Dump() Message-ID: Now Dump have more parameters DumpType kStructureOnly kStructureAndRecords kRecordsOnly FormatIt -- if you want to format text file for human read. Like in 1.x this adds a lots of space and tabs into file. true/alse. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Jul 26 17:07:37 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 26 09:09:21 2004 Subject: [KERNEL/NEW] LoadDump() now can load into existed db and table Message-ID: Yes, now we can open some existed db, and do for it LoadDump( xmk file ), so al records will be INSERTED into db. Of course this assumes that XML file have similar structure. The same is true for Table. You can have table with e.g. 1000 records, Somebody send you file produced by his Table.Dump(). You load this XML file into your table into your database. Records will be appended -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Jul 26 17:07:58 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 26 09:09:27 2004 Subject: [V4RB/NEW] Example Dump_XML_Database Message-ID: -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Jul 26 17:08:19 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 26 09:09:31 2004 Subject: [V4RB/NEW] Example Dump_XML_Table Message-ID: -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Mon Jul 26 17:52:55 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 26 09:53:06 2004 Subject: [V4MD/NEW] Work with .picture and .image Message-ID: Hi Director users, Igor have get success (on Windows for now). So V4MD 2.0 will be able work with 3 syntaxes: 1) 1.x SetPicture( cast member ) GetPicture( cast member ) 2) new p = .picture SetPicture( p ) p = GetPicture() 3) p = .image SetImage( p ) p = GetImage() Right now it works for 24 and 32-bit images. Some problems with 16 bit yet Do we need 16 bit images? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From andy at foxwerk.de Mon Jul 26 17:46:04 2004 From: andy at foxwerk.de (Andy Fuchs) Date: Mon Jul 26 10:46:13 2004 Subject: [V4MD/NEW] Work with .picture and .image In-Reply-To: Message-ID: at 26.07.2004 16:52 Uhr, Ruslan Zasukhin wrote: > > Right now it works for 24 and 32-bit images. > > Some problems with 16 bit yet > Do we need 16 bit images? Hi Ruslan,, well you could convert a 16bit image into 24/32 bit internally to work around the problem. The only problem is that you have to keep a flag, so that the output gets converted back... -- -- Andy Fuchs -- silent movie media -- mailto:andy@foxwerk.de -- http://www.silent-movie-media.com From jda at his.com Mon Jul 26 12:02:22 2004 From: jda at his.com (jda) Date: Mon Jul 26 11:02:35 2004 Subject: DB size Message-ID: I've noticed that an empty db in v2 is about twice as large as one in 1.x. I have lots of Text fields. Is the increase in size because internal storage is now UTF-16 (it is an empty db, remember)? Or is this due to factors that will be removed when the beta process is finished? Jon From sunshine at public.kherson.ua Mon Jul 26 19:32:38 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 26 11:32:43 2004 Subject: DB size In-Reply-To: Message-ID: On 7/26/04 7:02 PM, "jda" wrote: > I've noticed that an empty db in v2 is about twice as large as one in > 1.x. I have lots of Text fields. Is the increase in size because > internal storage is now UTF-16 (it is an empty db, remember)? Or is > this due to factors that will be removed when the beta process is > finished? Hmm, We need check this. If db is empty, then it is not matter if we store UTF16 or UTF8. There is no text/string values yet. What exactly sizes you see? -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Mon Jul 26 12:40:14 2004 From: jda at his.com (jda) Date: Mon Jul 26 11:40:20 2004 Subject: DB size In-Reply-To: References: Message-ID: > >Hmm, > >We need check this. If db is empty, then it is not matter if we store UTF16 >or UTF8. There is no text/string values yet. > >What exactly sizes you see? > Initially, for the Preferences database the size went from about 240K to about 500K. For a real data storage database it went from about 320K to almost 600K. I've re-written tables in both these databases so that there is one standard record that I access via a "propertyname" field to get different stored values (defaults, preferences, etc.) and that has reduced the size. But of course that would have reduced the size in the 1.x databases, too. So the difference is about 2X. Jon From srunkel at hypix.com Mon Jul 26 09:53:46 2004 From: srunkel at hypix.com (Scott Runkel) Date: Mon Jul 26 13:37:43 2004 Subject: [V4MD/NEW] Work with .picture and .image References: Message-ID: <01fa01c47331$1e6e8dd0$0200a8c0@SCOTT3> > > Right now it works for 24 and 32-bit images. > > > > Some problems with 16 bit yet > > Do we need 16 bit images? I, for one, always use 16-bit images in Director. When you have hundreds or possibly thousands of images in a project, and you want to work quickly, 16-bit is much faster in Director than 24- or 32-bit. The Paint window, for instance, really drags with 24- or 32-bit. 24- or 32-bit images just take longer to load and display, and for me the gain in quality isn't helpful enough to justify. -SR Scott Runkel Director of Technology Hypix Media, Inc. 503-722-2123 /valentina-beta From sunshine at public.kherson.ua Mon Jul 26 22:23:30 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Mon Jul 26 14:26:00 2004 Subject: [V4MD/NEW] Work with .picture and .image In-Reply-To: <01fa01c47331$1e6e8dd0$0200a8c0@SCOTT3> Message-ID: On 7/26/04 7:53 PM, "Scott Runkel" wrote: >>> Right now it works for 24 and 32-bit images. >>> >>> Some problems with 16 bit yet >>> Do we need 16 bit images? > > I, for one, always use 16-bit images in Director. When you have hundreds or > possibly thousands of images in a project, and you want to work quickly, > 16-bit > is much faster in Director than 24- or 32-bit. The Paint window, for instance, > really drags with 24- or 32-bit. 24- or 32-bit images just take longer to load > and display, and for me the gain in quality isn't helpful enough to justify. Okay, Scott, Then we will make them working. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From martin.kloss at gmx.de Tue Jul 27 09:39:02 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Tue Jul 27 02:38:57 2004 Subject: [V4MD/NEW] Work with .picture and .image In-Reply-To: References: Message-ID: <6.1.1.1.2.20040727093638.01f6f338@pop.gmx.de> At 16:52 26.07.2004, you wrote: >Igor have get success (on Windows for now). >So V4MD 2.0 will be able work with 3 syntaxes: Very nice, that's great news. >Some problems with 16 bit yet >Do we need 16 bit images? Yes, more than anything else, I think. I would guess that most people use 16bit images, only sometimes 32bit and close to never 24bit. Martin. Martin Kloss Need music? http://www.selling-sound.com Like the author? Buy the book at: http://www.amazon.de/exec/obidos/ASIN/3898422194/lingmmugd Get your daily dose of Lingo at the LingoPark: http://www.lingopark.de From sunshine at public.kherson.ua Tue Jul 27 15:20:18 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 27 07:22:46 2004 Subject: [ANN] V4RB b10 uploaded. Message-ID: Hi All, KERNEL/NEW * Table.Dump() and Table.LoadDump() methods. KERNEL/NEW * Parameters for Dump() KERNEL/NEW * LoadDump() now can load into existed db and table SQL/BUG * now Left() function not conflict with 'Left' keyword of SQL. V4RB/CHG * Valentina.GetVersion renamed to Valentina.Version V4RB/NEW * Valentina.ThrowExceptions() V4RB/NEW * Valentina. PathToVComponents() // not works yet V4RB/NEW * Valentina.PathToICU() // not works yet V4RB/NEW Example Dump_XML_Database V4RB/NEW Example Dump_XML_Table V4RB/BUG * Vstring.Value NOTE: We have found in SQL92 that standard require that keywords CANNOT be identifiers (i.e. Names of fields and tables). Please keep this in mind. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Tue Jul 27 08:54:13 2004 From: jda at his.com (jda) Date: Tue Jul 27 07:54:24 2004 Subject: [ANN] V4RB b10 uploaded. In-Reply-To: References: Message-ID: Hi Ruslan, In a few minutes I've found these problems: 1. Search no longer crashes using LEFT, but it fails to find anything. The query is select id,hit from thereferences where ((left(allFields, 1) = 'TEST')) order by id where allFields is a method. 2. A newly created database still has a Creator of VALA, even though I set it to my another before creating the database. 3. myCursor.DeleteRecord crashes. Jon From sunshine at public.kherson.ua Tue Jul 27 16:30:19 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 27 08:30:30 2004 Subject: [ANN] V4RB b10 uploaded. In-Reply-To: Message-ID: On 7/27/04 3:54 PM, "jda" wrote: Hi Jon, > In a few minutes I've found these problems: > > 1. Search no longer crashes using LEFT, but it fails to find > anything. The query is > > select id,hit from thereferences where ((left(allFields, 1) = > 'TEST')) order by id > > where allFields is a method. Yes I know. I now start to work on strings indexing and search. I think this will take few days. > 2. A newly created database still has a Creator of VALA, even though > I set it to my another before creating the database. Hmm, Okay, I need make example for this. > 3. myCursor.DeleteRecord crashes. Ok. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Jul 27 16:54:37 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 27 08:54:45 2004 Subject: [DONE] V4MD: setImage() / getImage() In-Reply-To: <008901c473de$e3fed840$3b04a8c0@giv> Message-ID: On 7/27/04 4:37 PM, "Igor Gomon" wrote: > Two new functions added to VCursor Xtra: > > getImage object me, any fldNameOrIndex, * -- Reads Picture field to the > Image object. > setImage object me, any fldNameOrIndex, * -- Writes image object into > the Picture field. > > So following syntax is working already (on Windows only): > gCursor.setImage( "fldPicture", member("name").image ) > member("name").image = gCursor.getImage( "fldPicture" ) Question: > I wonder, do we need support for such syntax? > gCursor.setImage( "fldPicture", member "name" ) > gCursor.getImage( "fldPicture", member "name" Igor, I have CC this question to beta list. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From martin.kloss at gmx.de Tue Jul 27 16:02:34 2004 From: martin.kloss at gmx.de (Martin Kloss) Date: Tue Jul 27 09:02:42 2004 Subject: [DONE] V4MD: setImage() / getImage() In-Reply-To: References: <008901c473de$e3fed840$3b04a8c0@giv> Message-ID: <6.1.1.1.2.20040727155946.0acdc8a0@pop.gmx.de> At 15:54 27.07.2004, you wrote: > > I wonder, do we need support for such syntax? > > gCursor.setImage( "fldPicture", member "name" ) > > gCursor.getImage( "fldPicture", member "name" I don't think so, since you can always write gCursor.setImage( "fldPicture", member("name").image ) member("name").image = gCursor.getImage( "fldPicture" ) adding another syntax with just the member() reference might just confuse new users. Martin. Martin Kloss Need music? http://www.selling-sound.com Like the author? Buy the book at: http://www.amazon.de/exec/obidos/ASIN/3898422194/lingmmugd Get your daily dose of Lingo at the LingoPark: http://www.lingopark.de From jda at his.com Tue Jul 27 10:35:33 2004 From: jda at his.com (jda) Date: Tue Jul 27 09:35:46 2004 Subject: [ANN] V4RB b10 uploaded. In-Reply-To: References: Message-ID: > > >> 2. A newly created database still has a Creator of VALA, even though >> I set it to my another before creating the database. > >Hmm, > >Okay, I need make example for this. > Just make a new database with my project -> the Creator is not set correctly (e-mail me off list if you need to know which method the code is in). On another note, if you create a database with a non-ASCII character (like ?), in the Finder the unicode-character is replaced by tabs... (looks like a space, so t?st -> t st). Jon From jda at his.com Tue Jul 27 11:44:12 2004 From: jda at his.com (jda) Date: Tue Jul 27 10:44:21 2004 Subject: [ANN] V4RB b10 uploaded. In-Reply-To: References: Message-ID: > > 2. A newly created database still has a Creator of VALA, even though >> I set it to my another before creating the database. > >Hmm, > >Okay, I need make example for this. > More info. I modified your Classes example for making a new db, adding mDatabase.creator = "ABCD" before the database was created. Database1.blb, Database1.dat, Database1.ind, and Database1.tmp all have a creator of "ABCD". Database1.vdb has a creator of "VALA". With a 1 file db (like mine), the creator is "VALA". Jon From sunshine at public.kherson.ua Tue Jul 27 18:56:32 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 27 10:56:40 2004 Subject: [ANN] V4RB b10 uploaded. In-Reply-To: Message-ID: On 7/27/04 6:44 PM, "jda" wrote: >>> 2. A newly created database still has a Creator of VALA, even though >>> I set it to my another before creating the database. >> >> Hmm, >> >> Okay, I need make example for this. >> > > More info. I modified your Classes example for making a new db, > adding mDatabase.creator = "ABCD" before the database was created. > > Database1.blb, Database1.dat, Database1.ind, and Database1.tmp all > have a creator of "ABCD". > > Database1.vdb has a creator of "VALA". > > With a 1 file db (like mine), the creator is "VALA". I see, so bug in vdb volume -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Tue Jul 27 22:16:00 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Tue Jul 27 14:16:12 2004 Subject: Igor have make 16 bits picture working. Message-ID: -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Wed Jul 28 16:39:02 2004 From: jda at his.com (jda) Date: Wed Jul 28 15:39:16 2004 Subject: [ANN] V4RB b10 uploaded. In-Reply-To: References: Message-ID: > > >V4RB/NEW * Valentina.ThrowExceptions() Hm, it autocompletes when I enter it. But when I have this line Valentina.ThrowExceptions(false) the compiler complains: "This method or property does not exist" Jon From sunshine at public.kherson.ua Wed Jul 28 23:49:13 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Wed Jul 28 15:49:23 2004 Subject: [ANN] V4RB b10 uploaded. In-Reply-To: Message-ID: On 7/28/04 11:39 PM, "jda" wrote: >> >> >> V4RB/NEW * Valentina.ThrowExceptions() > > Hm, it autocompletes when I enter it. But when I have this line > > Valentina.ThrowExceptions(false) > > the compiler complains: > > "This method or property does not exist" Strange. I Will check -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From sunshine at public.kherson.ua Fri Jul 30 00:14:02 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Thu Jul 29 16:14:08 2004 Subject: Dbname.gui file for visual info Message-ID: Hi All, So Jochen say Having a seperate storage file (of course this will also be a Valentina database with a different extension) we do not have this disadvantages! I see only advantages for this approach: 1) We do not touch a users database! We can even open a read-only database and are still able to save preferences! 2) We can save this preferences LOCALY for server database! (and of course the preference db can be also a server db, if needed!) 3) During development you can safely trash your db without loosing any preferences! 4) We currently recommend to use several files for security reasons - so it does not matter to have one more! AND: On Mac you can put all files Into single PACKAGE (which i would RECOMMEND to implement for 2.x) - on Windows you can store all files in single folder. Now we have add: ----------- 5) .gui file is optional and it have sense only for Valentina Studio. V4RB/V4MD/... Develoepr do not need distribute It with their solutions. This file will never be created by V4RB/V4MD/... application. 6) .gui file have sense only for Valentina Studio. and it have sense only in conjuction with rest Valentina DB files. so it looks to be good idea, that this file must be created by Vstudio in the same folder where db is. 7) creation of this file must be on Vstudio. i.e. Valentina kernel do not know about this file, about this extension, ... ----------------- More ideas: 8) we can have for THE SAME database several different .gui files. this can be used to make solutions tuned for different groups of users. i.e. Data is data, and it is other question how we display them. 9) Jochen, it seems latest FileMaker was proud by their features in this area. May be there is sense for you to check it... ------------ ** I still do not see how you technically will be able link NOT DELETED .gui file to new db? What if new db is of different structure? How you will see that? What is difference only in one fields from 100? Already bad? Here many such small technical problems, Jochen. ---------- And the main, so it seems that if we go by this way, then you can do everything self? Yes? I must not put into engine nothing special for this file? And with 2.0 you have access to I_Volume so you can control self creation of Volume. And you can use even not relational tables, but simply one or few embedded files on that volume. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Sat Jul 31 09:30:20 2004 From: jda at his.com (jda) Date: Sat Jul 31 08:30:25 2004 Subject: Another db size issue In-Reply-To: References: Message-ID: I have databases that I create with the following code in 1.x: newFormatDB.Create( f, 1, 512 ) This gives a VException in 2.0 b10. If I change the line to newFormatDB.Create( f, 1, 1024 ) it works. The problem is that the size of the empty db file is almost half a MB (it is about 200K in 1.x)! I distribute about 150 such ancillary files with my app, and I expect that to go up to 500 or more in the future. That adds up to a LOT of wasted space. Any advice? Jon From sunshine at public.kherson.ua Sat Jul 31 19:31:58 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 31 11:32:06 2004 Subject: Another db size issue In-Reply-To: Message-ID: On 7/31/04 4:30 PM, "jda" wrote: > I have databases that I create with the following code in 1.x: > > newFormatDB.Create( f, 1, 512 ) > > This gives a VException in 2.0 b10. > > If I change the line to > > newFormatDB.Create( f, 1, 1024 ) > > it works. > > The problem is that the size of the empty db file is almost half a MB > (it is about 200K in 1.x)! I distribute about 150 such ancillary > files with my app, and I expect that to go up to 500 or more in the > future. That adds up to a LOT of wasted space. > > Any advice? Jon, I will check this point later. I am sure that EMPTY database must have the same size as 1.x -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Sat Jul 31 12:35:34 2004 From: jda at his.com (jda) Date: Sat Jul 31 11:35:37 2004 Subject: Another db size issue In-Reply-To: References: Message-ID: > > > >> newFormatDB.Create( f, 1, 1024 ) >> >> it works. >> >> The problem is that the size of the empty db file is almost half a MB >> (it is about 200K in 1.x)! I distribute about 150 such ancillary >> files with my app, and I expect that to go up to 500 or more in the >> future. That adds up to a LOT of wasted space. >> >> Any advice? > >Jon, > >I will check this point later. > >I am sure that EMPTY database must have the same size as 1.x > That may be (although that's not what I've seen with other databases). But the point here is that I had to increase the segment size to 1024 to avoid a VException -- that's what's increasing the db size. Since the vast majority of the data I'm storing is well under 512 bytes, I can live with 512 segments if V2.0 will let me (1.x did, as I said). Jon From sunshine at public.kherson.ua Sat Jul 31 20:06:29 2004 From: sunshine at public.kherson.ua (Ruslan Zasukhin) Date: Sat Jul 31 12:06:38 2004 Subject: Another db size issue In-Reply-To: Message-ID: On 7/31/04 7:35 PM, "jda" wrote: >>> >>> newFormatDB.Create( f, 1, 1024 ) >>> >>> it works. >>> >>> The problem is that the size of the empty db file is almost half a MB >>> (it is about 200K in 1.x)! I distribute about 150 such ancillary >>> files with my app, and I expect that to go up to 500 or more in the >>> future. That adds up to a LOT of wasted space. >>> >>> Any advice? >> >> Jon, >> >> I will check this point later. >> >> I am sure that EMPTY database must have the same size as 1.x >> > > That may be (although that's not what I've seen with other > databases). But the point here is that I had to increase the segment > size to 1024 to avoid a VException -- that's what's increasing the db > size. Since the vast majority of the data I'm storing is well under > 512 bytes, I can live with 512 segments if V2.0 will let me (1.x did, > as I said). Yes I understand that you have discover new bug with 512 bytes segment. -- Best regards, Ruslan Zasukhin [ I feel the need...the need for speed ] ------------------------------------------------------------- e-mail: ruslan@paradigmasoft.com web: http://www.paradigmasoft.com To subscribe to the Valentina mail list go to: http://lists.macserve.net/mailman/listinfo/valentina ------------------------------------------------------------- From jda at his.com Sat Jul 31 15:53:13 2004 From: jda at his.com (jda) Date: Sat Jul 31 14:53:18 2004 Subject: Another db size issue In-Reply-To: References: Message-ID: > > > That may be (although that's not what I've seen with other >> databases). But the point here is that I had to increase the segment >> size to 1024 to avoid a VException -- that's what's increasing the db >> size. Since the vast majority of the data I'm storing is well under >> 512 bytes, I can live with 512 segments if V2.0 will let me (1.x did, >> as I said). > >Yes I understand that you have discover new bug with 512 bytes segment. > OK. I've been reporting a lot of problems. It's only fair that I also report a lot of progress, too. As of today, with 2.0 b10 I can run my project, create and open three different of databases (heavy use of VText and VBlobs), modify them, etc.. I must say, this is gratifying. Once we can do SQL searches I imagine I'll have most of the 1.x functionality back that my project requires, anyway. Plus Unicode, of course. Jon