Errors while creating PDF on ME

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Andrew - Tracker Support, Tracker - Clarion Support, John - Tracker Supp, Support Staff, moderators

Post Reply
ken66
User
Posts: 50
Joined: Mon May 16, 2005 5:10 pm

Errors while creating PDF on ME

Post by ken66 » Thu Jul 14, 2005 12:13 am

I finished implementing your library into our application. I tested the application on Window NT, XP, 2K, and 98 and the PDF was created fine. I then tested on Windows ME. The images and text are missing from the PDF file. Anything to do with drawing lines appears OK. The function PXC_AddFontA is returning an error code of 0x8204271b(PXC_ERR_INVALIDFONT). I am specifying the font "Arial". In addition, the function PXC_AddImageA returns an error code of 0x83f40078.

I have attached a test project that demonstrates this problem. Are you able to reproduce this? Any help would be greatly appreciated.
Attachments
ME.zip
(116.68 KiB) Downloaded 120 times

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Thu Jul 14, 2005 8:02 am

Hi Ken,

can you confirm that you have distributed the Unicows.dll on this machine and it is located with all our other dll's ?
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

ken66
User
Posts: 50
Joined: Mon May 16, 2005 5:10 pm

Post by ken66 » Thu Jul 14, 2005 6:35 pm

I verified that the unicows.dll wasn't on the Windows ME system. I also verified the same problem happened on Win98 with the unicows.dll missing. But when I added the unicows.dll to the ME system and my application will not run. I get the error

ProgramX has caused an error in PROGRAMX.EXE.
ProgramX will now close.

The error seems to be happening during the loading of the librarys, InitInstance() is never called. This only happens on my ME system. The Windows 98 system works fine.

My test app doesn't have this error though. I tried adding the DLL to a previous version of our application (pre the PDF library) to see if we had a problem before adding the PDF Library but in that case everything worked fine.

Any thoughts about what could be wrong?

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Fri Jul 15, 2005 9:38 am

Hi,

Where are you locating this and other dll's for your app and our libraries on the offending PC ?

Please send a screenshot showing all the dll's and exe files in this folder with file dates exposed..

We do not advise you install these in the \system32 folder

Thanks
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

ken66
User
Posts: 50
Joined: Mon May 16, 2005 5:10 pm

Post by ken66 » Fri Jul 15, 2005 3:48 pm

The files are all in the application working directory, I have attached a jpg of the DLLs in the directory.

If it would help, I could send you a version of our software but the install is about 12 M.

Thanks
Attachments
screenshot.zip
(155.59 KiB) Downloaded 125 times

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Fri Jul 15, 2005 4:50 pm

Please do send a copy of your product that we can test - please supply some simple (idiot proof) instructions on use and any sample data available to allow us to use as quickly as possible.

Please send to usrfiles@tracker-software.com

or FTP to

http://www.tracker-software.com

login/password = usrfiles

thanks
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

ken66
User
Posts: 50
Joined: Mon May 16, 2005 5:10 pm

Post by ken66 » Fri Jul 15, 2005 5:29 pm

I FTPed the needed files. The install file, an example PDF, and a text file with some instructions are in the ken66 directory.

Let me know if you need anything else.

Thanks

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Sat Jul 16, 2005 9:32 am

Thanks - will look into.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Sat Jul 16, 2005 12:07 pm

Ken,

as expected your app performs correctly here - I am 99.99% sure you are using an older version of unicows.dll on this system - somewhere - than the one we supply with our SDK

Please locate all copies on your system and replace with the one supplied by us if older.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

ken66
User
Posts: 50
Joined: Mon May 16, 2005 5:10 pm

Post by ken66 » Mon Jul 18, 2005 3:41 pm

Thanks for trying, I have searched the system and that is the only UNICOWS.DLL. If there was another UNICOWS I would figure the error would occur all the time but if I remove the UNICOWS.DLL in the local directory the error goes away. The data and time of that UNICOWS.DLL are the same as the screen shot I uploaded earlier.

I'm assuming there is something that is installed that is conflicting or something that needs to be installed on that ME system. Figuring that out will be the trick. Do you know if the UNICOWS.DLL requires any other Microsoft DLLs?

Thanks

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Mon Jul 18, 2005 4:20 pm

Hi Ken,

just as an experiment - can you please try this - cut/paste the Unicows.dll to your Windows system folder please ?
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

ken66
User
Posts: 50
Joined: Mon May 16, 2005 5:10 pm

Post by ken66 » Mon Jul 18, 2005 4:28 pm

I actually tried that last week but I just tried again to make sure. There is no difference. I have found a list of needed DLLs and they seem to be all there.

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Mon Jul 18, 2005 4:49 pm

Do you have access to any other 'ME' based machines to test - as we cannot replicate this at all on 3 different machines here ?

Foxed for the moment :(
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

ken66
User
Posts: 50
Joined: Mon May 16, 2005 5:10 pm

Post by ken66 » Mon Jul 18, 2005 5:06 pm

I'm looking for one now. I starting to think it is something with that install, I hope. Are you able to create a PDF file from our App on your ME systems?

Thanks for your help

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Mon Jul 18, 2005 7:01 pm

Hi Ken,

yes we are - please see attached.

If you look under document properties of the PDF when viewing - you can see that this file was made by Windows ME and PDF-XChange build 86.
Attachments
yyyy.zip
sample file
(111.72 KiB) Downloaded 120 times
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

ken66
User
Posts: 50
Joined: Mon May 16, 2005 5:10 pm

Post by ken66 » Mon Jul 18, 2005 11:32 pm

I'm quite confused then. We found another PC running windows 98 SE that experiences the same problem. But a windows 98 SE system I have been using for a while works fine. As soon as we remove the UNICOWS.DLL, the app runs but of course the PDFs have problems. I have added messages in InitInstance() and the messages never appear.

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Tue Jul 19, 2005 9:59 am

Hi Ken,

we need to narrow this down to establish if it is your users environment, your app or the library itself (which I doubt to be honest)

Could you please try some of our demo apps in the installation \bin folder and let me know how these function - please do re-instate unicows.dll into this same folder.

will await your advice.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

ken66
User
Posts: 50
Joined: Mon May 16, 2005 5:10 pm

Post by ken66 » Tue Jul 19, 2005 4:07 pm

I cannot compile your example code, I get an error "cannot open include file 'atlres.h'".

ken66
User
Posts: 50
Joined: Mon May 16, 2005 5:10 pm

Post by ken66 » Wed Jul 20, 2005 12:00 am

We have found where the crash is created but do not understand. It is in some special math code of ours that works normally but not when the UNICOWS.DLL is loaded on some win98 and winME systems. Anyhow, I do not think you need to do anything at the moment. We will try to figure out a solution.

Thanks for all your help

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Wed Jul 20, 2005 7:04 am

ok thanks - will wait to hear more.

The file you are looking for (altres.h) is part of the MS Windows template library (WTL) - we give a link and info on the FAQ page in the forum:

http://www.tracker-software.com/forum/v ... .php?t=468

2nd item down

cheers
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

ken66
User
Posts: 50
Joined: Mon May 16, 2005 5:10 pm

Post by ken66 » Wed Jul 20, 2005 8:37 pm

For you information, here is what we discovered.

We share some code with embedded systems and they have a case where we do a float divide by zero. The value (1.#INV or 1.#IND) are used to check if there is invalid data being used. It seemed that when the UNICOWS.DLL is loaded the floating-point exceptions are unmasked but only on some Win 98 and Win ME systems. We solved it by doing a _fpreset() which masks all the floating point exceptions. This solved the problem but we were unclear why this was happening on only some systems. After some more research, we found the following thread on google groups.

http://groups-beta.google.com/group/mic ... nicows+10H

Others have experienced this problem and there is a comment about it happening when there is a HP printer connected to the system. FYI, The systems we have troubles with here have HP printers connected to them.

Thanks again for helping us out

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Thu Jul 21, 2005 6:22 am

Thanks Ken,

really appreciate the info - who would have thought !

Will FAQ this for future use ;)

Cheers
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Post Reply