Página 1 de 1

Error using BrowseForFolderDlg

Publicado: Vie Dic 22, 2017 3:33 pm
por Timm
Hi!

I get the error below from time to time. How can I get rid of it?

Best regards, Timm.


---------------- Information über die interne Fehlerbehandlung ----------------

Untersystemaufruf: BASE
Systemcode: 42
Default-Status: .F.
Beschreibung: Scope violation (protected)
Operation: TBROWSEFORFOLDERDLG:_CLASTFOLDER
Argumente:
Involvierte Dateien:
DOS-Fehlercode: 0

Aufgerufene Programmteile:
TBROWSEFORFOLDERDLG:_CLASTFOLDER (0)
TINTERNET:READFILE (0)
TFORM1:CALLAPI (1764)
TFORM1:READOPENORDERS (1880)
TFORM1:TIMERNEWORDERSTIMER (4958)
TTIMER:ONTIMER (0)
(b)XTIMER (43)
TTIMER:WMTIMER (0)
TBROWSEFORFOLDERDLG:RUN (0)
TBROWSEFORFOLDERDLG:BROWSEFOLDER (160)
TFORMSETUP2:BRWSIZESCOLUMN7BTNCLICK (225)
TDBBRWCOLUMN:ONBTNCLICK (0)
TGRIDEDIT:BTNCLICK (185)
TGRIDEDIT:XACLICK (112)
TMASKEDIT:WMLBUTTONUP (0)
TGRIDEDIT:WMLBUTTONUP (174)
TFORMSETUP2:SHOWMODAL (0)
TFORMSETUP:BTNMORESETUPCLICK (826)
TBTNBMP:ONCLICK (0)
TBTNBMP:CLICK (100)
(b)XCONTROL (156)
TBTNBMP:COMMAND (0)
TFOLDERPAGE:WMCOMMAND (275)
TFORMSETUP:SHOWMODAL (0)
(b)TFORM1_CREATEFORM (224)
TIMAGE:ONCLICK (0)
(b)XCONTROL (157)
TIMAGE:CLICK (0)
(b)XCONTROL (158)
TIMAGE:XACLICK (0)
TIMAGE:WMLBUTTONUP (0)
RUNFORM (0)
TAPPLICATION:RUN (287)
MAIN (30)

Re: Error using BrowseForFolderDlg

Publicado: Sab Dic 23, 2017 5:00 pm
por ignacio
Hello,

On file BROWSEFORFOLDER.PRG try to move the property cLastFolder to the RESERVED area:

PROTECTED:
DATA cLastFolder INIT "" >>>>>>>>>>>>>>>>> remove

RESERVED:
DATA cLastFolder INIT "" <<<<<<<<<<<<<<<<< Include

I attach the modified module.

Regards,

Re: Error using BrowseForFolderDlg

Publicado: Dom Dic 24, 2017 1:33 pm
por jfgimenez
Timm,

TInternet:ReadFile() has a call to ProcessMessages() inside it, and it seems that TBrowseForFolderDlg:cLastFolder is called from there somehow, which is very very strange. Please, send us a little and self contained example to research the problem in depth.

Re: Error using BrowseForFolderDlg

Publicado: Jue Dic 28, 2017 1:53 pm
por Timm
Hi!

Unfortunatly I can not reproduce the error on my pc. It was report to me from several costumers.
I sent them an update - let´s see, if the error still appears.

Best regards, Timm