locked
Freesid() crashes on Windows 7 RRS feed

  • Question

  • Freesid() crashes frequently on Windows 7. What is the workaround for this?

    Some one had faced this problem in VB (http://stackoverflow.com/questions/1913087/checktokenmembership-in-vb6-crashing-on-freesid-on-windows-7-and-windows-2008) but it is not clear how to fix it in MFC

    Thanks

    • Moved by Jesse Jiang Thursday, April 5, 2012 5:49 AM (From:Visual C++ MFC and ATL)
    Tuesday, April 3, 2012 6:22 AM

Answers

  • This problem was happening because of following user groups

    SQLServer2005SQLBrowserUser$Machine2
    SQLServerMSSQLServerADHelperUser$Machine2

    SQLServerMSSQLUser$Machine2$SQLEXPRESS
    SQLServerSQLAgentUser$Machine2$SQLEXPRESS

    We got rid of these user groups and code started to work fine.

    Thanks

    • Marked as answer by vaibhavsri Wednesday, April 11, 2012 10:23 AM
    Thursday, April 5, 2012 10:36 AM

All replies

  • Hello,

    I think your issue should be raised in the Application Security for Windows Desktop. I believe they will know more information of this issue than us, and I will move this one to that forum.

    Thanks for your understanding,

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Thursday, April 5, 2012 5:49 AM
  • Thanks for moving it to appropriate forum. As of now we have just commented out the affected portions in our code
    Thursday, April 5, 2012 7:36 AM
  • This problem was happening because of following user groups

    SQLServer2005SQLBrowserUser$Machine2
    SQLServerMSSQLServerADHelperUser$Machine2

    SQLServerMSSQLUser$Machine2$SQLEXPRESS
    SQLServerSQLAgentUser$Machine2$SQLEXPRESS

    We got rid of these user groups and code started to work fine.

    Thanks

    • Marked as answer by vaibhavsri Wednesday, April 11, 2012 10:23 AM
    Thursday, April 5, 2012 10:36 AM