POLINK error ??

Just starting out? Need help? Post your questions and find answers here.
marc_256
Addict
Addict
Posts: 862
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

POLINK error ??

Post 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,
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: POLINK error ??

Post by PB »

Try disabling anti-virus and see if you can compile.
Usually that's the cause of POLINK errors.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Fred
Administrator
Administrator
Posts: 18549
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: POLINK error ??

Post 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 ?
marc_256
Addict
Addict
Posts: 862
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: POLINK error ??

Post 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,
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
Fred
Administrator
Administrator
Posts: 18549
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: POLINK error ??

Post 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 ;).
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: POLINK error ??

Post 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. ;)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
marc_256
Addict
Addict
Posts: 862
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: POLINK error ??

Post 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
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
marc_256
Addict
Addict
Posts: 862
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: POLINK error ??

Post 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,
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
Post Reply