G
Guest
I have a .NET 1.1 Windows Forms app that is called through the following chain:
- Start the program, which is a VB6 app
- VB6 app calls CreateObject on .NET dll
- VB6 calls .ShowDialog on the instantied object
- OnLoad is overridden in the Windows Forms app - it spawns a thread that
does work
- The thread encounters some kind of error and raises an event back to the
Windows Form to show an error.
-------- At this point the program appears to freeze because somewhere
between raising the event and actually showing the error message, something
goes wrong (because the program just sits there!)
So the next thing I tried was right clicking my vb6 executable and selecting
'Run as Administrator'. Now a message box actually shows when the error
occurs!
So, I shut down the program and then restart it (this time I just double
click the executable). It shows the error message again! I reboot, and
double click the executable - still shows the message!
So my question is: What is Vista really doing when I pick 'Run as
Administrator'? It must be doing something permanent to make the .NET stuff
work correctly from that point on, even if you're not running as admin. Any
ideas?
- Start the program, which is a VB6 app
- VB6 app calls CreateObject on .NET dll
- VB6 calls .ShowDialog on the instantied object
- OnLoad is overridden in the Windows Forms app - it spawns a thread that
does work
- The thread encounters some kind of error and raises an event back to the
Windows Form to show an error.
-------- At this point the program appears to freeze because somewhere
between raising the event and actually showing the error message, something
goes wrong (because the program just sits there!)
So the next thing I tried was right clicking my vb6 executable and selecting
'Run as Administrator'. Now a message box actually shows when the error
occurs!
So, I shut down the program and then restart it (this time I just double
click the executable). It shows the error message again! I reboot, and
double click the executable - still shows the message!
So my question is: What is Vista really doing when I pick 'Run as
Administrator'? It must be doing something permanent to make the .NET stuff
work correctly from that point on, even if you're not running as admin. Any
ideas?