About  "FIXUP_VTABLE"  in CS4

In Cs4 sdk,there is a  VTableSupport.hpp :
// If your plugin has a C++ object attached to it's globals, and if
// the class of that object has virtual functions, those functions
// will not work after the plugin is unloaded and then reloaded.
// The following macro (FIXUP_VTABLE) can be used to provide a means
// of restoring the virtual function table of a globally-persistent
// C++ object by calling FixupVTable() prior to the use of any of
// the object's virtual functions after a reload.
// Here is how you might use the macro:
I found  there is some bug about (FIXUP_VTABLE).  now ,let 't see samplecode  "ADMNonModalDialog":
ADMNonModalDialog::ADMNonModalDialog(SPPluginRef pluginRef) : BaseADMDialog()
fAccessRef = NULL;
int options = 0;
this->pluginRef=pluginRef;
// Create the Non-modal dialog. This does not necessarily show the dialog on
// the screen. If the dialog was hidden at last shutdown, it will not be shown
// until sADMDialog->Show() is called.
// Note: the init proc - Init, will be called immediately following Create()
this->Create(pluginRef, "ADMNonModalDialog", kADMNonModalDialogID, kADMTabbedFloatingDialogStyle, options);
ASErr ADMNonModalDialogPlugin::GoMenuItem(AIMenuMessage* message)
ASErr error = kNoErr;
if (message->menuItem == this->fShowADMNonModalDialog) {
  if (this->fADMNonModalDialog) {
   ASBoolean visible = this->fADMNonModalDialog->IsVisible();
   this->fADMNonModalDialog->Show(!visible);
else if (message->menuItem == this->fAboutPluginMenu) {
  // Pop this plug-in's about box.
  SDKAboutPluginsHelper aboutPluginsHelper;
  aboutPluginsHelper.PopAboutBox(message, "About ADMNonModalDialog", kSDKDefAboutSDKCompanyPluginsAlertString);
if (error)
  goto error;
error:
return error;
I change these two function to:
ADMNonModalDialog::ADMNonModalDialog(SPPluginRef pluginRef) : BaseADMDialog()
fAccessRef = NULL;
int options = 0;
this->pluginRef=pluginRef;
// Create the Non-modal dialog. This does not necessarily show the dialog on
// the screen. If the dialog was hidden at last shutdown, it will not be shown
// until sADMDialog->Show() is called.
// Note: the init proc - Init, will be called immediately following Create()
//this->Create(pluginRef, "ADMNonModalDialog", kADMNonModalDialogID, kADMTabbedFloatingDialogStyle, options);
// I  want to create a modal dialog
ASErr ADMNonModalDialogPlugin::GoMenuItem(AIMenuMessage* message)
ASErr error = kNoErr;
if (message->menuItem == this->fShowADMNonModalDialog) {
  if (this->fADMNonModalDialog) {
  //ASBoolean visible = this->fADMNonModalDialog->IsVisible();
   //this->fADMNonModalDialog->Show(!visible);
  this->fADMNonModalDialog->Modal(this->fPluginRef,"ADMModalDialog",kADMNonModalDialogID);
//when debug to here,program dead.
//int BaseADMDialog::Modal(SPPluginRef pluginRef, char* name, int dialogID, ADMDialogStyle style, int options)
//is a virtual function
else if (message->menuItem == this->fAboutPluginMenu) {
  // Pop this plug-in's about box.
  SDKAboutPluginsHelper aboutPluginsHelper;
  aboutPluginsHelper.PopAboutBox(message, "About ADMNonModalDialog", kSDKDefAboutSDKCompanyPluginsAlertString);
if (error)
  goto error;
error:
return error;

Honestly? We found that the whole broken Vtable thing wasn't worth bothering with. The Vtable only gets broken when the plugin is unloaded & reloaded, so our solution was just to make sure we never get unloaded.
If you want to prevent your plugin from ever unloading, juust acquire it with SPAccess::AcquirePlugin(). Use SPAccess::ReleasePlugin() when you're done and ready to quit. That will mean your Vtable never gets fubar'd. If you're worried about memory footprint, don't. Frankly, I think the load/unload nature of plugins is kind of outdated; a throwback to when memory was far scarcer. I doubt the typical plugin is more than a drop in the sea of a user's RAM, so they won't notice at all if you don't unload & reload constantly.

Similar Messages

  • No reaction from Adobe when I contacted them months ago about pirated Dreamweaver CS4.

    Hi,
    I contacted Adobe in October 2011 about Dreamweaver CS4 which I had bought at Ebay.co.uk. I had entered license number without problems originally but after my computer crashed and I had to re do the license number on a new computer it wouldn't take. I phoned the Adobe people and was told the license number was pirated and that I should report it. I did that in October 2011 and have had no reaction, it is now Feb 2012!
    I am really upset about this, any advice?

    Hi there--if you had reported the issue to our anti-piracy group, then you can follow up by contacting them at [email protected] If you've not already done so, I also recommend that you file a complaint and pursue reimbursement through eBay. Unfortunately, Adobe can't provide much assistance for purchases made through unauthorized resellers, especially online auction sites like eBay.

  • About compatibility with CS4

    I ask, may i use Kuler on Photoshop CS4, is it compatible with CS4, thanks.

    You mean that Kuler is there by default ?
    I have nothing in my window/extension menu, except "connections"...
    I haven't found any .mxp or .mxi extension for photoshop CS4 on adobe's website, neither on Adobe Exchange.
    I'd really like to have Kuler integrated in Photoshop although Adobe says that we can get the extension for CS4, they don't provide any link to it on the dedicated Kuler's page, except the AIR widget, and a link to the kuler online tool.  (...or am i blind ?)
    Does any of you guys have some tip to get it appear, or a direct link to download the .mxp or .mxi extension ?
    PS : i'm on a french version of photoshop cs4 64bits, version 11.0.1.,

  • Photoshop Video. Tutorials about photoshop cs3/cs4 video

    Hello Everyone,
    Are there any good sites with video's or other tutorials about video&photoshop?
    I've found these so far:
    http://www.photoshopforvideo.com/
    http://cspodcast.libsyn.com/index.php?post_id=198980

    the best site is probably lynda.com

  • Questions about changing a CS4 windows licence to a Mac licence

    Good morning,
    One of my friends is going to buy a imac computer and his old computer was a PC under windows seven with adobe CS4 web premium student edition.
    is it possible to change the CS4 windows licence to a mac licence?
    We have to pay something to do this?
    I saw on a lot of forum tha twe have to desactivate the licence on the old PC before installing a licence on the new computer, Can you explain how to do his.
    Thanks

    Hi TFD, It may be helpful to browse or start a thread in this forum:
    http://forums.adobe.com/community/creativesuites/creativesuites_windows?view=discussions&s tart=0
    Thanks,
    eidnolb

  • A question about Media Encoder CS4

    Hi all,
    With H.264 format and ipod video large preset selected, what does the profile and level under the basic video settings catagory mean?

    Thanks....
    Man, the link's explanation is more complex than the question! 

  • Confused about layers DW CS4

    In several books on "how to build web pages" they mention layers as a good thing to use...
    But... it seems that the option is grayed out and not available... From Insert > Layout Objects I have options to insert DIV Tags; AP Div: then some Spry stuff.. but the "Layout Table" and "Layout Cell" are grayed out and thus unavailable.
    Am I doing something wrong, some other menu choice, or is there a preference setting I have messed up.
    And,  speaking of messed up when I first started playing with DW the properties dialog box would pop up automatically... now I have to select it and then it stays up even if the page is closed

    In addition to Vinay's good advice, I'll post a link for  you to read so that you do not use AP Divs unless you understand they way to use them.
    "Layers' have now been renamed to AP Divs.  So if any of your books refer to layers, they will be referring to  AP Divs.
    Why  do APDivs move?
    http://forums.adobe.com/message/2181263#2181263
    You may find other posts of interest (usually often asked questions)  in the Dreamweaver FAQ  as you progress with your learning of Dreamweaver.
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates | Tutorials | SEO Articles
    http://www.DreamweaverResources.com
    Web Design & Development
    http://www.perrelink.com.au
    http://twitter.com/nadiap

  • Blog post about Crop Marks Filter in Illustrator CS4

    Sometime back a blog article was posted on Adobe Illustrator Blogs at http://blogs.adobe.com/infiniteresolution/ which talks about how Illustrator CS4 users who wanted/asked for the pre-Illustrator CS4 Crop Marks Filter could get it back.
    Mac users can go directly to this link to get the Crop Marks Filter plug-in : http://www.adobe.com/support/downloads/detail.jsp?ftpID=4617
    Win users can go directly to this link to get the Crop Marks Filter plug-in :
    http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=4618&fileID=4288

    It does do that but it should not show the bleeds as a part of the document it should the document size should be differentiated from the bleed and crop and printer marks area.
    You should be able to turn them off for better review purpose with clients and the thing that Acrobat does automatically is to fit the document to the paper size. This I think is a mistake as the ordinary user might not understand what is happening.
    If you want to print the document at a 100% it has to go on a paper and to a print that prints documents of a larger size.
    It should be clearer as we have reach a point in time where there are most users who have no old world experience with the printing press and plate making so many will not get this true once pointed out it will appear to them as a no brainer.
    Also with Acrobat becoming a presentation and conferencing tool for client review in a very live way the ability to turn the bleeds and marks off with a click is very necessary especially hen you have a dead head executive on the other end saying that they never approved that design feature. You can then just click hide the crops or pint out that those marks are outside the documents page size and won't print.
    No matter how much sense it makes to you and me because we are very experience with this there will always be people outside our profession that will have a hard time with this and many within our profession as well.
    I was aware this was finally included in CS4 but I think it can be improved admittedly you can send a copy of the pdf without bleeds and marks. But you have no control over what they might do on the other side and i have seen some pretty stupid things.
    In th old days you know the account exec would come into the art dept and pick the comp off of your drawing table and take his finger and run it over the art and ask is this wet?
    I guess I don't have to tell anyone the answer to that question.

  • Upgrade to CS4 or CS5?

    The agency I work for is currently using CS3, but there is a debate about upgrading to CS4 or to CS5. Because we work with a lot of print pieces one of the concerns is that most printers are probably still on CS4 so we shouldn't be more advanced than they are to avoid needing to save everything down. The other side of the argument is that the time saving features added in CS5 would be worth taking the time to save files down.
    I think it would help provide some insight to hear from someone who is familiar with CS4 and CS5, and any issues they have experienced.
    So any advice?
    Thanks for your reply!

    CS4 is not for sale. Only CS 5 is available. Moreover, any printshop worth using should have both. If they have not purchased CS 5, then they probably aren't worth working with. Upgrades like this are part of their cost of doing business. They can purchase it now or a year from now. If they purchase a year from now they will have one less year of work from the software at exactly the same price.

  • Installing cs4 in Windows 7 Virtual machine

    Hello,
    I am having problems with AE and windows 7 64 bit. Ram preview isn't working / crashing AE I wanted to do a clean install on XP using Windows virtual machine. I unserstand it sounds stupid, but all I am trying to do is sync some effects to a soundtrack and it's not working and I am on a deadline.
    Has anyone installed these, I get an install error, Contact Adobe Support. not very helpful.
    Thanks,.
    David

    Yeah, but what do you expect? It's weekend and your scenario really isn't something people do every day. I would even guess that it's more of an issue with memory and keyboard handling settings in the VM rather than a flaw in the Adobe program. In any case, what's so bad about just installing CS4 in W7 itself or installing the CS5 trial? If you're on a deadline, it's certainly better to have some way of working and worrying about any side effects later than waiting for a solution to fall out of the sky...
    Mylenium

  • Upgrading Windows CS4 to Mac CS5 - What is needed?

    I  called Adobe Cust Supt, and I wanted to verify on here what I think I heard from the customer service.  It was overseas and I could barely understand a word she was saying.
    Our company is moving from Windows network to Mac.  We purchased CS4 a few years ago, and it turns out it works quite well for the needs our office has.  I would like to simply move the license over to a MAC CS4, but that would mean purchasing another CS4 Design Premium suite, costing too much for our small firm.  If I understood Customer Service, I could simply purchase a Mac CS5 upgrade, and transfer license that way.
    If I deactivate the CS4 license on the Windows machine, verify that it was indeed deactivated, then install the CS5 upgrade on the Mac, will it recognize the CS4 Windows and allow it to go through?  Would I need to get on the phone with Customer Service and have them pull strings to get it going?
    Is there anything else that I am missing?

    I called again and spoke to a different agent.  He informed me that license do indeed cross over, but not for CS4.  Apparetly, only current versions cross over. In order for my license of CS4 cross over, I have to spend $649 to upgrade to CS5.5, then call back and have them walk me though the transfer procedure, as there are codes that I will need from them in order to install.
    I also asked if I could purchase any Mac upgrade from the local store, or if I needed to purchase from the website.  He said the local store purchase will be fine.  He never mentioned anything about destroying my CS4 media either.  Maybe they will spring that on me when I call next?

  • Can't download the latest Camera Raw 5.3 in CS4

    I've just upgraded from Elements 5.0 to CS4 (with RAW 5.0) and can only open Nikon D80 RAW files.  I can't open Lumix LX3 RAW files.  I tried to download the latest Camera RAW 5.3 by clicking in the Help Menu and choosing "Update".  I get the message "the Installation process as encountered a problem".  I then have a choice of choosing; "run update again", "stop installation", or "cancel".  I'm also getting this error message with "Adobe Extension Manager CS4 2.1" update.  I can't work out if there's a problem with the "Extension Manager", the RAW update, or the "Installation Manager" - if that's what it's called.
    I looked in C:\program files\common files\Adobe\Plug-Ins\CS4\File Formats, and can see "Camera RAW.8bi.  I'm sure that is the same name as the RAW Plug-In in Elements 5.  Am I having this problem because Elements 5 is on the same Drive, or is there a problem with CS4?  To add insult to inury, I have encountered a few other problems, listed below:-
    I can't delete a layer by dragging it to the Bin.  I have to right click on it and choose "delete layer"
    When I make a Levels Adjustment Layer, there is no "OK" button to click on, to make the dialogue box disappear.  That wouldn't matter too much, but I don't know how to "cancel" an amendment as I used to do, by pressing Alt key and clicking on "Cancel" to restore the changes.  How do I do this in CS4?
    I'd prefer all the Windows to Float, so I can move them around.  I can't see how to make this a preference.  I have to click on the "Window" menu and make the changes for every document. Otherwise, the picture fills the whole screen.
    I made some brushes in Elements 5 - mainly a signature brush.  How would Iike to copy this brush to CS4?  I can see a "Brush Presets" folder, but not individual brushes in either package.
    Lastly, I'd like to load CS4 on my laptop, if that's allowed.  I don't often connect to the Internet with my laptop for security reasons.  Do I need to be connected to load it onto the Laptop. 
    I bought CS4 from Adobe, and was hoping there wouldn't be a problem with the software.  Upgrading from Elements 5 has been a cultural shock, so I hope I don't sound too "dim".  I've watched lots of DVDs about CS3 and CS4, but still feel quite swamped with the new features.
    I'd be grateful for any help with the above questions.

    Pamela E Jones wrote:
     I'd prefer all the Windows to Float, so I can move them around.  I can't see how to make this a preference.  I have to click on the "Window" menu and make the changes for every document. Otherwise, the picture fills the whole screen.
    I made some brushes in Elements 5 - mainly a signature brush.  How would Iike to copy this brush to CS4?  I can see a "Brush Presets" folder, but not individual brushes in either package.
    Lastly, I'd like to load CS4 on my laptop, if that's allowed.  I don't often connect to the Internet with my laptop for security reasons.  Do I need to be connected to load it onto the Laptop.
    For floating windows, uncheck the relevant boxes in Edit > Preferences > Interface. And play with the Arrange documents drop-down in the top bar. Also see http://kb2.adobe.com/cps/405/kb405298.html
    Save the brushes as an .abr file in a known location on your hard drive and load them from there into CS4.
    You are allowed an extra installation on a laptop but you'll need an internet connection to activate it (or use the telphone number provided).
    And finally ...
    BUY THIS BOOK!  http://www.amazon.co.uk/Adobe-Photoshop-CS4-Up-Speed/dp/0321580052/ref=sr_1_3?ie=UTF8&s=bo oks&qid=1245693149&sr=8-3

  • Can Indesign CS4 open CS2 files?

    Simple question, can Indesign CS4 opeen old CS2 files? Someone told me it can't. If that's true it's a disaster.

    [Jongware] - I know that, I'm not asking about CS2 opening CS4 but vice versa.
    BobLevine - that's what I'm asking. I hope you're right, thanks!
    It's incredibly important to me because time has come to upgrade my computer, and I have CS2 on it, but I've heard Windows 7 doesn't want to run CS2 at all, so if I upgrade to Win7 I'll have to upgrade the CS as well. And then someone told me ID4 can't open ID2 files anymore. That would render all my older work unusable.

  • Photoshop cs4 patch

    I have photoshop cs4 extend for vista 64. When I update photoshop every thing was good. Then I open photoshop cs4, not only did the update made my photoshop cs4 extend to photoshop cs4 it is also telling me there is something wrong with my graphic card. I updated photoshop before but the last patch did something to my app. Has anyone have this problem? I was thinking about reinstalling photoshop cs4 extend but with all my add-on's and preferences it is going to be a hassle to reinstall the programs. Is there any way to fix this just in case it happens again when I try to update.

    The general advice in this forum is
    not to use automatic updates because the Updater (like the Installers) is broken.
    If you can't be bothered to get the updates from the Adobe site and install them yourself, at least look at
    what is being suggested for update and understand what it is updating!
    A lot of updates are for features a lot of people don't use.
    When in doubt, find out what it is first.

  • Do I need to worry about Adobe Application Support Folder?

    Running Photoshop CS5 standard on Mac (snow leopard) on top of Photoshop CS4.  Ran into some problems with Adobe Bridge and thinking there might be a conflict between the two Photoshop versions I uninstalled Photoshop CS4 (apparently not smart).  Now on launching Photoshop CS5 a window appears with warning something like: missing files in Adobe Application Support Folder, use Photoshop installer to re-install PhotoshopCS5. Tech support tells me to deactivate Photoshop CS5 then uninstall it and reinstall from the Web where I downloaded it in the first place.
    Questions:  Should I care about this at all?  How about reinstalling Photoshop CS4 (I have the disc)?  Can I just download the Adobe Application Support Folder?
    I undated CS5 just now but it didn't fix the "problem".

    luchiangelo wrote:
    …Tech support tells me to deactivate Photoshop CS5 then uninstall it and reinstall from the Web where I downloaded it in the first place.
    That is very sound advice.  Do it.
    luchiangelo wrote:
    …Questions:  Should I care about this at all? …
    Yes, unless you don't want to run any Adobe applications any more.
    luchiangelo wrote:
    … How about reinstalling Photoshop CS4 (I have the disc)?
    It probably won't even let you install CS4 over CS5.  You would have to uninstall CS5 first.
    luchiangelo wrote:
    … Can I just download the Adobe Application Support Folder?…
    Nope; there's nowhere you could "download it" from.
    Just follow the advice of Tech Support.
    Wo Tai Lao Le
    我太老了

Maybe you are looking for

  • Itunes match, itunes radio and playlists...HELP!

    okay. so i turn on itunes match on my phone so I dont listen to ads while listening to itunes radio. when i do that and connect it to my computer via usb, i cannot sync any smart playlists to my phone. they are all icloud available but i cant find th

  • Warning on safari

    Hi. Whenever I am using safari and clicking to a new page it opens up with a warning saying system may have found unauthorized access on your computer and malicious viruses Rootkit.spyware and Trojan.malware. also I get a warning from http://shopatkm

  • Asymmetric Keys

    Can someone please validate that I'm on the right track with this line of thought? I need to generate a private/public key pair using a user's PIN number. So, I think I need to do the following. 1) Generate a private/public key pair from a PIN number

  • New Adjustment Layer - Levels/histogram GLITCH ?

    I use the non-destructive Adjustment Layers (Layers/New Adjustment Layer) all the time.  Today when I was playing around on the CS6 beta for Photoshop, I discovered that after selecting the New Adjustment Layer for Levels that I couldn't see the hist

  • Can't activate 7342 Motion Controller

    Hello, My disk drive crashed and I had to reinstall WindowsXP, service packs, security updates, etc.  Afterward, I reinstalled the NI-Motion software that came with my PCI-7342 (3-4 years old).  However, MAX didn't recognize that the 7342 was install