---
title: "MessageLoopNotPresentedException Class"
canonical: https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_MessageLoopNotPresentedException.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# MessageLoopNotPresentedException Class
 
The exception which arises when synchronization mode uses message loop, but no message loop is available.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
<SerializableAttribute> _
Public Class MessageLoopNotPresentedException _Inherits Exception
```
 
```csharp
[SerializableAttribute]
public class MessageLoopNotPresentedException : Exception
```
 
## Remarks
 This exception can be thrown only in single situation: when you try to use asynchronous mode which uses message loop of the application main thread ([SynchronizationMode](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_SyncHandler_SynchronizationMode.htm.md) property equals to [AsyncViaMessageLoop](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_SynchronizationMode.htm.md)), but message loop is not available (for example, you are writing a console application).
 
## Inheritance Hierarchy
  
- [System.Object](http://msdn2.microsoft.com/en-us/e5kfa45b)
    - [System.Exception](http://msdn2.microsoft.com/en-us/c18k6c59)
        - [System.ApplicationException](http://msdn2.microsoft.com/en-us/ww58ded5)
            - [Aurigma.GraphicsMill.Exception](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Exception.htm.md)
                - Aurigma.GraphicsMill.MessageLoopNotPresentedException
   
## See Also

### Reference

- [MessageLoopNotPresentedException Members](https://www.graphicsmill.com/docs/gm5/AllMembers_T_Aurigma_GraphicsMill_MessageLoopNotPresentedException.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
