Re: [Harbour] HBMK2 problem

2010-05-28 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.28 14:28, Horodyski Marek (PZUZ) wrote: Mindaugas, I link APP with MinGW and use CAIRIO with libcairo-2.dll. What compiler made this dll ? MinGW latest TDM build (if you are talking about lib build by me, from www.dbtopas.lt/hrb Regards, Mindaugas __

Re: [Harbour] SF.net SVN: harbour-project:[14614] trunk/harbour

2010-05-27 Thread Mindaugas Kavaliauskas
Hi, + contrib/xhb/hbcompat.prg + Added equivalent function wrappers for all hbcompat.ch translations where such was possible (everywhere besides "dirty" extensions of original Clipper functions) FUNCTION SubscribeNow( ... ) RETURN {| mtx, nTimeOut, lSubscribed |

Re: [Harbour] Problem with upper and lower based on CDP

2010-05-20 Thread Mindaugas Kavaliauskas
Hi, We have also debuged the cdp->lower and cdp->upper members and they are empty, so it is not a matter of hb_storvc usage. Can somebody check if we are missing something or if it is a harbour bug? Nothing missing nor bug. UPPER(CHR(0)) ir CHR(0), and CHR(0) is end of string symbol. Regar

Re: [Harbour] New page in PDF file with cairo.

2010-05-19 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.19 19:40, Horodyski Marek (PZUZ) wrote: In c:\harbour\contrib\hbhpdf\ is class : pdf := HPDF_New() and in this class is : page := HPDF_AddPage( pdf) Cairo is nice, but in cairo we are do not can make this (adds page). Why not to look at lightning.prg that produces 20 pages

Re: [Harbour] Re: SF.net SVN: harbour-project:[14519] trunk/harbour

2010-05-18 Thread Mindaugas Kavaliauskas
On 2010.05.18 21:55, Pritpal Bedi wrote: Some more tests: 1) ... Once selection process is okayed, I will concentrate on the positioning of cursor, which, in column selection mode specifically, is out or order right now. Please confirm that selection process, programatically and visually, is

Re: [Harbour] Re: SF.net SVN: harbour-project:[14519] trunk/harbour

2010-05-18 Thread Mindaugas Kavaliauskas
On 2010.05.18 21:12, Pritpal Bedi wrote: This itiration has caused by not compiling hbQT. Hmm... Some problem on my side, though recompiling hbqt did not helped. Recompiling all Harbour helped. I'm not sure that was the reason of this... Sorry. Some more tests: 1) ::toggleColumnSelectio

Re: [Harbour] Database close during index open failure

2010-05-18 Thread Mindaugas Kavaliauskas
Hi, Not this time. We do not have any protection against closing WA from any user code (i.e. key/for/filter/relation expressions or from error handler) when it's used by RDD code :-( Yes, I understand the problem. I've used to call DBCLOSEAREA() in my error block. This exploits the problem o

Re: [Harbour] Re: SF.net SVN: harbour-project:[14519] trunk/harbour

2010-05-18 Thread Mindaugas Kavaliauskas
On 2010.05.18 20:06, Mindaugas Kavaliauskas wrote: Hi. + Finalized: all the three modes of selection programatically. ::toggleStreamSelection() No Key ::toggleColumnSelection() No Key ::toggleLineSelection() == F11 ::clearSelection() == Sh+F11 If a selection mode is initiated by above three

Re: [Harbour] Re: SF.net SVN: harbour-project:[14519] trunk/harbour

2010-05-18 Thread Mindaugas Kavaliauskas
Hi. + Finalized: all the three modes of selection programatically. ::toggleStreamSelection()No Key ::toggleColumnSelection()No Key ::toggleLineSelection() == F11 ::clearSelection()== Sh+F11 If a selection mode is initiated by abov

Re: [Harbour] Database close during index open failure

2010-05-18 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.18 15:00, Przemysław Czerpak wrote: 3 similar samples with different error, so, perhaps we have memory corruption here. This is expected and documented few times on this list behavior. Of course it's a bug but it cannot be well fixed without very serious modifications in RDD co

Re: [Harbour] Cairo test.

2010-05-18 Thread Mindaugas Kavaliauskas
On 2010.05.18 14:04, Horodyski Marek (PZUZ) wrote: To test this lib, I had to download from internet following dlls : ... These dlls are incompatybile. Has anyone links to correct dlls or may send on priv these dlls (on WinXP) ? Some time ago I've compiled .dlll that does not depend on other no

[Harbour] Database close during index open failure

2010-05-18 Thread Mindaugas Kavaliauskas
Hi, 3 similar samples with different error, so, perhaps we have memory corruption here. Regards, Mindaugas C:\cawi32\sample\test>cat test203.prg STATIC indexBlocks := {} PROC MAIN() DBCREATE("test203.dbf", {{"F", "C", 1, 0}}, "DBFCDX", .T.) FERASE("tmp.cdx") AADD(indexBlocks, {|| FIE

Re: [Harbour] SF.net SVN: harbour-project:[14518] trunk/harbour

2010-05-18 Thread Mindaugas Kavaliauskas
On 2010.05.18 11:12, Viktor Szakáts wrote: That's because you've never tried line selection mode. After you'll try it, you'll miss it. I promise you :) I'm copying lines by the thousands since long time using stream method, and it causes no perceivable overhead, so most probably I will not mis

Re: [Harbour] SF.net SVN: harbour-project:[14518] trunk/harbour

2010-05-18 Thread Mindaugas Kavaliauskas
Viktor, So, I never in the last 15 years missed this feature. Stream handles the matter just fine: Home, Shift+Up/Down,, PgUp/PgDn/Up/Down to proper place,, bingo. That's because you've never tried line selection mode. After you'll try it, you'll miss it. I promise you :) Seems muc

Re: [Harbour] SF.net SVN: harbour-project:[14518] trunk/harbour

2010-05-18 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.18 10:11, Viktor Szakáts wrote: What is the reason you want to handle "line" selection separately from stream selection? Line selection looks like a stream which ends and begins at column zero. Could be much simpler with two modes: stream and block. Yes, line mode is a simila

Re: [Harbour] SF.net SVN: harbour-project:[14511] trunk/harbour

2010-05-17 Thread Mindaugas Kavaliauskas
Hi, It is interesting, what new code is behind this modifications? :) Remote function/method execution or that? :) Yes. I've wrote inproc OLE server for Harbour and it uses above functions to convert function/method/memvar symbols to DISPID in GetIDsOfNames() dispatch method and they are late

Re: [Harbour] Re: SF.net SVN: harbour-project:[14476] trunk/harbour

2010-05-17 Thread Mindaugas Kavaliauskas
On 2010.05.17 17:43, Pritpal Bedi wrote: Mindaugas Kavaliauskas wrote: I do not find: ::startSelection() ::stopSelection() ::toggleColumnSelectionMode() There are three methods: ::toggleColumnSelectionMode() ::toggleLineSelectionMode() ::clearSelection() "t

Re: [Harbour] Re: SF.net SVN: harbour-project:[14476] trunk/harbour

2010-05-17 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.17 17:05, Pritpal Bedi wrote: Please examine. Alternatively you can look into ideshortcuts.prg. Let me know it more constructs are needed. I do not find: ::startSelection() ::stopSelection() ::toggleColumnSelectionMode() Regards, Mindaugas __

Re: [Harbour] SF.net SVN: harbour-project:[14511] trunk/harbour

2010-05-17 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.17 14:37, dru...@users.sourceforge.net wrote: + added to C functions: int hb_dynsymToNum( PHB_DYNS pDynSym ); PHB_DYNS hb_dynsymFromNum( int iSymNum ); which can be used to make conversion between dynamic symbols and numbers It is interest

Re: [Harbour] Re: SF.net SVN: harbour-project:[14476] trunk/harbour

2010-05-17 Thread Mindaugas Kavaliauskas
Hi, I still can. Screencast at www.dbtopas.lt/hrb/f11.avi f11.avi clearly indicates that your claim is valid. But for "mysterious" reasons I cannot reproduce it on my machine. Can you so test after hbQT rebuild ? It seems hbqt clean rebuild helped. Thank You. I want implement the follo

Re: [Harbour] Re: SF.net SVN: harbour-project:[14476] trunk/harbour

2010-05-15 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.16 02:13, Pritpal Bedi wrote: 4) Persistent selection does not work if a use a mouse to position cursor. Test: F11 Down Down F11 Position cursor before the block using mouse Position cursor after the block using mouse (block is not select

Re: [Harbour] Re: SF.net SVN: harbour-project:[14476] trunk/harbour

2010-05-15 Thread Mindaugas Kavaliauskas
Hi, Can you please check after r14491. 3) Block forget about makting mode on paste Test (continuation of previous test): Ctrl+C (one line copied to clipboard) move cursor to the middle of any line Ctrl+V (line is pasted in a stream mode instead of line mode - bad) Now line blo

Re: [Harbour] SF.net SVN: harbour-project:[14476] trunk/harbour

2010-05-15 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.15 00:36, vouch...@users.sourceforge.net wrote: % Many artifacts belonging to horizontal scroll while text is selected. Also few aspects are optimized. To me it appears as if selection protocol in hbIDE is OK. Please post your experiences if something is no

Re: [Harbour] SF.net SVN: harbour-project:[14482] trunk/harbour

2010-05-15 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.15 11:32, dru...@users.sourceforge.net wrote: * use hb_oleDispInvoke() - please test if activex controls still work correctly I do not use ActiveX, so no chance to test, but line olecore.c#1091 could be changed to: if( pParams->rgvarg[ iCount - i ].n1.n2.vt & VT_

Re: [Harbour] [r|s]ddoci

2010-05-12 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.12 17:11, Horodyski Marek (PZUZ) wrote: When I try mix link ODBC and OCI i one app ( via ODBC still connet to MSSqlServer) : REQUEST SDDODBC, SDDOCI, SQLMIX libs=sddoci sddodbc Have I : Generating C source output to 'C:\TEMP\test1.c'... Done. c:/harbour/lib/win/mingw/libsddo

Re: [Harbour] SF.net SVN: harbour-project:[14461] trunk/harbour

2010-05-12 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.12 16:21, Mindaugas Kavaliauskas wrote: I've very surprised :( I expected to be some way to wait for line change event in POSIX/UNIX/Linux. I just guessed that there is a way to make line change to emit error condition, ex., ioctl(fd, TIO_ERROR_ON_CHANGE, TIO_DSR)); Looki

Re: [Harbour] SF.net SVN: harbour-project:[14461] trunk/harbour

2010-05-12 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.12 16:04, Przemysław Czerpak wrote: I has a code that seems does not fit under the new code. I have a simple button (well, there is a RS-latch to avoid contact bouncing) and I need to record time when the button is pressed. Button is connected to DSR (or CTS), so I need some way

[Harbour] :__enumKey()

2010-05-12 Thread Mindaugas Kavaliauskas
Hi, perhaps this is a known issue, but looks like a strange limitation of __enumKey() message. This code could not be compiled because of: test202.prg(5) Warning W0031 Invalid variable 'XVALUE' for enumerator message FUNC main() LOCAL xValue FOR EACH xValue IN {'a'=>'A', 'b'=>'B'} ?

Re: [Harbour] SF.net SVN: harbour-project:[14461] trunk/harbour

2010-05-12 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.12 03:27, dru...@users.sourceforge.net wrote: + harbour/src/rtl/hbcom.c + added Harbour multiplatform serial port C API (hb_com*() functions). implemented code for *nixes, MS-Windows and OS2. DOS is not supported yet. Please make test on different platforms.

Re: [Harbour] Slow create index under threads

2010-05-11 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.11 18:52, rafa wrote: Second; A question What advantages are there in using indexes MEMORY? Rafa, you've completely changed the original idea: >> OrdCreate("mem:file.ext", ...) >> I've sent C code for copying file from/to memory a few days ago. > Ok, thanks! > I add MEMORY a co

Re: [Harbour] Slow create index under threads

2010-05-11 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.11 12:22, rafa wrote: Of cause. Did you expect your code to behave in a different way?... I thought he reindex all at once ;-) The reason is because only one index reindex a table, while the others wait, I do not know. The reason is hb_dbdetach(), hb_dbattach(). Workarea is at

Re: [Harbour] Slow create index under threads

2010-05-11 Thread Mindaugas Kavaliauskas
Hi, Please could you tell me how to create the index in memory and then flush to disk? OrdCreate("mem:file.ext", ...) I've sent C code for copying file from/to memory a few days ago. These crea() threads do not help to do any valuable job. Function aCreateIndexe() starts a separate crea()

Re: [Harbour] Slow create index under threads

2010-05-10 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.10 12:20, rafa wrote: Well, times; 1 thread= 29 minutes THE WINNER! 4 threads = 93 minutes WoW! 7 threads = 68 minutes 5 Threads = 64 minutes It seems disk io is the bottle neck. You can try to use memio driver to create index in memory, and later write it back to disk.

Re: [Harbour] Re: SF.net SVN: harbour-project:[14434] trunk/harbour

2010-05-07 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.06 21:46, Pritpal Bedi wrote: I need your valuable input exactly how must these behave in different circumstances. You also update me if the selection behavior is upto expectations or not. Also please check for all three variants I committed r14440. Also explain a little why the

Re: [Harbour] SF.net SVN: harbour-project:[14434] trunk/harbour

2010-05-06 Thread Mindaugas Kavaliauskas
Hello, + Implemented: line selection mode. Designated key is F11. It is still a work in progress but a working prototype is there and currently selection is available and paste behaves the standard way. Mindagaus, please explore as the artifacts are OK. My name is M

Re: [Harbour] HBNetIO file functions

2010-05-04 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.04 17:30, Alex Strickland wrote: Maybe this small test will help someone to see how easy it is to read and write non DBF files using netio RPC. The primary purpose of NETIO was file sharing, so, it supports this functionality even without RPC and without any Harbour level overh

Re: [Harbour] Re: SF.net SVN: harbour-project:[14417] trunk/harbour

2010-05-04 Thread Mindaugas Kavaliauskas
On 2010.05.04 18:02, Pritpal Bedi wrote: Line Block: does it pertains to a single line always ? Yes, if I understand your question. Starting and ending line selection mark (without any cursor movement), marks current line. If DOWN (or UP) is pressed between start mark and end mark, then two

Re: [Harbour] Re: SF.net SVN: harbour-project:[14417] trunk/harbour

2010-05-04 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.04 16:58, Pritpal Bedi wrote: After any cursor movement, block is not marked any more :( I've rebuild the whole contrib, and hbide. Maybe I have to do something more? This is valid for block selection mode. Stream selection does not have it. If it is block selection mode, it is p

Re: [Harbour] Re: SF.net SVN: harbour-project:[14417] trunk/harbour

2010-05-04 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.04 16:31, Pritpal Bedi wrote: + Implemented: persistent blocks and cut/copy/paste operations across files and locations within the same file. Perhaps this is implemented in .cpp level only yet. I can not find a way to switch persistent block mode on. If I am takin

Re: [Harbour] Re: SF.net SVN: harbour-project:[14417] trunk/harbour

2010-05-04 Thread Mindaugas Kavaliauskas
Hi, I have just realized that blocks are not copyable to other file. Will fix in a while. Moving the block is something new to me and is easy. Which key should be designated to move, Ctrl+M ? I do not know the "correct" key mappings for various operations. It is a question of mappings, but I

Re: [Harbour] SF.net SVN: harbour-project:[14426] trunk/harbour

2010-05-04 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.04 13:35, Viktor Szakáts wrote: but not change the clipboard ! I agree. Though it's even better to make the error text selectable and copiable. This is how it's done in all modern tools. No need to reinvent anything here. Do you know that Windows' MessageBox has copy functio

Re: [Harbour] Re: SF.net SVN: harbour-project:[14417] trunk/harbour

2010-05-03 Thread Mindaugas Kavaliauskas
Hi, On 2010.05.04 00:07, Pritpal Bedi wrote: Thanks, for column blocks! Do you have plans for doing blocks persistent and implementing line blocks? :) Can you please explain a little about your idea of persistency and line blocks. Persistent blocks remains marked after you move a cursor to a

Re: [Harbour] Re: SF.net SVN: harbour-project:[14417] trunk/harbour

2010-05-03 Thread Mindaugas Kavaliauskas
Hi, This error can only be there if hbide/resources/funclist.uic is missing. I know your uncanny attention to details and hence assume that you have compiled hbIDE at its standard location. OR you are executing hbIDE from location without "resources" subfolder and contents to from hbIDE.exe.

Re: [Harbour] SF.net SVN: harbour-project:[14417] trunk/harbour

2010-05-03 Thread Mindaugas Kavaliauskas
Hi, thanks for this feature. It made me try to compile hbide after long time, but: --- Run-time Error! --- Error BASE/1132 Bound error: array access Called from HBQTUI:Q_TABLEFUNCLIST(0) Called from IDEFUNCTIONS:BUILDHEADER(210) Called from IDEF

Re: [Harbour] SF.net SVN: harbour-project:[14415] trunk/harbour

2010-04-30 Thread Mindaugas Kavaliauskas
Hi, On 2010.04.30 12:39, dru...@users.sourceforge.net wrote: + added support for communication streams/channels which allow to send asynchronously data from server to client. The following client side functions had been added: NETIO_OPENDATASTREAM( [,] )

Re: [Harbour] Removal of non-UNICODE Windows codepath?

2010-04-30 Thread Mindaugas Kavaliauskas
Hi, I see no problem for Win 3.x and Win32s, we still have customers with Win9x. Many of the projects are contained in the only .exe file, so requirement of extra .dll is not nice. One more thing is that my libraries are non-UNICODE, but I do not see a big reason to do rewrite a working piec

Re: [Harbour] Re: CLASSES - Instance Variable as Object - Access/Assign Elsewhere

2010-04-23 Thread Mindaugas Kavaliauskas
Hi, On 2010.04.23 20:45, Pritpal Bedi wrote: I am just asking, which ChangeLog entry after 15 Mar highlighted this difference. Any. Any entry can change code size, this affect memory allocation, addresses of functions, and makes bug be visible or hidden. Based on this alone, I am about t

Re: [Harbour] SF.net SVN: harbour-project:[14363] trunk/harbour

2010-04-22 Thread Mindaugas Kavaliauskas
Hi, thanks for suggestion. The previous code was based on ADS documentation. It does not mention that VFP supports D,4 fields. Regards, Mindaugas ADS should support in DBF (at least in VFP mode) julian date fields as 32bit little endian integer values {"D", 4, 0} which do not use string re

Re: [Harbour] Error with dBUseArea(...) with rddsql (sddodbc) withmysql ???

2010-04-08 Thread Mindaugas Kavaliauskas
On 2010.04.08 12:56, Horodyski Marek (PZUZ) wrote: I continue to test sddodbc with mysql for adding a BIGINT field ...but error comes out : *- Hi Shum, I too have trouble with new type in MS SQl. Advice from Mindaugas, try change in fil\harbour\contrib\rddsql\sddodbc\odbcdd.

Re: [Harbour] Error with ODBC under rddsql (sddodbc) ...

2010-04-06 Thread Mindaugas Kavaliauskas
I try to test dBUseArea() with DBFCDX RDD and SQLMIX RDD ... Since I cannot test the test2.prg under \hb20\contrib\rddsql\sddodbc\tests I modify test2.prg into tstmysql.prg as follow: However the line: ? dBUseArea( .T., "sqlmix", "SELECT * FROM country", "country", .T., .F.) with error comes o

Re: [Harbour] mingw MT mode performance

2010-04-01 Thread Mindaugas Kavaliauskas
Mindaugas any chance that you can check the code generated by MSVC which access thread local variables for wi...@32 and Win64? I do not have any Win64 disassembler, but I think I can do some reverse engineering by hand (and brain) :) http://en.wikipedia.org/wiki/X86-64 "Instead of FS segment d

Re: [Harbour] WMF to PDF

2010-03-30 Thread Mindaugas Kavaliauskas
Rossine wrote: Is possible converter wmf to pdf through the harbour ? Hi, Two ways comes to my mind, though non of it is directly related to harbour and requires more or less C knowledge: 1) You can try to play metafile on PDFCreator printing device (perhaps can be done in Harbour or a fe

Re: [Harbour] mingw 4.5.0 benchmarks

2010-03-30 Thread Mindaugas Kavaliauskas
Maurilio Longo wrote: as I wrote earlier I did not see any difference as well unless i just call it with -j (without number), in this case I see both of my cores doing work. Hi, thank You. That helps in my case also. -j4, -j5, -j99 do nothing, but -j makes build harbour more than twice fast

Re: [Harbour] mingw 4.5.0 benchmarks

2010-03-29 Thread Mindaugas Kavaliauskas
Przemysław Czerpak wrote: This option enables simultaneous compilation of different files. It means that it will not change the compilation of single file at all but when many files have to be compiled and -j is passed as GNU make parameter then it creates upto processes and each of them is used

Re: [Harbour] mingw 4.5.0 benchmarks

2010-03-29 Thread Mindaugas Kavaliauskas
You can also try to reduce the optimization level, i.e. you can use -Os in MinGW flags. It should reduce the compilation time and final binaries will be slower then the one created by BCC though still faster. I'm trying another approach :) Upgrading from Celeron to Core i5. It should help a lit

Re: [Harbour] mingw 4.5.0 benchmarks

2010-03-26 Thread Mindaugas Kavaliauskas
Hi, Przemysław Czerpak wrote: It's important only if you have to often recompile very big C files which can be hardly optimized. It happens if you develop and compile Harbour itself, but not the final application only. You can also try to reduce the optimization level, i.e. you can use -O

Re: [Harbour] mingw MT mode performance

2010-03-26 Thread Mindaugas Kavaliauskas
Hi, I suggest to start with small test to check the code produced by MS for thread local variables. Knowing MS I will not be very surprised if it's already well tuned code which does not call internally TlsGetValue() at all so there is not place for noticeable improvement. I think that we need

[Harbour] Timestamp compile time optimisation bug

2010-03-25 Thread Mindaugas Kavaliauskas
Hi, PROC main() LOCAL t SET(4, "-MM-DD") /* Trying to generate timestamp with time part only */ ? HB_NTOT(0.12345) // OK ? HB_DTOT(CTOD("")) + 0.12345 // OK ? t"-00-00" + 0.12345 // Wrong: no time part printed ? VALTYPE(t"-00-00") // Prints "T". OK ? VALTYPE(t"-00-

Re: [Harbour] SF.net SVN: harbour-project:[14220] trunk/harbour

2010-03-23 Thread Mindaugas Kavaliauskas
2010-03-23 15:19 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbatomic.h + added HB_SPINLOCK_TRY(l) + added support for recursive spin locks Hi, I'm interested why sl parameter in hb_spinlock_try_r() (hbatomic.h#486) is used in brackets. It's a function, it

Re: [Harbour] SF.net SVN: harbour-project:[14219] trunk/harbour

2010-03-23 Thread Mindaugas Kavaliauskas
Viktor Szakáts wrote: Can you test if hbfbird works with similar SQL command? They are using the same API, so if that one works, it's only a matter of finding the difference. Hi, I have not noticed we have one more firebird contrib. Samples of hbfbird do not work for me. --- C

Re: [Harbour] SF.net SVN: harbour-project:[14219] trunk/harbour

2010-03-23 Thread Mindaugas Kavaliauskas
Hi, Jacek Kubica wrote: I can only confirm ;-( persistent problems with sddfb and returned problem with "neverending loop" after error, some days ago fixed by Viktor (AFAIR) Can you tell me more details about "neverending loop"? Regards, Mindaugas ___

Re: [Harbour] SF.net SVN: harbour-project:[14219] trunk/harbour

2010-03-23 Thread Mindaugas Kavaliauskas
Hi, snaipe...@users.sourceforge.net wrote: 2010-03-23 12:55 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt) * harbour/contrib/rddsql/sddfb/sddfb.c I've committed, but some requested things does not work, i.e. sddfb. isc_start_transaction( status, &hTrans, 1, &

Re: [Harbour] field->&("name") in a macro

2010-03-21 Thread Mindaugas Kavaliauskas
Viktor Szakáts wrote: IMO HB_FIELDGET() should return NIL if the name doesn't exist, just like FIELDGET() returns NIL if the field position doesn't exist. I didn't recheck all places, but quick review shows that my code actually relies on this Clipper feature, so adding RTE would require to

Re: [Harbour] Error in SDDFB

2010-03-21 Thread Mindaugas Kavaliauskas
Massimo Belgrano wrote: Hello Mindaugas What dou you think of integrate a ORM mapper to allow programm written using sqlmix to be indipendent from sql string Hi, I suggest you to write down your idea in C or PRG code and share it on mailing list. Regards, Mindaugas ___

Re: [Harbour] field->&("name") in a macro

2010-03-21 Thread Mindaugas Kavaliauskas
Alexandr Okhotnikov wrote: These are more clear without & : 1) alias1->NAME1 += alias2->NAME2 2) alias1->(NAME1 := NAME1 + alias2->NAME2) (I assumed FIELDNUM() means FIELDPOS()) NAME1 - is a variable, not a field name therefore, this example is invalid So, all discussion about ALIAS2-> (FIELD

Re: [Harbour] Error in SDDFB

2010-03-21 Thread Mindaugas Kavaliauskas
Jacek Kubica wrote: Any chance for it on this weekend ?? Almost finished. Compiles without error, but have not tested any SQL backed yet. Regards, Mindaugas ___ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://

Re: [Harbour] field->&("name") in a macro

2010-03-21 Thread Mindaugas Kavaliauskas
Alexandr Okhotnikov wrote: Can an example of effective solutions? And why this decision is not effective? FieldGet (fieldnum ()) - a very cumbersome example: 1. ALIAS1-> & ( "NAME1") + = ALIAS2-> & ( "NAME2") 2. ALIAS1-> (FIELDPUT (FIELDNUM ( "NAME1"), FIELDGET (FIELDNUM ( "NAME1") + ALIAS2-> (F

Re: [Harbour] About message WM_CREATE in gtwvt.c

2010-03-20 Thread Mindaugas Kavaliauskas
Saulius Zrelskis wrote: > I try to use CreateWindow(Ex) parameter LPVOID lpParam. There can be address of memory or any value ( LPVOID ) 0x12345678 and messages WM_NCCREATE, WM_CREATE receives in lParam structure CREATESTRUCT address, where member lpCreateParams have value passed through lpPar

Re: [Harbour] About message WM_CREATE in gtwvt.c

2010-03-20 Thread Mindaugas Kavaliauskas
Saulius Zrelskis wrote: Before returning, CreateWindow sends a WM_CREATE message to the window procedure. So this message _never_ processed in hb_gt_wvt_WndProc, because window handle is still unknown for hb_gt_wvt_Find. This also appends to messages WM_GETMINMAXINFO, WM_NCCREATE and WM_NCCALCSIZ

Re: [Harbour] mingw 4.5.0 benchmarks

2010-03-19 Thread Mindaugas Kavaliauskas
Viktor Szakáts wrote: I've included BCC55 for comparison. It's running at half the overall speed compared to 4.5 64-bit. Ec... I'm still using BCC, because... it compiles f.e. \external\sqlite3 in 2.74 s, and MGW compiles it in 3 minutes 3.25 s, i.e. 67 times slower... Regards, Mindaug

Re: [Harbour] SF.net SVN: harbour-project:[14183] trunk/harbour

2010-03-19 Thread Mindaugas Kavaliauskas
dru...@users.sourceforge.net wrote: * harbour/src/rtl/hbzlib.c * modified HB_ZUNCOMPRESSLEN(), current syntax is: HB_ZUNCOMPRESSLEN( , [<@nResult>] ) -> or -1 on error * harbour/contrib/hbbzip2/hbbzip2.c * modified HB_BZ2_UNCOMPRESSLEN(), current syntax is:

Re: [Harbour] SF.net SVN: harbour-project:[14179] trunk/harbour

2010-03-18 Thread Mindaugas Kavaliauskas
Hi, vszak...@users.sourceforge.net wrote: - external/bzip2/bzip2.c - Deleted accindentally included bzip2 tool. Thank, You. Now I'm able to test bzip2 library. PROC main() LOCAL nResult ? "Len:", HB_BZ2_UNCOMPRESSLEN(HB_BZ2_COMPRESS(""), @nResult) ? "nResult:", nResult RETURN prin

Re: [Harbour] SF.net SVN: harbour-project:[14177] trunk/harbour

2010-03-16 Thread Mindaugas Kavaliauskas
Hi, HB_BZ2_UNCOMPRESSLEN( , [<@nResult>] ) -> or 0 on error I guess 0 can be also a valid result, if empty string was compressed. So, we'll always need to check nResult, to check for error. -1 fits better to indicate error condition. Perhaps the problem was HB_SIZ

Re: [Harbour] Re: MT workareas cloning

2010-03-15 Thread Mindaugas Kavaliauskas
Hi, Przemysław Czerpak wrote: The second proposed solution is more flexible, but is not optimal because it keeps a long mutex lock on "zerospace" internals. Just like WorkaAreaEval() in xbase++ and it's the reason why I still haven't added it to SVN code. There is one very serious problem wi

Re: [Harbour] Error in SDDFB

2010-03-15 Thread Mindaugas Kavaliauskas
Hi, Luis R. Stach wrote: Error SDDFB/1903 Prepare statement failed: SELECT * FROM agenda (DOS Error 335544569) What I do is this: ANNOUNCE RDDSYS REQUEST SQLMIX, SDDFB RDDSETDEFAULT( "SQLMIX" ) hConn := RDDINFO( RDDI_CONNECT, { "FIREBIRD",, "SYSDBA", "masterkey", "192.168.0.1:d:\data\agenda

Re: [Harbour] recommended C compiler for Win

2010-03-15 Thread Mindaugas Kavaliauskas
Hi, ../../../sddfb.c: In function ‘fbDisconnect’: ../../../sddfb.c:181:4: warning: dereferencing type-punned pointer will break strict-aliasing rules ../../../sddfb.c: In function ‘fbOpen’: ../../../sddfb.c:209:4: warning: dereferencing type-punned pointer will break strict-aliasing rules ../

Re: [Harbour] Re: MT workareas cloning

2010-03-15 Thread Mindaugas Kavaliauskas
Hi, Support for ZEROSPACE in WorkSpaceList() is trivial but can be implemented only in C. I can add it in necessary. BTW please check above two example with xbase++. Would you please implement the WorkSpaceList() with ZEROSPACE ... I need to obtain all alias within ZEROSPACE Or any

Re: [Harbour] Re: SqlMix and dbcreated

2010-03-15 Thread Mindaugas Kavaliauskas
Hi, Shum wrote: It possible to implement the database connection number as a class ... like the DacSession class in Xbase++ ...?? I know nothing about DacSession, but I guess it could be implemented on the top of current code. Regards, Mindaugas ___

Re: [Harbour] MT statics vs public

2010-03-15 Thread Mindaugas Kavaliauskas
Hi, Lorenzo Fiorini wrote: I've successfully implemented MT in my httpserver and the results are great, but http apps are made to be ( almost ) stateless while desktop apps are full of vars that remember selections, global and user setting, preferences and so on. Following the CL5 guidelines I

Re: [Harbour] SF.net SVN: harbour-project:[14170] trunk/harbour

2010-03-15 Thread Mindaugas Kavaliauskas
Hi, * harbour/src/rdd/dbfcdx/dbfcdx1.c ! fixed bad copy and past typo which could cause internal error when new index using existing order (subindex) was created without ADDITIVE clause. Bug reported by Mindaugas - many thanks for the information. Thanks! Actually, you've fo

[Harbour] IE9104

2010-03-15 Thread Mindaugas Kavaliauskas
Hi, the following sample generates IE9104: === PROC MAIN() DBCREATE("bandom.dbf", {{"NR", "N", 8, 0}, {"TEXT", "C", 8, 0}, {"TEXT2", "C", 4, 0}}, "DBFCDX") DbUseArea(.T., "DBFCDX", "bandom.dbf", "pirma", .T., .F.) OrdCreate("bandom.cdx", "pirmas", "STR(NR)+TEXT")

Re: [Harbour] ADS error codes

2010-03-04 Thread Mindaugas Kavaliauskas
Hi, Przemysław Czerpak wrote: Perhaps we must leave this hack, or... extend default error handler Here is the problem with custom user code using own error handlers. I'm afraid it's hard to change it because it may introduce very serious bugs to valid Clipper code. I also do not like it but I'm

Re: [Harbour] ADS error codes

2010-03-04 Thread Mindaugas Kavaliauskas
Hi, Przemysław Czerpak wrote: I have a proposal to move ads error value to osCode and leave subCode zero, if we do not return a dbf compatible error. This change also allows to get more precise error description by using AdsGetErrorString(), since we will know ads error in all cases. Any objecti

[Harbour] ADS error codes

2010-03-04 Thread Mindaugas Kavaliauskas
Hi, we have mixed meaning of subCode (3rd parameter of commonError()) in rddads. Sometimes it is DBF compatible value, ex.: commonError( pArea, EG_UNLOCKED, EDBF_UNLOCKED, 0, NULL, 0, NULL ); commonError( pArea, EG_DATATYPE, 1020, 0, NULL, 0, NULL ); In other cases it is error value retur

Re: [Harbour] Re: RDDSQL Question.

2010-03-03 Thread Mindaugas Kavaliauskas
Hi, Jacek Kubica wrote: May be could you post a working sample using this mix way of work using a browse etc etc MK> Sorry, I do not use browse(). I use our own GUI. OK, but how do you reaslise datacommits to database ?? Using RDDINFO( RDDI_EXECUTE, "UPDATE ...") Using ODBC, native clien

Re: [Harbour] Re: RDDSQL Question.

2010-03-03 Thread Mindaugas Kavaliauskas
Itamar Lins wrote: Yes, I understand. Another problem we consider a table with 3Gib for example how to work with it via browse? because my system is 100% via browse style excel. This is syntaxe below is impraticable. DBUSEAREA(, "select * from my_table") How to calculate end of query and ru

Re: [Harbour] Re: RDDSQL Question.

2010-03-03 Thread Mindaugas Kavaliauskas
Bruno Luciani wrote: well , some code sample would be usefull This "sample" is 73 files with implementation of all GUI app development environment. It will not work together, if you delete one file. I can send some 20 lines sample, but it gives nothing to you. But I won't share the whole cod

Re: [Harbour] Re: RDDSQL Question.

2010-03-03 Thread Mindaugas Kavaliauskas
Hi, Bruno Luciani wrote: May be could you post a working sample using this mix way of work using a browse etc etc Sorry, I do not use browse(). I use our own GUI. Regards, Mindaugas ___ Harbour mailing list (attachment size limit: 40KB) Harbour@ha

Re: [Harbour] Re: RDDSQL Question.

2010-03-03 Thread Mindaugas Kavaliauskas
Hi, But if I for example use: My Browse() function and modify a field? Because I change only in temporary cache query. How to proceed for commit? In my code on edit dialog "OK" button, o do both actions: execute query and set field values. There is also my primary idea to store "dirty" fla

Re: [Harbour] RDDSQL Question.

2010-03-03 Thread Mindaugas Kavaliauskas
Hi, Itamar Lins wrote: Can you create examples of creating, RDDINFO( RDDI_EXECUTE, "CREATE TABLE test (id int, txt char(20))") adding, RDDINFO( RDDI_EXECUTE, "INSERT INTO test (id,txt) VALUES(1,'abc'), (2, 'def'))") modifying fields of the tables via rddsql. RDDINFO( RDDI_EXECUTE, "

Re: [Harbour] New Windows unicode support "for dummies" thread

2010-03-03 Thread Mindaugas Kavaliauskas
Hi, Viktor Szakáts wrote: Is UNICODE the default setting now? Ups! I haven't noticed this fact. Many of our customers still use Win95. I've been asking about this on this list and waiting for opinions. There was none, so I made the step. Sorry. I haven't noticed. Perhaps it's too much inf

Re: [Harbour] New Windows unicode support "for dummies" thread

2010-03-03 Thread Mindaugas Kavaliauskas
Hi, Viktor Szakáts wrote: The _default_ Harbour build will need unicows.dll. Anyone, anytime may create a non-UNICODE Harbour build by using HB_BUILD_UNICODE=no. Is UNICODE the default setting now? Ups! I haven't noticed this fact. Many of our customers still use Win95. Regards, Mindauga

Re: [SPAM] Re: [Harbour] What is Valtype = S ?

2010-03-03 Thread Mindaugas Kavaliauskas
Hi, Viktor Szakáts wrote: The only thing I wonder is why all this is important for a normal user application...? Perhaps because I never needed such thing, but if the goal is to check the arguments involved in an RTE, we have oError:args (just like Clipper). I find it also very useful. I d

Re: [Harbour] OrdLiistAdd() bug

2010-03-02 Thread Mindaugas Kavaliauskas
Hi, Przemysław Czerpak wrote: As far as I understand zero order means no order, and should return an empty key and empty order name. 0 given as tag number in above ord*() functions means current index. It's Clipper compatible behavior. Just test your code with Clipper. I do no think I can chan

Re: [Harbour] OrdLiistAdd() bug

2010-03-02 Thread Mindaugas Kavaliauskas
Hi, Przemysław Czerpak wrote: the following sample prints: C:\cawi32\sample\test>hbrun test194.prg ORDNAME(0), ORDKEY(0): F F Looks correct for me. What is the bug? As far as I understand zero order means no order, and should return an empty key and empty order name. Code: FOR nI := 0

[Harbour] OrdLiistAdd() bug

2010-03-02 Thread Mindaugas Kavaliauskas
Hi, the following sample prints: C:\cawi32\sample\test>hbrun test194.prg ORDNAME(0), ORDKEY(0): F F --- code REQUEST DBFCDX PROC MAIN() RDDSETDEFAULT("DBFCDX") DBCREATE("test194", {{"F", "C", 10, 0}},, .T.) OrdCreate("test194x", "F", "F") DBCLOSEALL() DBUSEAREA(.T.,, "t

[Harbour] sddodbc

2010-03-01 Thread Mindaugas Kavaliauskas
Hi, It seems sddodbc.c line #603 should be changed to: pItem = O_HB_ITEMPUTSTRLEN( NULL, ( O_HB_CHAR * ) val, ( HB_SIZE ) iLen - 1 ); otherwise test1.prg returns chr(0) in the end of every string. Regards, Mindaugas P.S. I see we have some serious problems with mailing list. lists.

Re: [Harbour] SF.net SVN: harbour-project:[14022] trunk/harbour

2010-03-01 Thread Mindaugas Kavaliauskas
Hi, vszak...@users.sourceforge.net wrote: + contrib/rddsql/sddoci/sddoci.c + contrib/rddsql/sddsq3/sddsq3.c Thank You, for you new SDD. I've started Oracle development some time ago, but never fixed because lack of time, motivation (I do not need it for my own projects), and test envir

Re: [Harbour] For Przemek: SIXCDX difference found with examples

2010-02-26 Thread Mindaugas Kavaliauskas
Hi, smu johnson wrote: With a Roll-your-own index open, when you use a dbgoto(), the record pointer is moved to the correct row in the table but the pointer in the index file is not positioned to the corresponding row, even though the record is in the index. With a regular cdx index, the ind

Re: [Harbour] Re: Switch to detect undeclared vars being used

2010-02-26 Thread Mindaugas Kavaliauskas
Hi, Przemysław Czerpak wrote: In class implementation we are using: _HB_CLASS [,] // new class _HB_MEMBER [ AS ] _HB_MEMBER { [ AS ] } Of course this is also [x]Harbour only extension and it's hidden for users by PP rules in hbclass.ch so I think that only few people knows abo

  1   2   3   4   5   6   7   8   >