Bug Reports
wwPDF.prg::wwPDF.UnlockSemaphore run into error
Gravatar is a globally recognized avatar based on your email address. wwPDF.prg::wwPDF.UnlockSemaphore run into error
  Toni Köhler
  All
  Jul 25, 2022 @ 12:21am

Hi Rick,

please implement into UnlockSemaphore: -> befor you use the cSemaphoreFile -> check if cSemaphoreFile exists.

Run into error:

Do ..\wconnect728\classes\wwpdf.fxp
loPdf = CREATEOBJECT("wwPDF")
loPdf = null

Fixed Code:

IF !USED("wwPDF")
	IF FILE(THIS.cSemaphoreFile)
		USE (THIS.cSemaphoreFile) ALIAS wwPDF IN 0
	ENDIF
ENDIF
Gravatar is a globally recognized avatar based on your email address. re: wwPDF.prg::wwPDF.UnlockSemaphore run into error
  Rick Strahl
  Toni Köhler
  Jul 25, 2022 @ 12:29pm

Thanks...

I think it probably needs to be like this:

PROTECTED FUNCTION UnlockSemaphore
lcOldAlias = ALIAS()

IF !USED("wwPDF")
   IF FILE(THIS.cSemaphoreFile)
   		USE (THIS.cSemaphoreFile) ALIAS wwPDF IN 0
   ENDIF
ENDIF
IF USED("wwPDF")
	SELE wwPDF 
	UNLOCK
		
	IF !EMPTY(lcOldAlias)
	   SELE (lcOldAlias)
	ENDIF
ENDIF
   
RETURN
ENDFUNC
Gravatar is a globally recognized avatar based on your email address. re: wwPDF.prg::wwPDF.UnlockSemaphore run into error
  Toni Köhler
  Rick Strahl
  Jul 25, 2022 @ 12:50pm

Hi Rick,

yes, that's it.

Toni

© 1996-2022