Page 1 of 1

POLINK error ??

Posted: Sat Aug 02, 2014 9:33 am
by marc_256
For my CT Scanner 2D/3D viewer, I used some bmp images and tested it in my software.
Works very well, and now I have a new scan CD with new CT scanner images.
So, I install them in the DataSection and did not changed anything in the software.

And now I get this error message, and can't find why :oops: :oops:

Image

Someone any ideas ??

WIN8.1
8GB RAM
PB 5.30F x64
images 483 (504x504 px)
image type bmp 24/32 bits

Marc,

Re: POLINK error ??

Posted: Sat Aug 02, 2014 12:03 pm
by PB
Try disabling anti-virus and see if you can compile.
Usually that's the cause of POLINK errors.

Re: POLINK error ??

Posted: Sat Aug 02, 2014 12:17 pm
by Fred
You should not put all your image in the datasection, it's not the way to go. It will create a very large executable (that's why polink probably fails). Better uses a packfile or a zip, you will also saves a lot of memory resource as your image will be only present once in the memory (not in datasection + loaded). BTW what is the whole size of all your images ?

Re: POLINK error ??

Posted: Sat Aug 02, 2014 12:52 pm
by marc_256
@PB,

Before this post I did an earlier search on the PB forum, and disabled already NOD32 anti virus.
So, there is no difference at all.
And the program worked very well before, but with other images.

@Fred,

The problem is that I need the best highest detailed image, so I work only with bmp files,
:oops: and yes, 504*504 px in 24 bits/px = 993 Kb/bmp image
933kb * 483 images = +- 450.639.000 bytes = +-450 Mbytes 8)

That is probably the problem ...
as they are all gray-scale images, I go try to convert them to 8 bits/px images

thanks,

Re: POLINK error ??

Posted: Sat Aug 02, 2014 1:16 pm
by Fred
I still don't understand why you want them included in the executable... And yes, 500 MB for an exe is probably too much ;).

Re: POLINK error ??

Posted: Sat Aug 02, 2014 2:06 pm
by PB
> I need the best highest detailed image, so I work only with bmp files

PNGs have the same quality as BMPs but at a much smaller size. ;)

Re: POLINK error ??

Posted: Sat Aug 02, 2014 2:53 pm
by marc_256
The main reason for all this is speed,
the scans are delivered or in bmp(24bits/px) or in jpeg files.
Or I can write some software to convert the loaded 24 bits images to 8 bit images in memory.

So, I'm going for bmp files.
Second is the calculation time, if I need to load every time all the 2D scan images,
and convert them to 3D images.
With my approach I need about 2 minutes to convert the 2D images to one 3D image and the filtered images.
(see below)
I need also pixel manipulation to make them transparent and/or filter them away.

Image


The right images are the CT Scan 2D gray-scale images (149),
so the user can select the start image from where to build the 3D images and filter images.
With this example, we start at image 65.
On the left, the 3D created and filtered image.
So What I think is that 32 bit/px data is what I need to filter the data ??




Image

Re: POLINK error ??

Posted: Sat Aug 02, 2014 4:59 pm
by marc_256
Hello,

I replaced all my DataSection images CatchImage(), with LoadImage() commands.
The running file is around 2,628 Gb long, 8) and works well.

But now I have some privacy problems with the images. :?:

Now I need to protect the images file first ... (when I have some time)

marc,