# showMessageBoxAsync broken on windows8

**URL:** https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507
**Category:** General JUCE discussion
**Created:** [November 7, 2012, 2:18pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507 "2012-11-07T14:18:33Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![bdejong](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/bdejong/32/288_2.png) [@bdejong](https://forum.juce.com/u/bdejong)
#### Post date: [November 7, 2012, 2:18pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/1 "2012-11-07T14:18:33Z")

</div>

Hello all,

showMessageBoxAsync seems to be broken on win8:

win7:

 ![](http://i.imgur.com/XxDTq.png)

win8:

 ![](http://i.imgur.com/1EJxU.png)

- bram

---

<div class="post-metadata">

### Author: ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)
#### Post date: [November 7, 2012, 2:49pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/2 "2012-11-07T14:49:33Z")

</div>

Works fine for me on Windows 8 :?

[attachment=0]Mystery.png[/attachment]

---

<div class="post-metadata">

### Author: ![bdejong](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/bdejong/32/288_2.png) [@bdejong](https://forum.juce.com/u/bdejong)
#### Post date: [November 7, 2012, 4:02pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/3 "2012-11-07T16:02:13Z")

</div>

Ah… I guess we’ll have to try with the dev tip…

- bram

---

<div class="post-metadata">

### Author: ![bdejong](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/bdejong/32/288_2.png) [@bdejong](https://forum.juce.com/u/bdejong)
#### Post date: [November 7, 2012, 4:04pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/4 "2012-11-07T16:04:15Z")

</div>

Ah, um, if you wouldn;t mind could you try with version f862392da8daacfdc54595e83d39cfb9349c9efd ?

- bram

---

<div class="post-metadata">

### Author: ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)
#### Post date: [November 7, 2012, 4:10pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/5 "2012-11-07T16:10:33Z")

</div>

Sure!

…I’m getting the same result as I had before - still working fine! Did you change stuff in an AlertWindow’s LookAndFeel that could’ve messed with it?

And just checking; I reverse engineered your AlertWindow gitup, so does this resemble what you have to set the window up?

```auto
juce::AlertWindow::showMessageBoxAsync (juce::AlertWindow::InfoIcon, "Using \\n", "Line1\nLine2\nLine3\n", "ok");
```

---

<div class="post-metadata">

### Author: ![bdejong](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/bdejong/32/288_2.png) [@bdejong](https://forum.juce.com/u/bdejong)
#### Post date: [November 7, 2012, 4:22pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/6 "2012-11-07T16:22:21Z")

</div>

Yup:

> [@](#):
>
> ```
> AlertWindow::showMessageBoxAsync(AlertWindow::InfoIcon, "Using \\n", "Line1\nLine2\nLine3");
> AlertWindow::showMessageBoxAsync(AlertWindow::InfoIcon, "Using \\r\\n", "Line1\r\nLine2\r\nLine3");
> 
> ```

Would you mind trying my build?

[https://dropbox.samplesumo.com/public/NewlineMessageBoxTest.exe](https://dropbox.samplesumo.com/public/NewlineMessageBoxTest.exe)

As a final test?

- bram

---

<div class="post-metadata">

### Author: ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)
#### Post date: [November 7, 2012, 4:26pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/7 "2012-11-07T16:26:06Z")

</div>

Done:

[attachment=0]Borked.png[/attachment]

If you’re using VS; try a clean/rebuild, if you haven’t already… Can you share the code for that exe?

---

<div class="post-metadata">

### Author: ![otristan](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@otristan](https://forum.juce.com/u/otristan)
#### Post date: [November 7, 2012, 4:41pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/8 "2012-11-07T16:41:41Z")

</div>

I suspect that one is using Direct2D and the other not , no ?

---

<div class="post-metadata">

### Author: ![bdejong](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/bdejong/32/288_2.png) [@bdejong](https://forum.juce.com/u/bdejong)
#### Post date: [November 7, 2012, 4:43pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/9 "2012-11-07T16:43:26Z")

</div>

Hmmm, very weird!

The app does nothing: what you see is the only thing it does.  
I could do a clean build, but I don’t think that will change anything.  
The only thing I can think about is that you are probably running your app built on win8 and the one I’m giving you was built on win7…  
Could that be it?!

- bram

---

<div class="post-metadata">

### Author: ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)
#### Post date: [November 7, 2012, 4:53pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/10 "2012-11-07T16:53:13Z")

</div>

Had to mess with the modules path, and upgrade the project to a VS2012 one - but works fine for me!

I don’t see anything related to Direct2D being enabled in there - so that can’t be your issue…

[quote]The only thing I can think about is that you are probably running your app built on win8 and the one I’m giving you was built on win7…  
Could that be it?![/quote]

That must be it - I’ve no way to test it right now though… 😑

---

<div class="post-metadata">

### Author: ![bdejong](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/bdejong/32/288_2.png) [@bdejong](https://forum.juce.com/u/bdejong)
#### Post date: [November 7, 2012, 5:02pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/11 "2012-11-07T17:02:52Z")

</div>

Ohdear…  
So this means that if you statically link to the 2010 runtime, you might get into trouble running your app in win8.  
Anyone else already experience this?

- bram

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)
#### Post date: [November 7, 2012, 6:28pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/12 "2012-11-07T18:28:59Z")

</div>

[quote=“bdejong”]Ohdear…  
So this means that if you statically link to the 2010 runtime, you might get into trouble running your app in win8.  
Anyone else already experience this?

- bram[/quote]

I very much doubt that - Windows is always good at backwards compatibility.

---

<div class="post-metadata">

### Author: ![bdejong](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/bdejong/32/288_2.png) [@bdejong](https://forum.juce.com/u/bdejong)
#### Post date: [November 7, 2012, 9:12pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/13 "2012-11-07T21:12:25Z")

</div>

Any other ideas, Jules?

Bram

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)
#### Post date: [November 7, 2012, 9:15pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/14 "2012-11-07T21:15:55Z")

</div>

I fixed something like this recently… Are you sure you built with the latest version?

---

<div class="post-metadata">

### Author: ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)
#### Post date: [November 8, 2012, 12:28am UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/15 "2012-11-08T00:28:57Z")

</div>

(In case this information is useful - I tried your project on Win7 64-bit with VS2010 - and it works fine)

---

<div class="post-metadata">

### Author: ![bdejong](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/bdejong/32/288_2.png) [@bdejong](https://forum.juce.com/u/bdejong)
#### Post date: [November 8, 2012, 7:29am UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/16 "2012-11-08T07:29:36Z")

</div>

But… did you try running the binary built in win 7 on win8? Because that is what we are doing…

Bram

---

<div class="post-metadata">

### Author: ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)
#### Post date: [November 8, 2012, 2:01pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/17 "2012-11-08T14:01:23Z")

</div>

Ah no I haven’t - doh! I’ll try it when I get the chance

---

<div class="post-metadata">

### Author: ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)
#### Post date: [November 17, 2012, 5:03pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/18 "2012-11-17T17:03:14Z")

</div>

Just ran Win7 debug/release builds on Win8 - and I didn’t see the issue… (built with VS2010)  
Likewise, created debug/release builds on Win8, ran fine on Win7… (also built with VS2010)

But, what really got me this time was that I built and ran the Introjucer on Windows 8, went to modify your project, and this happened:  
[attachment=0]Just built and ran - Win8 VS2010.png[/attachment]

Very peculiar mystery here…

---

<div class="post-metadata">

### Author: ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)
#### Post date: [November 17, 2012, 5:10pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/19 "2012-11-17T17:10:39Z")

</div>

Updating JUCE and rebuilding the Introjucer seems to have made the issue disappear…

---

<div class="post-metadata">

### Author: ![TheVinn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/thevinn/32/806_2.png) [@TheVinn](https://forum.juce.com/u/TheVinn)
#### Post date: [November 17, 2012, 8:43pm UTC](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507/20 "2012-11-17T20:43:24Z")

</div>

Why is the text so fuzzy in your screenshot?

…runs…

[Next page](https://forum.juce.com/t/showmessageboxasync-broken-on-windows8/9507.md?page=2)
