Problems with Windows Service

Discussions about image processing and document imaging.
Post Reply
jloizagah
Posts: 29
Joined: Tue Mar 17, 2009 2:45 pm

Problems with Windows Service

Post by jloizagah » Mon May 07, 2012 1:49 pm

Hi. I'm trying to convert multipage tifs into pdfs with OCR, but using a Windows Service. Using your example like in
post4070.html?hilit=tiff%20to%20searchable%20pdf#p4070.
It works fine in a windows forms application, but in a windows service, I get an error in the line

int ImageID = oGdPictureImaging.TiffCreateMultiPageFromFile(tifFile);

The error message (in spanish) was "No se puede mostrar un cuadro de diálogo o formulario modal cuando la aplicación no está en modo UserInteractive. Especifique el estilo ServiceNotification o DefaultDesktopOnly para mostrar una notificación de una aplicación de servicio" . It seems that an error happens and GdPicture tries to show a Message Box, and that' is not allowed in a WS.

I'm using GdPicture.Net 8.5

Best regards.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Problems with Windows Service

Post by Loïc » Mon May 07, 2012 2:04 pm

Ola!

You have to check 3 points:

1- You are using the latest available version
2- You have correctly unlocked the SDK before calling this line (the message box can be the unlocked SDK alert)
3 - tifFile do not contains an empty string.

Hope this helps!

Kind regards,

Loïc

jloizagah
Posts: 29
Joined: Tue Mar 17, 2009 2:45 pm

Re: Problems with Windows Service

Post by jloizagah » Mon May 07, 2012 2:33 pm

Hi Loïc:

Awfully sorry. It was a wrong licence serial. It works fine now.
Best regards.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Problems with Windows Service

Post by Loïc » Mon May 07, 2012 2:48 pm

No problem!
Thank you for the return.

Regards,

Loïc

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest