Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 ---Program working on Vista but not Xp?---
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
SpagehtiSauce




PostPosted: Thu Jun 18, 2009 7:41 am   Post subject: ---Program working on Vista but not Xp?---

What is it you are trying to achieve?
I'm finished a game that I created on turing for school.


What is the problem you are having?
On my home PC (vista), it works perfectly, but on the school PCs (XP) it does not. The problem is that when i run my program on a XP computer, my pictures for my stages (level etc.) says it cannot find it (Illegal Picture ID). It works perfectly fin on my vista computer at home. It is on a memory stick, so the directoy has not been changed.


Describe what you have tried to solve this problem
I've tested the theory with 4 computers. 2 of them were XP and the other 2 were Vista. It was only the Vista computers that was working.


Please specify what version of Turing you are using
Version 4.1.1
Sponsor
Sponsor
Sponsor
sponsor
cavetroll




PostPosted: Thu Jun 18, 2009 8:47 am   Post subject: RE:---Program working on Vista but not Xp?---

How many pictures do you have? If there are lots of them, that might be the cause of the problem. Since Vista demands more RAM than XP, the computer you are running it on would likely have more with Vista. Perhaps less is allocated to your program and therefore you cannot load all of the pictures. This would result in the "Illegal Picture ID" error message.

Of course, I'm sure there are many other reasons this could happen, but I would recommend looking at the specs for each of the test computers, see if you find a trend.
Euphoracle




PostPosted: Thu Jun 18, 2009 8:57 am   Post subject: RE:---Program working on Vista but not Xp?---

No. Vista and XP have different handlers for decoding images. I think on Vista, turing can use variations in the jpg format like progressive, but not on XP. I had a problem like this with my peer tutor students, and just made them resave all their images in Paint so they would work. Try that.
DtY




PostPosted: Thu Jun 18, 2009 9:49 am   Post subject: Re: RE:---Program working on Vista but not Xp?---

Euphoracle @ Thu Jun 18, 2009 8:57 am wrote:
No. Vista and XP have different handlers for decoding images. I think on Vista, turing can use variations in the jpg format like progressive, but not on XP. I had a problem like this with my peer tutor students, and just made them resave all their images in Paint so they would work. Try that.

Don't resave as jpeg, if you're using paint save as bmp. They will be a lot bigger, but paint will not let you set the compression quality of jpegs, and assumes you don't want any quality.
Atma Weapon




PostPosted: Thu Jul 09, 2009 2:36 am   Post subject: Re: ---Program working on Vista but not Xp?---

SpagehtiSauce @ Thu Jun 18, 2009 6:41 am wrote:
What is the problem you are having?
On my home PC (vista), it works perfectly, but on the school PCs (XP) it does not. The problem is that when i run my program on a XP computer, my pictures for my stages (level etc.) says it cannot find it (Illegal Picture ID). It works perfectly fin on my vista computer at home. It is on a memory stick, so the directoy has not been changed.


Actually I would think it a good possibility that if you are using non-relative locations in your var declarations, e.g. H:/Tommy/Game/Pic1.jpg in your code, you might be running into trouble when you take your USB key to school, and the parent directory changes. Your school may be different, but I remember our crummy old PCs ran everything off the network drive, with the local drive disabled- that meant that accessing the computer's cd rom drive meant specifying an unusual letter. If when you connect your USB key to the PC and you can't access a screen telling you what drive letter it's been assigned, you can do a little work in Turing to discover where your USB's at. Try substituting a different letter all the way up the alphabet for example. And if that fixes it, you can put your mainline in a big if statement to switch var declarations depending on whether you want to load from B: drive or Z: drive. With File.Exists and some loops, one could code something to auto-detect if you're running at home or school. I'd show an example, but my Turing's gotten lousy. Good luck.
chopperdudes




PostPosted: Thu Jul 23, 2009 6:21 pm   Post subject: RE:---Program working on Vista but not Xp?---

if your pictures are in the same folder and the path and names are correct, then it's most likely that you have quite a lot of images and didn't free them. this is most common when you have a for loop rotating a picture for example, and it clogs up space rly fast.
Prince Pwn




PostPosted: Sat Aug 08, 2009 4:01 pm   Post subject: RE:---Program working on Vista but not Xp?---

I agree with Atma Weapon, it is most likely a path issue. At home it's probably on the E: drive (for example) and at school it shows up as the H: drive.
Dan




PostPosted: Sat Aug 08, 2009 10:59 pm   Post subject: Re: RE:---Program working on Vista but not Xp?---

Euphoracle @ 18th June 2009, 8:57 am wrote:
No. Vista and XP have different handlers for decoding images. I think on Vista, turing can use variations in the jpg format like progressive, but not on XP. I had a problem like this with my peer tutor students, and just made them resave all their images in Paint so they would work. Try that.


I don't think Turing is coded differently for xp or vista (or even 98), they are all the same Turing assuming they are the same version. It's possible that a dll file outside of Turing is different but i think it is much more likely that it has to do with the difference in the paths in XP and Vista and they are not using a relative path in this case.

It would be interesting to test tho, if you have a JPG that only works on one windows version but not another, it would be great if you could post it so we could see.
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 8 Posts ]
Jump to:   


Style:  
Search: