Search found 90 matches

by Patrizio
Wed Jan 20, 2010 8:01 am
Forum: FiveWin for Harbour/xHarbour
Topic: Memory error with FiveWin + xHarbour.com
Replies: 14
Views: 5609

Re: Memory error with FiveWin + xHarbour.com

Antonio, I agree with you, but I don't understand why the source compiled with only xHarbour.com (with pelles c compiler) it's ok and the source compiled with xHarbour.com (the same pelles c compiler) and FiveWin it's ko. #include "HBClass.ch" PROC Main()    LOCAL aObj  := Array(1000000)  ...
by Patrizio
Tue Jan 19, 2010 2:11 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Memory error with FiveWin + xHarbour.com
Replies: 14
Views: 5609

Re: Memory error with FiveWin + xHarbour.com

Antonio, error again :(
by Patrizio
Tue Jan 19, 2010 11:46 am
Forum: FiveWin for Harbour/xHarbour
Topic: Memory error with FiveWin + xHarbour.com
Replies: 14
Views: 5609

Memory error with FiveWin + xHarbour.com

Ola Antonio, This code generate a memory error when the memory allocated is close to 140 mega if I compile it with FWH + xHarbour.com If i compile the same code with FWH + xHarbour.org the error is generated when the memory allocated is close to 2 giga (size of the ram available in the pc). If i com...
by Patrizio
Thu Dec 10, 2009 11:04 am
Forum: FiveWin for Harbour/xHarbour
Topic: ShellExecute
Replies: 7
Views: 1523

Re: ShellExecute

Driessen, http://msdn.microsoft.com/en-us/library/bb762153(VS.85).aspx lpParameters [in] If lpFile specifies an executable file, this parameter is a pointer to a null-terminated string that specifies the parameters to be passed to the application. The format of this string is determined by the verb ...
by Patrizio
Mon Dec 07, 2009 11:50 am
Forum: FiveWin for Harbour/xHarbour
Topic: Changing directory in tFtp
Replies: 7
Views: 1031

Re: Changing directory in tFtp

FtpFindFirstFile/InternetFindNextFile return the filename filled by a char, i think chr(0). I use this HB_FUNC( CLEARSTRING )                                                                   {                                                                                            hb_retc(hb_parc...
by Patrizio
Wed Nov 25, 2009 4:35 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Process is running?
Replies: 10
Views: 1583

Re: Process is running?

I don't see an api for find the process by name, i resolve a similar problem with            FUNC MyFunction(cProcessName)       LOCAL aProcess, hHandle       aProcess    := GetProcessListArray()       FOR EACH nHandle IN aProcess          IF AllTrim(Upper(GetProcessName(nHandle))) == AllTrim(Upper(...
by Patrizio
Wed Nov 25, 2009 1:41 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Process is running?
Replies: 10
Views: 1583

Re: Process is running?

Hi Ugo, this HB_FUNC( GETPROCESSLISTARRAY ) {    DWORD aProcesses[1024];    DWORD nBytes;    DWORD nProcesses;    unsigned int i;    if ( EnumProcesses( aProcesses, sizeof(aProcesses), &nBytes ) )    {       nProcesses = nBytes / sizeof(DWORD);       hb_reta( nProcesses - 1 );       for ( i = 0;...
by Patrizio
Mon Nov 16, 2009 8:01 am
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with structures
Replies: 1
Views: 622

Re: Problem with structures

Codemaker, try this: METHOD Memory(n) CLASS TSystemInfo LOCAL nRetu LOCAL mst #ifdef __HARBOUR__ #pragma BEGINDUMP #include "windows.h" nRetu := HB_INLINE( n ) { MEMORYSTATUS mst; long n = hb_parnl(1); mst.dwLength = sizeof( MEMORYSTATUS ); GlobalMemoryStatus( &mst ); switch( n ) { cas...
by Patrizio
Tue Nov 10, 2009 8:37 am
Forum: FiveWin for Harbour/xHarbour
Topic: IF on 3 state on doubleclick action
Replies: 5
Views: 708

Re: IF on 3 state on doubleclick action

Silvio, if the order of the threestate is SNC I think you can reduce your code with

Code: Select all

aData[oLbx:nAt, oLbx:nColAct] := SubStr("SNCS",At(aData[oLbx:nAt, oLbx:nColAct],"SNCS")+1,1); oLbx:Drawselect()
by Patrizio
Fri Oct 30, 2009 8:35 am
Forum: FiveWin for Harbour/xHarbour
Topic: How to clear ordScope()
Replies: 11
Views: 2442

Re: How to clear ordScope()

Do you change index between SetMyFilter() and ClearMyFilter() ?
by Patrizio
Mon Aug 03, 2009 10:52 am
Forum: All products support
Topic: error link per ado
Replies: 7
Views: 1399

Re: error link per ado

Metti il nome tra parentesi quadre

Code: Select all

SELECT [Book ID] etc
by Patrizio
Mon Jun 22, 2009 4:34 pm
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse required bug fixes !
Replies: 6
Views: 1162

Re: xbrowse required bug fixes !

Good :D
by Patrizio
Thu Jan 24, 2008 10:26 am
Forum: FiveWin for Harbour/xHarbour
Topic: GDI objects leaks
Replies: 8
Views: 2184

In METHOD End() CLASS TXBrwColumn there is this code: for nFor := 1 to Len( ::aBitmaps ) PalBmpFree( ::aBitmaps[ BITMAP_HANDLE ], ::aBitmaps[ BITMAP_PALETTE ] ) next That should destroy both the bitmaps and the palettes PROC Main() LOCAL aBitmaps := {} LOCAL aBmp1, aBmp2, aBmp3, n FOR n := 1 TO 5 a...
by Patrizio
Thu Jan 24, 2008 9:24 am
Forum: FiveWin for Harbour/xHarbour
Topic: GDI objects leaks
Replies: 8
Views: 2184

Patrizio, > TVSetColor increment by two the GDI objects (two brushes) in use without decrement when destroy the TreeView. > How do you know this ? How have you checked it ? Thanks I use MSDN GDIndicator e GDIUsage : http://msdn.microsoft.com/msdnmag/issues/03/01/GDILeaks/ In this case GDIndicator s...
by Patrizio
Wed Jan 23, 2008 4:05 pm
Forum: FiveWin for Harbour/xHarbour
Topic: GDI objects leaks
Replies: 8
Views: 2184

GDI objects leaks

Hola Antonio, I have found some bugs that cause GDI objects leaks. TTreeVie.prg : METHOD SetColor( nClrText, nClrPane ) INLINE ; Super:SetColor( nClrText, nClrPane ), TVSetColor( ::hWnd, nClrText, nClrPane ) TVSetColor increment by two the GDI objects (two brushes) in use without decrement when dest...