CopyImage problem

Just starting out? Need help? Post your questions and find answers here.
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

@MikeB: Your code works fine for me with XP but fails on Vista.
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Sparkie wrote:@MikeB: Your code works fine for me with XP but fails on Vista.
Once again, Sparkie rules.

The second works fine for me under Vista.

err- not sure which example you're referring to :oops:

Yes, the first fails on Vista. And works fine on xp.


cheers
Last edited by rsts on Fri Dec 21, 2007 3:36 pm, edited 3 times in total.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

lol. sparkie!!! Great avatar! :lol:
I may look like a mule, but I'm not a complete ass.
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

@rsts: I was referring to MikeB's first snippet http://www.purebasic.fr/english/viewtop ... 102#224102

@srod: Thanks... I gotta keep my body heat up in this frigid weather or my guano will freeze up on me. You can't imagine the mess it makes after a spring thaw. :shock:
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

hehe.

If you can't beat 'em...

(sorry MikeB for the off topic posts.)
I may look like a mule, but I'm not a complete ass.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

If you can't beat 'em...
...beat them! Because they will be expecting you to join them, so you have the element of surprise.
MikeB
Enthusiast
Enthusiast
Posts: 183
Joined: Sun Apr 27, 2003 8:39 pm
Location: Cornwall UK

Post by MikeB »

Thanks to all who have had a go at this problem, it would appear that it is Vista/PB incompatibility on this point and therefore I don't need to carry on straining my brain over it. :lol:

As I said I have found a solution that works for what I am doing at the moment, so I will wait for the update that is bound to come along soon to get it working properly, although it will probably be a long time before I want to duplicate large images again.
:D
Mike.
(I'm never going to catch up with the improvements to this program)
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

This looks like it may address the situation...
http://support.microsoft.com/kb/935607
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Good find Sparkie, it looks right on the money. It's hard to believe they're scrimping on storage using word vars for anything in a piece of bloatware like that.
BERESHEIT
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

You'd think Vista would move forward rather than backwards with CopyImage_() in order to keep up with the ever increasing resolution of digital cameras of the 21st Century. :roll:
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
MikeB
Enthusiast
Enthusiast
Posts: 183
Joined: Sun Apr 27, 2003 8:39 pm
Location: Cornwall UK

Post by MikeB »

If the service pack is coming out in the first quarter of next year, that will do for me. My all singing, dancing picture viewer now does just about everything, mostly specific to my rather strange requirements. :lol:

It is however a bit of a prize muck-up that some idiot decided to use a word value as parameter for digital images :x

Anyway many thanks to Sparkie for solving the mystery! :D
Mike.
(I'm never going to catch up with the improvements to this program)
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Does it happen with GrabImage() as well?
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

Replacing CopyImage() with GrabImage() works fine here with Vista.
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
MikeB
Enthusiast
Enthusiast
Posts: 183
Joined: Sun Apr 27, 2003 8:39 pm
Location: Cornwall UK

Post by MikeB »

I must be dense, I never thought of GrabImage! :oops: However I just tried it and it works fine with my Vista 32 bit with an image of 3648×2736. :D
Mike.
(I'm never going to catch up with the improvements to this program)
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Also GrabImage is far faster than CopyImage.
BERESHEIT
Post Reply