Page 2 of 2

Posted: Fri Dec 21, 2007 2:23 pm
by Sparkie
@MikeB: Your code works fine for me with XP but fails on Vista.

Posted: Fri Dec 21, 2007 2:52 pm
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

Posted: Fri Dec 21, 2007 3:14 pm
by srod
lol. sparkie!!! Great avatar! :lol:

Posted: Fri Dec 21, 2007 3:38 pm
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:

Posted: Fri Dec 21, 2007 4:00 pm
by srod
hehe.

If you can't beat 'em...

(sorry MikeB for the off topic posts.)

Posted: Fri Dec 21, 2007 4:17 pm
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.

Posted: Fri Dec 21, 2007 6:39 pm
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

Posted: Fri Dec 21, 2007 7:20 pm
by Sparkie
This looks like it may address the situation...
http://support.microsoft.com/kb/935607

Posted: Fri Dec 21, 2007 7:32 pm
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.

Posted: Fri Dec 21, 2007 8:00 pm
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:

Posted: Fri Dec 21, 2007 8:36 pm
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

Posted: Fri Dec 21, 2007 10:47 pm
by Trond
Does it happen with GrabImage() as well?

Posted: Fri Dec 21, 2007 11:30 pm
by Sparkie
Replacing CopyImage() with GrabImage() works fine here with Vista.

Posted: Sat Dec 22, 2007 12:58 pm
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

Posted: Sat Dec 22, 2007 1:57 pm
by netmaestro
Also GrabImage is far faster than CopyImage.