[Glade-devel] win32 patch for glade-2.5.1 cvs
todd
taf2@lehigh.edu
Mon, 12 Apr 2004 07:33:08 -0400
This is a multi-part message in MIME format.
--------------030805070202070001000508
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Just got it to work!! :) It did have to do with how i was compiling
things. After recompiling everything with -MD it worke. Originally,
i wasn't using a intl.dll that was compiled with -MD flag. I think my
patch is still useful because definately, it fixes some invalid code;
but my original issue of not being able to save was definately because I
was mixing up compiling statically to msvcrt and dynamically.
thanks for the tips :) If you're interested my code and build
environment is on my website here http://severna.homeip.net/gtk-win32.html
-todd
todd wrote:
> Sorry, about so many postings. but I was just running through the code
> with the debugger and found that the glade is crashing
> in the msvcrt in a function named _lock_file in _file.c.
> the line is:
>
> EnterCriticalSection( &(((_FILEX*)pf)->lock) );
>
> the problem is pf->lock is NULL so that's why i'm crashing. of course
> pf was created via the fopen back in save.c in the glade source
> code in the function glade_util_fopen called from
> save_project_file_internal.
>
> of course I tried a simple test program where I open a file with fopen
> and fprintf a few characters to it and it works fine. So, i'm convinced
> something in memory is not right.
>
> -todd
>
> todd wrote:
>
>> Thanks, for the pointer but still not luck. I recompiled iconv and
>> libintl using MSVCRT.dll and i still have the same issue when
>> clicking on the save button in glade. Also, I noticed that the
>> source in 2.0.1 had the same static memory free issue as 2.5.1 for
>> _WIN32,
>> I'm getting a demo license for insure++ maybe that will find the
>> problem its similar to valgrind.
>>
>> -todd
>>
>>> Link with MSVCRT.dll (release, multithreaded), passing file pointer
>>> across
>>> different M$VC runtime will crash.
>>> I believe that patching 2.5.1 for win32 is more or less the same as
>>> patching
>>> 2.0.1 (though I haven't really tried), may be this's useful:
>>>
>>> http://gladewin32.sf.net
>>>
>>> ----- Original Message ----- From: "todd" <taf2@lehigh.edu>
>>> Cc: <glade-devel@ximian.com>
>>> Sent: Monday, April 12, 2004 09:36
>>> Subject: [Glade-devel] win32 patch for glade-2.5.1 cvs
>>>
>>>
>>>
>>
>>
--------------030805070202070001000508
Content-Type: text/x-vcard; charset=utf8;
name="taf2.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="taf2.vcf"
begin:vcard
fn:Todd Fisher
n:Fisher;Todd
email;internet:taf2@lehigh.edu
x-mozilla-html:FALSE
url:http://severna.homeip.net
version:2.1
end:vcard
--------------030805070202070001000508--