buggnokii - Bugs: bug #23807, 0.6.26 Win32 version is linked...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #23807: 0.6.26 Win32 version is linked poorly, causing crashes

Submitted by:  Peter Rumsey <parufsf>
Submitted on:  Thu 10 Jul 2008 02:50:31 AM UTC  
 
Category: win32Severity: 3 - Normal
Item Group: crashStatus: Fixed
Privacy: PublicAssigned to: Jari Turkia <cfturkja>
Open/Closed: Closed

Thu 10 Jul 2008 09:45:46 AM UTC, comment #1:

Your changes are valid. I'll post them into CVS.

Jari Turkia <cfturkja>
Project MemberIn charge of this item.
Thu 10 Jul 2008 02:50:31 AM UTC, original submission:

The problem is that the program (gnokii.exe) and its library (libgnokii.dll) both contain malloc routines, so they use different heaps. When you use file functions (e.g. getfilelist or getfile), the library 'phone' routines allocate file structures, which the program then tries to free.

The fix is to link both parts to use the shared runtime library (msvcrt.dll). In MSVC6, you do that by compiling with /MD instead of /MT. I've attached the .dsp files I used to cure it.

Peter Rumsey <parufsf>

 

Attached Files
file #16087:  gnokiirc added by parufsf (7KiB - text/plain)
file #16089:  libgnokii.dsp added by parufsf (9KiB - text/plain)
file #16088:  gnokii.dsp added by parufsf (5KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by cfturkja (Posted a comment)
  • -unavailable- added by pkot (Updated the item)
  • -unavailable- added by parufsf (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 22 Aug 2008 07:57:27 AM UTCpkotOpen/ClosedOpen=>Closed
    Mon 28 Jul 2008 12:07:33 PM UTCcfturkjaStatusNone=>Fixed
    Thu 10 Jul 2008 08:36:52 AM UTCpkotAssigned toNone=>cfturkja
    Thu 10 Jul 2008 02:50:32 AM UTCparufsfAttached File-=>Added gnokiirc, #16087
      Attached File-=>Added gnokii.dsp, #16088
      Attached File-=>Added libgnokii.dsp, #16089

    Back to the top


    Powered by Savane 3.1-cleanup1