Use free function with __stdcall calling convention

Discussion in 'C++' started by bg-greece, Nov 16, 2005.

  1. bg-greece

    bg-greece Guest

    I am porting a Visual C++ 6.0/SP5 DLL from __cdecl to __stdcall convention.
    There seems to be a problem with the free function, the DLL produces a
    segmentation fault when calling free(). I noticed that the free function
    from stdlib.h is prototyped as __cdecl. Is there a problem to overcome this
    and cast it to __stdcall?

    Byron
     
    bg-greece, Nov 16, 2005
    #1
    1. Advertisements

  2. bg-greece

    mlimber Guest

    This post is off-topic here since it is Microsoft-specific. See the FAQ
    for some suggestions on the right place to post:

    http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9

    Cheers! --M
     
    mlimber, Nov 16, 2005
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.