h23kalia / iphonelist

Automatically exported from code.google.com/p/iphonelist
0 stars 0 forks source link

iTunesMobileDevice.dll not located #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Unpacked StandAlone into phonedmg\iPhoneList
2. Double-clicked iPhoneList.exe
3.

What is the expected output? What do you see instead?
Program startup. Instead, crash error message.

What version of the product are you using? On what operating system?
I don't know - no about box :) (0.9.8.70)
Windows XP SP2

Please provide any additional information below.

Your code looks ok, I would suggest replacing internal class with this I
use in iPhoneBrowser:

        [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError =
true)]
        public static extern bool SetEnvironmentVariable(string lpName,
string lpValue);

        static MobileDevice() {
            // try to find the dll automatically
            string newpath = Environment.GetEnvironmentVariable("Path");
            newpath += ";" +
Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFiles) +
@"\Apple\Mobile Device Support\bin";
            SetEnvironmentVariable("Path", newpath);
        }

though I like your Environemtn.SetEnvironmentVariable.

I don't see an error in your code though - maybe you included the wrong
version of manzana.dll?

Original issue reported on code.google.com by NetMage....@gmail.com on 14 Sep 2007 at 6:45

GoogleCodeExporter commented 9 years ago
I tested, and Environment.SetEnvironmentVariable worked fine.

The internal class comment is wrong - I was confused by mis-indented braces. 
Maybe
you just need static on the constructor?

Original comment by NetMage....@gmail.com on 14 Sep 2007 at 6:53

GoogleCodeExporter commented 9 years ago
Thank you for the info, I'll be working on it today. I've had some delays 
working on
this due to kids being in school and a heavier workload. I've been hoping 
another
developer would volunteer to help out with this.

I'm working on a native Windows binary plist decoder on the side.. man it's a 
can of
worms, and there's no really good documentation for it.

 Would you be interested in merging our code bases and I could work on features for
yours.

Original comment by Cmputr...@gmail.com on 18 Sep 2007 at 12:35

GoogleCodeExporter commented 9 years ago
Its not really my code base - I am just helping the iPhoneBrowser developer. I
actually like your look and feel a little better, and C# is more my preference, 
but I
think I will work on my own app next. Well, after added iPhone PNG support to
iPhoneBrowser.

I plan to implement binary plist in C# and you are right, it is not well 
documented
on the Net. If you know Perl you can look at my plist converter in Perl at
http://scw.us - even if not, you can use it to validate yours. You can also use
Erica's utilities on the iPhone with Terminal. Right now, mine does not 
implement
short floating point numbers so it does not produce identical binaries to the 
OS X
plist converter and it doesn't implement all types yet, as I haven't acquired 
sample
plists for all types of data.

Original comment by NetMage....@gmail.com on 18 Sep 2007 at 9:21

GoogleCodeExporter commented 9 years ago
Fascinating. I am using your Perl plist utility as my guide - but I don't write 
Perl, so it's slow. I *did* add a fix to your perl code when it crashed on one 
of 
the plists I was decoding, but it wasn't rocket science. Look at 
http://code.google.com/p/plistutil for my effort so far (not very far yet)... 
Feel 
free to grab and go since it follows the flow of the perl one somewhat closely.

I added a few things to iPhoneList today and cleaned up the code. I need to 
create a 
virtual box to test the missing dll problem as it works on all my systems by 
grabbing the dll from Common Files. Do you not have Apple Mobile Device 
installed in 
your common files?

Hey. iPhoneList is GPL3 (except for Manzana), so you can take and make it 
better/faster, etc - as long as you keep it free and open source. *IF* I get 
time, I 
will write a Manzana replacement from geohot's version of iPhoneList that he 
gave me.

Ace

Original comment by Cmputr...@gmail.com on 18 Sep 2007 at 11:05

GoogleCodeExporter commented 9 years ago
Can you send me the plist that didn't work?

Original comment by NetMage....@gmail.com on 1 Oct 2007 at 11:05