Hi,

  When debugging IUP try always using the code from SVN.

  BTW, I think I already fixed that.

Best,
Scuri


2017-08-03 10:22 GMT-03:00 Ranier VF <ranier_...@hotmail.com>:

> Hi,
> Iup-3.22, raise access violation with this code:
>
>     /* Free dlg Handler */
>     IupDestroy(dlg);
>
>         /* Restore DLG_MAIN */
>         dlg = IupGetHandle("DLG_MAIN");
>         if (dlg != NULL) {
>            IupSetAttribute(dlg, "PLACEMENT", "NORMAL");
>            IupShow(dlg); // <-- access violation with IUP-3.22
>         }
>
> With Iup-3.20, run without errors.
>
> Dr.Memory report this:
> Error #18: UNADDRESSABLE ACCESS of freed memory: reading
> 0x0332ce70-0x0332ce71 1 byte(s)
> # 0 iup.dll!IupGetFocus                        +0x2c     (0x1000508c
> <iup.dll+0x508c>)
> # 1 iup.dll!iupCallGetFocusCb                  +0x55     (0x100051a6
> <iup.dll+0x51a6>)
> # 2 iup.dll!iupdrvSendMouse                    +0x51e    (0x100636ef
> <iup.dll+0x636ef>)
> # 3 iup.dll!iupwinBaseMsgProc                  +0x174    (0x10061b65
> <iup.dll+0x61b65>)
> # 4 iup.dll!iupwinBaseMsgProc                  +0x774    (0x10062165
> <iup.dll+0x62165>)
> # 5 iup.dll!iupdrvBaseSetTipVisibleAttrib      +0x217c   (0x1006879d
> <iup.dll+0x6879d>)
> # 6 iup.dll!iupdrvBaseSetTipVisibleAttrib      +0x280a   (0x10068e2b
> <iup.dll+0x68e2b>)
> # 7 USER32.dll!GetDC                           +0x6c     (0x7e368734
> <USER32.dll+0x8734>)
> # 8 USER32.dll!GetDC                           +0x14e    (0x7e368816
> <USER32.dll+0x8816>)
> # 9 USER32.dll!DefWindowProcW                  +0x17f    (0x7e378ea0
> <USER32.dll+0x18ea0>)
> #10 USER32.dll!DefWindowProcW                  +0x1cb    (0x7e378eec
> <USER32.dll+0x18eec>)
> #11 ntdll.dll!KiUserCallbackDispatcher         +0x12     (0x7c90e453
> <ntdll.dll+0xe453>)
> #12 iup.dll!IupCopyClassAttributes             +0x1100   (0x10012771
> <iup.dll+0x12771>)
> #13 iup.dll!IupCopyClassAttributes             +0x1372   (0x100129e3
> <iup.dll+0x129e3>)
> #14 iup.dll!IupShow                            +0x67     (0x1000ced8
> <iup.dll+0xced8>)
> #15 iup_unit_close_cb
>  [c:\usr\src\rcpdv\unit_iup.c:206]
> #16 iup.dll!iupdrvRegisterDragDropAttrib       +0x14e9   (0x10075b8a
> <iup.dll+0x75b8a>)
> #17 iup.dll!iupdrvBaseSetTipVisibleAttrib      +0x217c   (0x1006879d
> <iup.dll+0x6879d>)
> #18 iup.dll!iupdrvBaseSetTipVisibleAttrib      +0x280a   (0x10068e2b
> <iup.dll+0x68e2b>)
> #19 USER32.dll!GetDC                           +0x6c     (0x7e368734
> <USER32.dll+0x8734>)
> Note: @0:00:31.766 in thread 1384
> Note: 0x0332ce70-0x0332ce71 overlaps memory 0x0332ce70-0x0332cebc that was
> freed here:
> Note: # 0 replace_free
> [d:\drmemory_package\common\alloc_replace.c:2706]
> Note: # 1 iup.dll!IupDestroy                         +0x111    (0x10007142
> <iup.dll+0x7142>)
> Note: # 2 iup_unit_close_cb
>  [c:\usr\src\rcpdv\unit_iup.c:200]
> Note: # 3 iup.dll!iupdrvRegisterDragDropAttrib       +0x14e9
>  (0x10075b8a <iup.dll+0x75b8a>)
> Note: # 4 iup.dll!iupdrvBaseSetTipVisibleAttrib      +0x217c
>  (0x1006879d <iup.dll+0x6879d>)
> Note: # 5 iup.dll!iupdrvBaseSetTipVisibleAttrib      +0x280a
>  (0x10068e2b <iup.dll+0x68e2b>)
> Note: instruction: cmp    (%esi) $0x49
>
>
> Unable to recompile Iup-3.22, for debug IupGetFocus function.
>
> Back to use Iup-3.20.
>
> Best regards,
>
> ________________________________________
> De: Antonio Scuri <antonio.sc...@gmail.com>
> Enviado: quarta-feira, 2 de agosto de 2017 17:18
> Para: IUP discussion list.
> Assunto: Re: [Iup-users] Recompile iup-3.22
>
>   The IupControls library depends on the CD library. It seems that it is
> missing from the linker input.
>
> Best,
> Scuri
>
>
> 2017-08-01 22:15 GMT-03:00 Ranier VF <ranier_...@hotmail.com<mailto:
> ranier_...@hotmail.com>>:
> Hi Scuri,
> Trying recompile iup-3.22, to find bug...
>
> You know howto fix:
> iupcontrols.lib(iup_colorbar.obj) : error LNK2001: unresolved external
> symbol _cdCanvasGetSize
>
> Best Regards,
>
> Ranier Vilela
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net<mailto:Iup-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to