Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: Ret code 0 (Function not successful) from L_FileInfo...
Started by ptrzeciak@dtcc.com at 11-10-2008 14:13. Topic has 6 replies.

Print Search « Previous Thread Next Thread »
  11-10-2008, 14:13
ptrzeciak@dtcc.com is not online. Last active: 11/10/2008 1:56:29 PM ptrzeciak@dtcc.com

Top 150 Posts
Joined on 10-28-2003
Posts 21
Ret code 0 (Function not successful) from L_FileInfo...
Reply Quote

Can anyone tell me what that return code means exactly.

I converted a program from v13.5 to v15 and suddenly I started getting this return code for SOME images that normally would be ok. I can't get any additional code as far as I can tell.

What could be causing it?

Here is the code:

uFlags = FILEINFO_TOTALPAGES;

ImageOptions.uStructSize = sizeof(ImageOptions);

nRet = L_FileInfo( Source.szFilename, &Source.FileInfo, sizeof(Source.FileInfo), uFlags, &ImageOptions);
if (nRet!=SUCCESS) {

}

Thanks!!!


   Report 
  11-11-2008, 4:18
Adnan Ismail is not online. Last active: 1/6/2009 4:12:02 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,364
Re: Ret code 0 (Function not successful) from L_FileInfo...
Reply Quote
The error code 0 (Function not successful) means that there is a problem when you call the L_FileInfo(). This failure could be generated by incorrect parameters you pass to the function. Can you try to isolate this issue in a very small test project (not your full application)? If yes, please send me this project in a ZIP or RAR file with a sample image so I can check it for you.


Adnan Ismail
LEADTOOLS Technical Support

   Report 
  11-11-2008, 8:39
ptrzeciak@dtcc.com is not online. Last active: 11/10/2008 1:56:29 PM ptrzeciak@dtcc.com

Top 150 Posts
Joined on 10-28-2003
Posts 21
Re: Ret code 0 (Function not successful) from L_FileInfo...
Reply Quote

After a bit more testing, it appears to me that it is "volume" related, as I only get the problem when my system is under heavy load and not when I try to process a single set of images. This is a very specific project with image data arriving from a custom imaging system, running on the IBM mainframe, so it would be hard to duplicate outside our own environment. I'll see if I can introduce some concurrency control and I'll come back if I have any other questions.

Thank you!!!


   Report 
  11-11-2008, 15:04
ptrzeciak@dtcc.com is not online. Last active: 11/10/2008 1:56:29 PM ptrzeciak@dtcc.com

Top 150 Posts
Joined on 10-28-2003
Posts 21
Re: Ret code 0 (Function not successful) from L_FileInfo...
Reply Quote

After some more research, I can't really figure out why the L_FileInfo fails... the source file is there and it is a valid file.

However, it appears that I can accomplish the same using L_FileConvert. The problem is I'm converting from multipage MOD:CA to multipage TIFF, and so far L_FileConvert, only takes the first page, however the help file clearly states that it converts from any format to any format. Can anyone help me with the parameters to make sure all pages are included in the conversion. Thanks!!!

 


   Report 
  11-12-2008, 10:23
Adnan Ismail is not online. Last active: 1/6/2009 4:12:02 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,364
Re: Ret code 0 (Function not successful) from L_FileInfo...
Reply Quote
The L_FileConvert method has the following parameters:
pLOADFILEOPTION pLoadOptions;
pSAVEFILEOPTION pSaveOptions;

Using them you can control the page number you load and where to save it. Did you try to use them?

About the original problem, please make sure you initialize the FILEINFO structure to zero values before using it. Otherwise, you could get the Failure error code.
Adnan Ismail
LEADTOOLS Technical Support

   Report 
  11-26-2008, 15:51
ptrzeciak@dtcc.com is not online. Last active: 11/10/2008 1:56:29 PM ptrzeciak@dtcc.com

Top 150 Posts
Joined on 10-28-2003
Posts 21
Re: Ret code 0 (Function not successful) from L_FileInfo...
Reply Quote

Hello again!

So, all the values are initialized to 0s, but the L_FileInfo returns "0" error code. The source file is there and the demo app can open it ok, as a MOD:CA. Like I mentioned before, this issue seems to be rendom (different images failt to convert at different runs) and load related (large number of threads).

Are you aware of any issues with LeadTools libs under such conditions?

Thanks!


   Report 
  11-27-2008, 7:46
Adnan Ismail is not online. Last active: 1/6/2009 4:12:02 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,364
Re: Ret code 0 (Function not successful) from L_FileInfo...
Reply Quote
Please try to isolate the problem as follows:
1. Create a new small project that only calls L_FileInfo.
2. Test it with some of your images.
3. If it triggers the problem with a specific image, send us the image and small project (not your full application) in a ZIP or RAR file.
4. If the problem is not triggered, try to simulate high volume by calling it in a loop and with multiple files.
You can send files to support@leadtools.com or post them here.


Adnan Ismail
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » General » Re: Ret code 0 (Function not successful) from L_FileInfo...

Powered by Community Server, by Telligent Systems