Re: [xHarbour-developers] fread() fails with by-reference parameter

2008-06-21 Thread Maurilio Longo
Ron, you're right, I had not set HB_MT=MT before my latest full rebuild, so I was using an older vmmt.lib Thanks so much! Maurilio. Ron Pinkas wrote: > Maurilio, > > I strongly suspect your MT version of hvm.lib was not recompiled, > because it does NOT make any sense. The correction has no

Re: [xHarbour-developers] fread() fails with by-reference parameter

2008-06-20 Thread Ron Pinkas
Maurilio, I strongly suspect your MT version of hvm.lib was not recompiled, because it does NOT make any sense. The correction has nothing to do with ST/MT. Ron On Jun 20, 2008, at 8:34 AM, Maurilio Longo wrote: > Ron, > > on OS/2, gcc, it still returns 0 bytes read in MT. > > ---8<

Re: [xHarbour-developers] fread() fails with by-reference parameter

2008-06-20 Thread Maurilio Longo
Ron, on OS/2, gcc, it still returns 0 bytes read in MT. ---8<--- (E:\repos2\xharbour\tests)set HB_MT=MT (E:\repos2\xharbour\tests)del ref2.exe && make ref2.exe e:\harbour\bin/harbour -Ie:\harbour\include -n ref2.prg xHarbour Compiler build 1.1.0 (SimpLex) (Rev. 6146) Cop

Re: [xHarbour-developers] fread() fails with by-reference parameter

2008-06-20 Thread Ron Pinkas
Maurilio, Works perfect for me, also in MT. What problem did you have? Ron On Jun 20, 2008, at 8:29 AM, Maurilio Longo wrote: > Ron, > > I can confirm that it is fixed for ST mode after your last commit. > > It still does not work in MT mode. > > Thanks a lot! > > Maurilio. > > > Ron Pinkas wro

Re: [xHarbour-developers] fread() fails with by-reference parameter

2008-06-20 Thread Maurilio Longo
Ron, I can confirm that it is fixed for ST mode after your last commit. It still does not work in MT mode. Thanks a lot! Maurilio. Ron Pinkas wrote: > Maurilio, > > Should be fixed after: 2008-06-20 10:25 UTC-0430 Ron Pinkas xharbour.com> > > Ron > > On Jun 20, 2008, at 8:03 AM, Maurilio

Re: [xHarbour-developers] fread() fails with by-reference parameter

2008-06-20 Thread Ron Pinkas
Maurilio, Should be fixed after: 2008-06-20 10:25 UTC-0430 Ron Pinkas Ron On Jun 20, 2008, at 8:03 AM, Maurilio Longo wrote: > And I can add that > > ISBYREF() fails, hb_parcsiz() returns 0 (zero). > > Best regards. > > Maurilio. > > Maurilio Longo wrote: >> Ron, >> >> even worse, with latest

Re: [xHarbour-developers] fread() fails with by-reference parameter

2008-06-20 Thread Maurilio Longo
I mean, inside fRead() source code. Maurilio. Maurilio Longo wrote: > And I can add that > > ISBYREF() fails, hb_parcsiz() returns 0 (zero). > > Best regards. > > Maurilio. > > Maurilio Longo wrote: >> Ron, >> >> even worse, with latest cvs I get back garbage in ST mode and a series of >> Ch

Re: [xHarbour-developers] fread() fails with by-reference parameter

2008-06-20 Thread Maurilio Longo
And I can add that ISBYREF() fails, hb_parcsiz() returns 0 (zero). Best regards. Maurilio. Maurilio Longo wrote: > Ron, > > even worse, with latest cvs I get back garbage in ST mode and a series of Chr( > 7 ) in MT ?! > > > ST mode follows > > ---8<- > (E:\repos2

Re: [xHarbour-developers] fread() fails with by-reference parameter

2008-06-20 Thread Maurilio Longo
Ron, even worse, with latest cvs I get back garbage in ST mode and a series of Chr( 7 ) in MT ?! ST mode follows ---8<- (E:\repos2\xharbour\tests)ref2 99 0ÓïR ªR`¬RÓ¬R`®RáïR ░Rá®Rá░R`░RáñRáÑRÓ»RáÄRáöRáù RÓûR òR -Rá»Rá8R

Re: [xHarbour-developers] fread() fails with by-reference parameter

2008-06-20 Thread Maurilio Longo
Ron fread() says it read 0 bytes instead of 99. Best regards. ---8<--- (E:\repos2\xharbour\tests)ref2 99 000 0 --- Maurilio. Ron Pi

Re: [xHarbour-developers] fread() fails with by-reference parameter

2008-06-20 Thread Ron Pinkas
Maurilio, The only problem I see is in the sample code - it had a memory overrun and memory leaks. Here is the corrected sample: //-- // PROCEDURE main() LOCAL cStr := "Hello" MemoWrit( "test.txt", Replic

[xHarbour-developers] fread() fails with by-reference parameter

2008-06-20 Thread Maurilio Longo
Ron, fRead() has problems when some C code tries to pass to it a variable by-reference. See attached sample, I think this is strictly correlated to my previous posts about similar issues. Can this be solved? Can someone help me find the source of this issue so that I can try to fix it by mysel