Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QString in CLR
Forum Update on Tuesday, May 27th 2025

QString in CLR

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 843 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VRonin
    wrote on 5 Mar 2014, 15:57 last edited by
    #1

    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

    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
    ~Napoleon Bonaparte

    On a crusade to banish setIndexWidget() from the holy land of Qt

    1 Reply Last reply
    0

    1/1

    5 Mar 2014, 15:57

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved