G
Guest
Using a class with static members in a multi-thread executable results in
'System.NullReferenceException' exception.
This happen only if the class is not initialized (calling any static member)
before
trheads start.
The exception is not throw if:
- If I invoke a static member in main before threads start.
- The class is included in the application project and I don't use an
external library.
Following there is a sample of a solution that have the problem.
All happen with: .Net Framework 1.1.4322, Windows 2000 SP4, Visual Studio
..Net 2003 7.1.3088.
Any help would be appreciated.
Thanks
'System.NullReferenceException' exception.
This happen only if the class is not initialized (calling any static member)
before
trheads start.
The exception is not throw if:
- If I invoke a static member in main before threads start.
- The class is included in the application project and I don't use an
external library.
Following there is a sample of a solution that have the problem.
All happen with: .Net Framework 1.1.4322, Windows 2000 SP4, Visual Studio
..Net 2003 7.1.3088.
Any help would be appreciated.
Thanks