QString in CLR
-
Hi everybody,
I have a small problem when I try to compile a library that uses managed code (C++/CLI), the issue is that __fastcall is not compatible with the clr and so my code throws an exception when I try to use it.When I compile I get a warning:
c:\qt\4.8.5\include\qtcore../../src/corelib/tools/qchar.h(339): warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
(I have the same issue even using Qt 5)
And when I try running it anyway I get an error message:
Windows has triggered a breakpoint in TestCLI.exe.
This may be due to a corruption of the heap, which indicates a bug in TestCLI.exe or any of the DLLs it has loaded.Can somebody suggest a solution/workaround?
Thanks in advance