Source language: Translate to:

Error 5 - Denied Access

NeoBook tips, tricks, code samples and more...

Moderator: Neosoft Support

Error 5 - Denied Access

Postby David de Argentina » Thu Jul 10, 2008 8:39 pm

Hi Dave,

I'm working on a CallerID plugin.

Each time the plugin detects a call, captures the phone number and calls a "kind" of a NeoBook CallBack function.

This function is a dummy process, never called by the main Neo program, and this function process the received caller number and do something.

In this case, retrieves the number on the screen.

If I use an AlertBox action, everything works fine...
If I use a CustomWindow ( a rectangle with some text and close button) I receive an Error 5 - Denied Access.
If I use a Balloon or StickyNote, nothing appairs on the screen...
If I use another ways via plugins ( OSD or MatPopup ) program crashes.

I tried set the plugin to work as exclusive mode (modal) and non exclusive mode (modeless). The result is the same.

This is the code of the Callback Function:

Code: Select all
:nueva_llamada
Setvar "[n]" "[n]+1"
if "[n]" "=" "1"
  SetVar "[PubTitle]" "Caller ID 1.06 - 1 Mensaje Nuevo"
else
  SetVar "[PubTitle]" "Caller ID 1.06 - [n] Mensajes Nuevos"
endif

StrReplace "[ae_CallerID_Number]" " " "" "[ae_CallerID_Number]"
StrReplace "[ae_CallerID_Number]" "[#13]" "" "[ae_CallerID_Number]"

setvar "[fecha]" "[dateshort]"
Setvar "[hora]" "[time24]"

.GoSub "BuscaDatos"

.AlertBox "Nueva Llamada" "Número: [ae_CallerID_Number]||Nombre Titular: [nombre]|Dirección: [direccion]|Localidad: [localidad]|Provincia: [provincia]"

CustomWindow "" "-1" "-1" "Agrupar1" "NoBorder+Exclusive"

SetVar "[WindowState]" "Minimized"
Return


Any ideas ?

Thanks in advance,
David de Argentina
User avatar
David de Argentina
 
Posts: 1560
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina

Postby David de Argentina » Fri Jul 11, 2008 1:33 am

Sorry Dave,

I created a separated thread in order to "Listen" the COM port.

When the plugin sends the control to Neo program in order to execute the callback function, this thread does not know to do...

Bug Fixed, works fine.
David de Argentina
User avatar
David de Argentina
 
Posts: 1560
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina


Return to NeoBook Knowledgebase

Who is online

Users browsing this forum: No registered users and 1 guest