Pointers as zero. Was: [Harbour] TMYSQLSERVER error ...

2008-06-25 Thread Szakáts Viktor
Hi Ernad, The cause of problem is that nSocket is pointer, not numberic variable. For example: -return iif(::nSocket 0, sqlGetErr(::nSocket), No connection to server) +return iif(::nSocket nil, sqlGetErr(::nSocket), No connection to server) With this knowledge, i think this would

Re: [Harbour] Group opinion on RC2 from RC1 or main branch?

2008-06-25 Thread ABIX - Adam Jurkiewicz
Dnia środa, 25 czerwca 2008, Szakáts Viktor napisał: Hi Phil, Yes ASAP, but IMO we should wait for Przemek to review latest changes and do tests on Linux. Brgds, Viktor Yes, please wait for Przemek, because SVN 8800 does not compile and I cannot make RPMs for openSUSE (the same which

Re: [Harbour] Group opinion on RC2 from RC1 or main branch?

2008-06-25 Thread Szakáts Viktor
Hi Adam, This problem is caused by enabling all contribs by default, the one which fails was probably never tested in the last n years, plus it needs GTK lib. Could you please just delete the linehbgf \ from contrib/Makefile and have another try? If there are other build problems I can

Re: Pointers as values. Was: Re: [Harbour] TMYSQLSERVER error ...

2008-06-25 Thread Ernad Husremovic
Hi Victor, at moment, I am learning harbour through the conversion process of our clipper applications. I have tested mysql, because we have plan to change database backend with an standard RDBMS. You suggest changes in harbour core, which is at this moment beyond my competence :). Regards,

Re: Pointers as zero. Was: [Harbour] TMYSQLSERVER error ...

2008-06-25 Thread Ernad Husremovic
Regarding development process, have the group considered creating experimental, or incubator branch to avoid outside patches ? IMO it is important to push all proposals to the repository without delay. This would make development process more agile. Regards, Ernad - Szakáts Viktor

Re: [Harbour] Errore irrecuperabile 9024

2008-06-25 Thread Paolo Russignan
Hallo Massimo, The error occurs in a program that automatically creates pdf, with pdfcreator, and then sends them via email. Use xharbour 1.0.0 + Minigui 1.52 Operating System Xp (service 2) or 2000 (Service Pack 4). Paolo Russignan Massimo Belgrano ha scritto: What is happen? When

Re: Pointers as values. Was: Re: [Harbour] TMYSQLSERVER error ...

2008-06-25 Thread Przemyslaw Czerpak
On Wed, 25 Jun 2008, Szakáts Viktor wrote: Hi Viktor, I'd prefer a solution which won't break existing .prg level code, yet allows to switch from longs to pointers on the .c level. One possible solution is to allow to compare pointers to zero using operators (p != 0, p = 0, p == 0, and

Re: Pointers as values. Was: Re: [Harbour] TMYSQLSERVER error ...

2008-06-25 Thread Szakáts Viktor
Hi Przemek, Welcome back on board :) I hope you had a nice time. as .T., non-0, non-NIL and a NULL as .F., 0, NIL on .prg level. EMPTY() function can be used for such testes, f.e.: return iif( !empty(::nSocket), sqlGetErr(::nSocket), ; No connection to

Re: [Harbour] Errore irrecuperabile 9024

2008-06-25 Thread Petr Chornyj
Paolo Russignan wrote: I can not understand where the error occurs and above all I can send the program. Hi Paolo, please see source fm.c HB_EXPORT void * hb_xrealloc( void * pMem, ULONG ulSize ) /* reallocates memory */ { HB_TRACE_FM(HB_TR_DEBUG, (hb_xrealloc(%p, %lu), pMem,

Re: [Harbour] Problems with creating RPMs 2nd (was: Group opinion...)

2008-06-25 Thread Szakáts Viktor
tested in the last n years, plus it needs GTK lib. Viktor, there is just one little thing, I don't understand. In last few months I've made a lot of RPMs using hbgtmk.sh scripct created by Przemek. There were 0 (ZERO) problems with create RPMs, just one with the name harbour-1.0.0RC1, which

[Harbour] 2008-06-25 11:49 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-06-25 Thread Szakáts Viktor
2008-06-25 11:49 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * source/rtl/gtwvt/gtwvt.c * Slightly changed the way CLOSE button works. Now the close button, if enabled, will always force a shutdown. So this setting is made independent of SetCancel(). I choose this

Re: [Harbour] Problems with creating RPMs 2nd (was: Group opinion...)

2008-06-25 Thread ABIX - Adam Jurkiewicz
Dnia środa, 25 czerwca 2008, Szakáts Viktor napisał: 2) You are trying with the main branch. In the main branch I've made some deeper changes since we had a not very well defined concept as to how to develop Harbour after RC1. OK - everything now is clear. I think I'll wait for

Re: Pointers as values. Was: Re: [Harbour] TMYSQLSERVER error ...

2008-06-25 Thread Mindaugas Kavaliauskas
Szakáts Viktor wrote: One possible solution is to allow to compare pointers to zero using operators (p != 0, p = 0, p == 0, and even p 0, p 0). Comparison with any other values would return .F., also, maybe NIL should be also allowed in place of 0, and we may allow such construct too: IF p ; ?

Re: Pointers as values. Was: Re: [Harbour] TMYSQLSERVER error ...

2008-06-25 Thread Viktor Szakáts
Okey. I had a similar feeling about it. Let's leave it then, and update the code to use EMPTY(). (Notice that this also means that _application code_ directly using these MySQL API calls will also need to be updated, since we will have to break compatibility.) Brgds, Viktor On Wed, Jun 25, 2008

Re: [Harbour] Problems with creating RPMs 2nd (was: Group opinion...)

2008-06-25 Thread Viktor Szakáts
Enough to replace harbour with harbour-1.0.0RC1. Or, you can get the RC1 source code from sf.net download page. I've uploaded proper (I hope) LF delimited .gz/.bz2. Brgds, Viktor 2008/6/25 ABIX - Adam Jurkiewicz [EMAIL PROTECTED]: Dnia środa, 25 czerwca 2008, Szakáts Viktor napisał: 2) You

[Harbour] 2008-06-25 16:48 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

2008-06-25 Thread Przemyslaw Czerpak
2008-06-25 16:48 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbver.h * removed unnecessary EOL inside comment * harbour/contrib/hbodbc/odbc.c ! use valid integer type instead of explicit casting in function call. Such casting is vary dangerous and may

Re: [Harbour] HB_NOSTARTUPWINDOW ?

2008-06-25 Thread Przemyslaw Czerpak
On Sun, 22 Jun 2008, Szakáts Viktor wrote: Hi Viktor, I see, in fact I also have the window painted then repainted in new size. Since this is a generic problem (albeit not a huge one IMO), we may think about some generic ways to avoid it (without special hacks that is). There are also other

[Harbour] philosophie ??? of (x)harbour

2008-06-25 Thread Fritz Eichelhardt
hi all, 2 months ago i discoverd xharbour and installed in on my opensuse 10.3 since then i'm a member of this list. very often you mention files (libraries etc.) and almost all the time, i can't find them on my machine. i wonder, if those files are for windows only. or are they for harbour

[Harbour] Possible bug in TGET's :delEnd()

2008-06-25 Thread Randy Portnoff
Hi all, I think there is a bug in TGET's delEnd() method - The loop... DO WHILE ::nPos nPos ::backSpaceLow() ENDDO ...can become endless in some circumstances. While I cannot reproduce it in a DOS app, my GUI app (that implements its own masked edits using TGET) can using a 20-character

Re: [Harbour] Possible bug in TGET's :delEnd()

2008-06-25 Thread Szakáts Viktor
Hi Randy, Probably. If we can get a small test case together, I will add it to rto_get.prg, and I can try it with Clipper too. So, var is 20 chars string, picture is (999) 999-. What keys do you press to get into the endless loop? Brgds, Viktor On 2008.06.25., at 18:04, Randy Portnoff

[Harbour] 2008-06-25 18:19 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

2008-06-25 Thread Szakáts Viktor
2008-06-25 18:19 UTC+0200 Viktor Szakats (harbour.01 syenar hu) * contrib/hbfimage/fi_winfu.c * contrib/hbfimage/fi_wrp.c ! I cannot test it right now, but this should fix the build problem for hbfimage under Linux. -- Brgds, Viktor

Re: [Harbour] philosophie ??? of (x)harbour

2008-06-25 Thread ABIX - Adam Jurkiewicz
Dnia środa, 25 czerwca 2008, Fritz Eichelhardt napisał: hi all, Hi, if you want explanation about libraries, please write down exactly which ones, I or someone else try to explain to you. Because Harbour is cross platform, some functions works only on Windows, some only on Linux/Unix, other on

[Harbour] RC1 Linux RPM builds on openSUSE OK

2008-06-25 Thread ABIX - Adam Jurkiewicz
To whom should I sent rpms to upload to sf ? Build on openSUSE 10.3. Adam -- ABIX - Linuksowe Systemy Wspomagania Biznesu | http://www.abix.info.pl Skype : abix_adamj | Gadu-Gadu : 302315 | JabberID: [EMAIL PROTECTED] Wsparcie aplikacji : http://groups-beta.google.com/group/abix-rcsoft?hl=pl

Re: [Harbour] Possible bug in TGET's :delEnd()

2008-06-25 Thread Randy Portnoff
Hi Viktor, Ok, I think I know what is happening here and is partially my fault - However, I still feel that extra protection needs to be added to this loop. The picture is (999) 999- When this endless loop occurs, I am doing this: oGet:Pos := 1 oGet:DelEnd() I say this is my fault