Hi i created a custom CStatusBar with an extra indicator, but when i add the indicator to the indicators array, at runtime i got and error :Failed to create empty document and my program closes.

How can i prevent this error?

I'm using MFC with VS .NET 2005