Classes don't behave the same in threads

I'm trying to run a long list (an entire domain's users) in a thread. If I don't run the function as a thread it runs fine. But if I put it in a thread I get an error at run-time.
Code:
private void RunThread()
Domain3 localDomain = GetDomain(); // callback function
users = GetUsersList(); // callback function
object[] fields = new object [datADGrid.Columns.Count];
foreach (User3 user in users) // complains that it fails to match target type
fields [0] = user.Name;
int index = 1;
The problem is in the foreach loop where, apparently, 'user' isn't of the same type as the components of the 'users' collection yet this same code works fine when run under a non-thread function. As a thread and as a stand-alone function the code calls the same callback functions to get the Domain and the Users.
This is the callbackfunction for returning the User list. users is already set to reference domain.Users.
Code:
private Users GetUsersList()
if (this.InvokeRequired)
GetUsers d = new GetUsers(GetUsersList);
this.Invoke(d, new object[] { });
return users;
else
return users;
I might add that I've also tried the User5 class.

my colleague complained about this too until he turned his overprint preview/separations preview on.
in the full suite, color management between the apps is handled by bridge but it is very easy to break by altering color settings in an one app without updating the others. go to bridge and to go the edit menu and select "creative suite color settings". the dialog box which comes up will tell you straight away if the profiles are synchronised or not.
a method of control would be to take a sample pic into photoshop and make sure it has the same color profile applied to it as indesign is using. save it and close, and then open indesign and place the pic into indesign. how does it look now... similar, different? what happens when a pic which uses a different profile is placed into indesign... does it look the same or different? to really test this, take an RGB pic and convert it to CMYK using the SNAP profile, save and close. THEN, take the same RGB pic and convert it to CMYK using one of the FOGRA profiles and save that. place both into indesign and see what happens.

Similar Messages

  • My left shift key on Macbook Pro Retina (15") is behaving like the F11 key (show/hide open windows).  The key behaves the same for the laptop keyboard and for an external Apple keyboard?  This just started in last week after 6 months of use

    My left shift key on Macbook Pro Retina (15") is behaving like the F11 key (show/hide open windows). 
    The left shift key behaves the same on the laptop keyboard and on an external Apple keyboard. 
    This just started in last week after 6 months of use.  The right shift key and other keys on the keyboard all appear to work correctly.
    Suggestions greatly appreciated.

    I have a solution to this issue now after a discussion with Apple Support.  Some where in the last few weeks, there was a change in the key that would do a Show Desktop under the Mission Control settings in the System Preferences.  Even though the key sequence that was shown for the Show Desktop setting did not include the Left SHift key, by changing this first to having no key sequence and applying that and then changing it back to the F11 key, the Left SHift key issue that I was having has cleared up.
    A second issue that was uncovered was that the SSD had some issues (uncovered when I ran Disk Utility using the Repair Disk key).  I had to restart and use the Disk Utility through the Command R sequence to get to the stand alone Disk Utility.  The SSD appears to be running better as a result as well.
    Hope that this is of use to someone else in the future.

  • I updated my phone and my husbands to the 5.0 OS now everytime I enter a new contact he get's it.  We don't want the same ones.  How do I stop it from syncing our phones?

    I updated my phone and my husbands to the 5.0 OS now everytime I enter a new contact he get's it.  We don't want the same ones.  How do I stop it from syncing our phones?

    You linked them both to the same Apple ID and thence to the same iCloud account.  Don't do that.

  • HT204406 Hello,  I have songs that show they are "Waiting" for download from the cloud but they are greyed out.  Some songs in one album are done others in the same album will not download. It is not a time function because i have been working on this for

    Hello,  I have songs that show they are "Waiting" for download from the cloud but they are greyed out.  Some songs in one album are done others in the same album will not download. It is not a time function because i have been working on this for weeks. I have allowed my compter to run for days and the songs are still not accessible.  I have a Match subscription and Match is working.  If I click on the "Genre" link the greyed out songs show that they are ready for download from the cloud but I cannot download them.  I have downloaded over 1500 other songs, so I am trying to understand what is going on here. I would appreciate any help anyone can give me.
    Thanks

    I did think about that and if I have to I will do that, however there are about 50 songs. I have closed and reopened iTunes several times and I am sure that I have the latest version. It fails right away but I can click on the cloud download icon and download the song that it failed on ... therefore it is not that song "or any one song" causing the issue. Any ideas?

  • I need to create a playlist and don't want the same songs in my everyday playlist.

    I'm new to Mac and Need to create a playlist on my itunes like a holiday playlist which I have, but I don't want the same music in my everyday playlist.  How do I do this.  I thought I did my draging the music to that playlist but they are still showing up and playing in my playlist.  thanks for the help

    Yes yes indeed,
    OMG,
    I finally got it off,
    I called IT Support
    and this guy saw where it had doubled the size during the encryption, and showed me how to go in and delete,
    and I was able to finally turn it off,
    although it took 3 hours to do so.
    but worth it.
    so never will I again listen to anyone about that,
    I'm done with the encryption of my machine.
    I wasted a trip going to the Apple Store,
    thank you.

  • How can you set up more than one device on iTunes. I have an iPad, iPod, itouch and iPhone. I don't want the same on all devices.

    How can you set up more than one device on iTunes? I have an iPad, iPod, itouch and iPhone. I don't want the same on all devices. I have all my music/videos on iTunes on my mac book pro. Can you set up separate folders for each device and drop in what ever music/videos from the main iTunes library?

    In itunes it is called syncing and you can choose exactly what content to sync to all devices and it can be different for all of them
    How to sync

  • Is there a way to view earlier messages in a thread without going through each day? Also, can you make a photo album from the same text thread without going back to the beginning?

    Is there a way to view earlier messages in a thread without going through each day? Also, can you make a photo album from the same text thread without going back to the beginning?

    Turn Settings > General > Accessibility > Zoom to ON.

  • My document don't print the same color when I print it from PDF rather than InDesign

    I have a vector image that don't print the same color when I export it to PDF but the colors are the same on the screen.
    How can I be sure to have the same colors as my InDesign original document when I print it as a PDF ?

    I use the default settings for High Quality Print

  • TS1702 I downloaded IOS6 to my ipad2..since then the Pentix Free app has not been behaving the same as before the download

    I downloaded IOS6 to my ipad2...since then the Pentix Free app. has not been been behaving the same
    Is this a problem with the upgraded IOS?

    It's more likely that the App make needs to provide and update for iOS6.

  • HT1399 How can I see that I already have a song on my Ipod and review my full list of songs all together? So I don't reload the same song.

    How can I see that I already have a song on my Ipod and review my full list of songs all together? So I don't reload the same song.

    In iTunes, try changing "album artist" tag to the same name for eack track,
    also make sure that "track number" values are correct and different for each.
    (select all songs of an album > lmb > get info)

  • Want the mouse behave the same way as a tab key

    Hello,
    I am using abap webdynpro. one of my requirements to automatically put the user in insert mode on numeric fields.  That is when the user clicks in a numeric field we want the field to be highlighted.  As soon as the user types something in the field we want the field  to be cleared so that the user overwrites the data.  Basically we want the mouse behave the same way as a tab key.  highlight the field and clear it as soon as you start typing. 
    is this possible?

    As mentioned this is not possible.
    however, I would be wary of trying to overcome a standard functionality "deficiency " like this by implementing an island. If you take this path - all your custom applications will behave differently from the SAP standard ones - which is not really an ideal situation.
    Instead, add your concern to the sticky at the top of this forum - the functionality to "clear" a field (or select all on field on entry which is what is happening with the tab selection) might be added in future releases.
    I think however, that you'll find that the "select all on tab" behaviour is an browser "functionality" rather than anything specifically that SAP has implemented - if you try using a different browser, you may not find the same thing happening (although with the browsers I've checked it does).
    The same thing happens with any HTML forms - just try yourself. e.g.[external site with details on HTML forms and input fields|http://www.w3schools.com/html/html_forms.asp]

  • I don't remember my password and one of the security questions for my account. I also don't have the same email account now as i did when I signed up. Help?

    I don't remember my password and one of the security questions for my account. I also don't have the same email account now as i did when I signed up.
    I want to figure out my old password and/or change the new email to my current one.
    thanks

    You can try getting the password reset via this page : http://iforgot.apple.com
    If you can't then you will need to contact iTunes Support / Apple in your country to get the password and your questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down this page to add a rescue email address to your account for potential future use : http://support.apple.com/kb/HT5312

  • Wait on Notification from Multiple behaves the same with or without History

    I'm running this VI on a cRIO-9066, and both "Wait" functions behave the same. After reading the LV Help, I would expect the "With Notifier History" one to return an array of two elements, not one. Is this a bug?
    (Attachment is LV 2014 SP10
    Solved!
    Go to Solution.
    Attachments:
    Untitled 2.vi ‏11 KB

    Staab_Engineering wrote:
    After reading the LV Help, I would expect the "With Notifier History" one to return an array of two elements, not one.
    Why? Unlike the help for W4MN, the one for W4MNWH is not explicit in saying that it continues as soon as one of the notifiers gets a notification, but it also doesn't say it will wait for all of them. Your example clearly shows that it continues as soon as at least one has a notification.
    I'm too tired at the moment to work through the W4MNWH use cases, so I have no particular expectation for how it should behave.
    Try to take over the world!

  • HT3275 Time Machine on Macbook Pro and iMac both running 10.7.4 don't react the same. Macbook Pro runs back every hour even if asleep, and iMac only when it's awake. Why?

    Time Machine on Macbook Pro and iMac both running 10.7.4 don't  react the same. Macbook Pro runs back every hour even if asleep, and iMac only when it's awake. Why?

    I thought the backup whilst asleep was only used on Mountain Lion.. but perhaps it was also introduced with Lion.. anyway it is only enabled on later firmware.. in latest laptops.
    http://reviews.cnet.com/8301-13727_7-57480490-263/mountain-lions-powernap-featur e-requires-firmware-update/
    A quick google finds all sorts of info.. remember google is your friend.

  • Should ADF tables created for Toplink or Web Services behave the same?

    In JDev 11g TP3, When you drag the collection data control onto a JSF, should the read only tables created from either Toplink objects or Web Service Data Controls look and behave the same? I am not able to get tables created with Web Service Data Controls to work the same as those shown in tutorials or examples.
    Thanks,
    Al

    Not so sure, 11G does seem to generate all of the controls for the response elements, even those that have nested complex types such as the one enclosed. Used the 11G TP3 Web Service Data Control wizard and all of the nested controls showed up. BUT, when dropped onto a JSF, they do not work the same as the tutorials and examples. So, I'm either doing something wrong or the controls are not working properly.
    Should I not use the 11G WSDC and just follow your example in complex return types? Or are there other steps or settings in the 11G WSDC that I need to discover (they're not documented) in order to make ADF tables work with the 11G WSDC? If so, can you help?
    <xsd:element name="PanelData" type="ns1:PanelData"/>
    <xsd:complexType name="PanelData">
    <xsd:sequence>
    <xsd:element name="lotinfo" type="ns1:LotInfoData" minOccurs="1" maxOccurs="1"/>
    <xsd:element name="backglass" type="ns1:LotInfoData" minOccurs="1" maxOccurs="unbounded"/>
    <xsd:element name="frontglass" type="ns1:LotInfoData" minOccurs="1" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>

Maybe you are looking for