Paradox 10, standalone machine.
Reading in JPG files from a local directory.
I read from file to graphic variable then set undefined graphic on a form to that variable.
As cursor moves down table grid, on record arrive I read and display.
It works.
BUT
I see this error:
When moving quickly down or up or mouse clicking to change rows.
I can slowly move up and down 100s of rows, but holding down to scroll down, about 10-20 in I see this error.
One the error occurs it then occurs for every move after initial error, until a Paradox restart.
Seems speed related.
Removing the setting of the graphic object showed same issue, so it is on the read from file conversion in rapid succession.
I know CDRONV is used with in the Corel Suite to convert, making all graphics to BMPs.
I am looking at options.
Convert all JPGs to BMP before reading with outside tool?
Loading JPGs to with in a temp table (making them BMPs) and linking? Scanning a table might have same results.
Using an OCX viewer embedded in form?
Some of these jpgs are higher res, although not huge, they are not tiny either.
Any thoughts would be appreciated.
--
You received this message because you are subscribed to the Google Groups "TheDBCommunity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thedbcommunit...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/thedbcommunity/ee2d868f-e3bb-4263-a8b6-7e57a8b4126en%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/thedbcommunity/0043fbd4-6f2a-47d7-b614-092f4d1d84afn%40googlegroups.com.
If you convert the images to BMP in dev, and test it, this will tell you whether it's a file system error, or something else (either the JPG conversion or a leak in the graphic UIO, probably). My guess is that it's the constant reading from the file system. I would think a 1:1 table with the images in the second table would resolve any file system issues. But I wouldn't put anything in the second table other than the key of the first table (which is hopefully a meaningless longInt) and the graphic - since the table with the graphic risks blob corruption.Does the user really need to see images *as they scroll* or just once they settle on a record? Because if the latter, then we can probably find some way to manage showing the image without doing it on every arrive.Finally, arrives can happen multiple times, so you should check that your code isn't firing multiple [read graphic & assign]s for every record in the table.FWIW,Liz
I downloaded an image viewer OCX and then registered in Paradox.
It does not show up in the list to add to OCX toolbar.
I tried registering it from desktop folder and system WOW folder, etc.
Any suggestions? Documentation is vague but it reads as if you can register it from anywhere into Paradox then add to tool bar.