Skip to main content
July 18, 2010
Question

error 22 window does not have a constructor

  • July 18, 2010
  • 7 replies
  • 79057 views

I am using a MacBook Pro with SL - when trying to use photomerge in CS5 I keep getting this window - Error 22: Window does not have a constructor -Line 388 - var w = new Window(res);  This occurs with RAW or jpeg images.

On  the NAPP forums - I was informed this is a programming error and to contact Adobe.  Anybody know a workaround besides going back to CS4 on this?

Kenny

    This topic has been closed for replies.

    7 replies

    New Participant
    October 7, 2024

    cara mengatasi photoshop error ss

    New Participant
    November 14, 2010

    Dear All,

    I have been bothered by this same Photoshop error 22 when trying to use the Photomerge feature or any other of the Automate features in CS5.

    My computer is a Windows 7 32bit machine but this should definitely apply to Windows 64bit machines and possibly the same logic may apply to Mac but I do not know.

    I didnt find a permanent solution but I did find a temporary fix which will at least allow you to use the function for one opening of the program however if you close and reopen photoshop the problem returns.

    Temporary Fix Instructions:

    1.  Locate the file "Adobe Photoshop CS5 Prefs.psp" on your computer and delete it or move it elsewhere.  (I assume by doing this you may lose ass of your photoshop preferences but it will allow you to use photomerge and HDR so you choose)

    2. On Windows this file can be found in the User folder under C:\**USER NAME**\AppData\Roaming\Adobe\Adobe Photoshop CS5\Adobe Photoshop CS5 Settings\ (Replace **USER NAME** with the Windows 7 account user name)

    3. After deleting this file or temporarily moving it out of that folder you can then open Photoshop CS5 and use the Photomerge feature as much as you'd like.

    4. As soon as you close Photoshop CS5 the program automatically makes a new Adobe Photoshop CS5 Prefs.psp file so when you try to reopen the program it will not work again.


    I hope this may be helpful to some people and I hope that Adobe can fix this issue, I have not and dont plan on submitting this as a bug report to Adobe, being that I do not personally own the program (still in 30 day trial) but anyone who would like to, please feel free to do so.

    UPDATE: HOW TO MAKE THIS FIX PERMANENT

    If you would like to transform this fix into a permanent one you can do the following:

    1. Open folder: C:\**USER NAME**\AppData\Roaming\Adobe\Adobe Photoshop CS5\Adobe Photoshop CS5 Settings\

    2. Delete the "Adobe Photoshop CS5 Prefs.psp" file

    3. Open Photoshop CS5.  DO NOT CLOSE IT.

    4. Switch back to your window showing that folder from step 1 and now you should see a new "Adobe Photoshop CS5 Prefs.psp" but it will have a file size of 0kb because Adobe doesnt write to the file until you close the program.

    5. Right-click on the file Adobe Photoshop CS5 Prefs.psp and click "Properties" and mark it as "Read Only".

    6.  Now you should be able to open and close Photoshop CS5 as many times as  you'd wish and the Photomerge feature will still work, but you also  will probably not be saving any "Photoshop Preferences" if you want to  customize the program.  I dont know which preferences are saved in that  file but at the very least you can have all of the default Photoshop CS5  setting and Photomerge features working whenever you want without a  hassle each time.

    Message was edited by: HSelznick

    New Participant
    November 14, 2010

    Can you submit this buggy user config file. I have working copy. We can compare them and meaby find the real final solution.

    New Participant
    November 14, 2010

    How would u like me to submit this file? You mean here on the forums? Where do I upload it? Also I assume that you want just my buggy Adobe Photoshop CS5 Prefs.psp file, correct?

    I will be more than happy to send you what you would need to fix this problem just give me some more details on what you want me to do exactly, thanks for the response.

    New Participant
    November 3, 2010

    Where do I find the prefs file in WindowsXPsp3?


    New Participant
    August 2, 2010

    Becouse this error is not releted to opeationing system itself. It shows in windows and in mac. I thint, that this error is related to Windows/MAC profile files. Meaby in mac is te same. Wen I ceate second account in Windows (7-64) and run PS in this new accout, photomerge works fine.

    Try, this. Meake new user account i mac. Meaby this will help as pin-point the error.

    New Participant
    July 31, 2010

    It is not releted to operating system. I'm working on Windows 7 64bit and I have this error to.

    New Participant
    July 31, 2010

    Thank you for posting this and answering it as well.  I have the same error with CS5 when invoking photomerge from bridge.  I just used this now so it is only now that I saw the problem.  (I normally use photomerge in Photoshop, not in Bridge).  So it seems to me that this is a bug in CS5 or Snow Leopard and not because we moved a script or tinkered with a scripts.  Thanks again.

    Chris Cox
    Braniac
    July 31, 2010

    I still have no idea how that error could occur without damaged scripts.

    But it is possible that some OS bug causes the script engine to generate a bogus error when trying to construct the window, and that reinstalling the OS cleans up whatever was causing the OS bug.

    New Participant
    July 31, 2010

    What's interesting is  - now PhotoMerge in Photoshop no longer works. It spits the same error msg as Kenny stated earlier.  I will try to re-install the OS and see if that works for me as well.

    Thanks.

    c.pfaffenbichler
    Braniac
    July 18, 2010

    This is (despite much appreciated and numerous contributions by some Adobe employees) basically a user-to-user-Forum.

    So if you want to file a bug-report:

    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

    Anyway, I can’t reproduce the error but this seems to concern »LatteUI.jsx« – maybe someone over at the Photoshop Scripting Forum has an idea how to fix it.

    Have you edited or moved some of the concerned Scripts in any way, possibly copied them from an old version or something?

    July 18, 2010

    I did submit a bug report.  No, I did not change any scripts.  I have CS4 and have no problems with photomerge.  This has only happened with CS5, and that is the only problem I have encountered with CS5 to date.

    The experts at the NAPP forum suggest this is a programming error!

    Kenny

    c.pfaffenbichler
    Braniac
    July 19, 2010

    Well, I can’t reproduce the problem.

    How exactly do you invoke the Script (from Bridge or Photoshop) and at which step does the error occur?

    And once again I recommend asking at the Photoshop Scripting Forum or at http://www.ps-scripts.com/