Search found 541 matches: quit

Return to advanced search

Re: Quit a process exe

Hello Silvio, maybe you can check the class. Is your class registerd? Maybe this from Petzold's book help? Best regards, Otto Dear Otto, what question you ask me I use Tcalex class on a Dialog ( style ws_child) and this dialog is on a Window ( no Mdi) this class is registred ? do not be a professor...
by Silvio.Falconi
Fri Jun 05, 2020 5:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Quit a process exe
Replies: 5
Views: 859

Re: Quit a process exe

Hello Silvio,
maybe you can check the class. Is your class registerd?
Maybe this from Petzold's book help?
Best regards,
Otto


Image

Image
by Otto
Fri Jun 05, 2020 10:36 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Quit a process exe
Replies: 5
Views: 859

Re: Quit a process exe

I have tried both with: PostMessage (0)quit i tried with HB_GCALL (.t.)  MemoryFlush () always the same remains the "exe" file in memory (in the management of windows activities ) as you can see in this figure https://i.postimg.cc/mDWfW48m/test.gif ...
by Silvio.Falconi
Thu Jun 04, 2020 11:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Quit a process exe
Replies: 5
Views: 859

Re: Quit a process exe

Silvio:

Code: Select all  Expand view
  PostQuitMessage(0)

   QUIT
 



https://docs.microsoft.com/en-us/window ... uitmessage
by MOISES
Sat May 30, 2020 8:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Quit a process exe
Replies: 5
Views: 859

Re: Quit a process exe

Now I found a function it seems to close the exe HB_GCALL( .t. ) at Begin of Main.prg then MemoryFlush() when the exe must be closed FUNCTION MemoryFlush() SetProcess( -1, -1, -1 ) RETURN NIL DLL32 Function SetProcess( hWnd As LONG, nMinWorkingSpace As LONG, nMaxWorkingSpace As LONG ) As LONG PASCAL...
by Silvio.Falconi
Fri May 29, 2020 3:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Quit a process exe
Replies: 5
Views: 859

Quit a process exe

when I close the main window from the "X" the application is closed, but in reality the exe remains in memory on the computer causing memory leaks. I can't find the error. https://i.postimg.cc/TwmyZgmK/hh.jpg In reality the problem occurs when the Tcalex () class is called ...
by Silvio.Falconi
Fri May 29, 2020 2:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Quit a process exe
Replies: 5
Views: 859

Re: Quit the program when time out (like screen saver)

Why making it so difficult.

It's quite easy.

Just start a timer. This timer checks for example every 30 seconds if a certain time has passed.
If so, just quit the program.

Not that difficult.
by driessen
Mon Apr 13, 2020 1:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Quit the program when time out (like screen saver)
Replies: 5
Views: 1458

Re: Quit the program when time out (like screen saver)

hello, see my class tinativo() William Adami * exemplo do uso da classe Tinativo* Apos um tempo de inatividade do mouse * e do teclado chama uma funcao qualquer.#include "fivewin.ch"static oWnd*************function main*************nTempo_espera:=10 //Tempo a ser esperado ate chamar a fun...
by Silvio.Falconi
Sat Apr 11, 2020 5:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Quit the program when time out (like screen saver)
Replies: 5
Views: 1458

Re: CheckRes()

1. ya probe sin el PostQuitMessage( 0 ), __QUIT() y sigue sin generar el checkres

2. corri un ejemplo de fivewin con xharbour.org y genera el checkres

3. no se si es porque uso xharbour.com ?

Gracias
by russimicro
Sat Mar 14, 2020 5:25 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: CheckRes()
Replies: 22
Views: 3826

Re: CheckRes()

SET RESOURCES TO
ResAllFree( )
MEMORY( - 1 )



DbCommitAll()
DbUnLockAll()
DbCloseAll()

FreeResources()
Release All
SysRefresh()
HB_GCALL( .T. )
CLEAR MEMORY


CheckRes()


PostQuitMessage( 0 )
__QUIT()
by russimicro
Mon Mar 09, 2020 9:01 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: CheckRes()
Replies: 22
Views: 3826

A problem with GDIP_IMAGEFROMFILE() [Solved]

Dear friends, I have a problem with the funcion GDIP_IMAGEFROMFILE(): normally it works fine but in one of my source code it just quit the program without messages or log files. I'm using it in this way: hImg = GDIP_IMAGEFROMFILE( cFile, .T., .T. ) If I replace it with hImg = PALBMPREAD( ...
by Enrico Maria Giordano
Fri Feb 28, 2020 8:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GDIP_IMAGEFROMFILE() [Solved]
Replies: 2
Views: 536

Re: Retomo Problema de uso de Word

si usas harbour, debes usar win_oleCreateObject para crear el objeto com, y al final oWord:Quit() para finalizar y cerrar la instancia. /* * OLE demo/test code * * Copyright 2007 Enrico Maria Giordano e.m.giordano at emagsoftware.it * Copyright 2008-2017 ...
by carlos vargas
Thu Oct 10, 2019 8:49 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Retomo Problema de uso de Word "FUNCIONANDO"
Replies: 17
Views: 2956

Re: Retomo Problema de uso de Word

... codigo probado, observa lo siguiente: * oWord:Documents:Close() //AQUI: si estos estan omitidos, siempre quedarán abiertos los documentos * oWord:Quit() Function G_Francisco2() Local oWord, oSel, oDoc,cOrigen,cDestino,cFile,cSave, Nom1,rut1,naci1 local oActiveDoc,aArrReplace, n cOrigen := "C:\Desa\FichasWin\Doc\Doc_Bases\" ...
by FranciscoA
Thu Oct 10, 2019 6:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Retomo Problema de uso de Word "FUNCIONANDO"
Replies: 17
Views: 2956

Re: Programa Oculto

... 0, "Finder 1.0") IF hWnd != 0 ShowWindow( hWnd, 1 ) MsgAlert("Ya esta corriendo la aplicacion","Advertencia") QUIT ENDIF PRINTER oPrn to "CFDPRINTER" DEFINE WINDOW oWnd FROM 1, 1 TO 10, 30 ; TITLE "Finder 1.0" ; COLOR "B/W" ICON ...
by servicomver
Mon Jul 29, 2019 2:57 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Programa Oculto
Replies: 4
Views: 990
PreviousNext

Return to advanced search