StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Unsafe Native Methods ErrorExpand / Collapse
Author
Message
Posted 08/06/2008 9:33:48 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 10:49:34 AM
Posts: 478, Visits: 1,969
An odd error showed up today...a user had left an SF application open overnight.  When he came in this morning, this error was waiting to greet him:

Message: External component has thrown an exception.

Source: System.Windows.Forms

Inner Exception:

Stack Trace: at System.Windows.Forms.UnsafeNativeMethods.ThemingScopeDeactivateActCtx(Int32 dwFlags, IntPtr lpCookie)
at System.Windows.Forms.UnsafeNativeMethods.ThemingScope.Deactivate(IntPtr userCookie)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at MicroFour.StrataFrame.Application.StrataFrameApplication.RunApplication()

This seems like one of those generic, could-be-caused-by-a-million-things type error; but, I thought I would throw it out there to see if anyone else has run into this.

Thanks,
Bill

Post #18351
Posted 08/06/2008 10:01:22 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 6:26:12 PM
Posts: 4,901, Visits: 4,887
This looks to be machine and OS related (environmental).  The themes that it is referring to are the Windows Themes (not SF) and you are right that this could come from a million different things.  So there is no way that I could give you any type of straight answer here...sorry
Post #18352
Posted 08/06/2008 10:06:19 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 6:26:12 PM
Posts: 4,901, Visits: 4,887
I had another thought that could be causing a problem.  If you are using Role-Based Security and are allowing session timeouts, there is some API logic there that closes, hides, and talks to open windows using some API logic.  One thing you might do is either turn off the session timeout for this user and see if the problem persists or turn it off altogether...but that might be a place to look.  Ultimately this would still be an OS issue, but you would at least know the catalyst and would be able to work from there.
Post #18353
Posted 08/06/2008 10:18:26 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 10:49:34 AM
Posts: 478, Visits: 1,969
Thanks, Trent!  I suspected a non-SF related cause, too.  No doubt about that.  We are using RBS, but not setting a session timeout (*ponders* - maybe I should, though).  I'll dig further if I can get more error data collected from other users.  This was one user on one workstation...so, not too much to worry about.  He is back working after a restart of the app.  I am just trying to appease my endless curiosity about the cause of weird errors.

Take care!
Bill

Post #18354
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 6:55pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.062. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.