Re: Debug works, Release not - Mailing list pgadmin-hackers

From Magnus Hagander
Subject Re: Debug works, Release not
Date
Msg-id AANLkTi=VDD-fPVg39Vvfj0twV6esN0RVSN9moLSG=r_F@mail.gmail.com
Whole thread Raw
In response to Re: Debug works, Release not  (Jasmin Dizdarevic <jasmin.dizdarevic@gmail.com>)
Responses Re: Debug works, Release not
List pgadmin-hackers
Not sure if I've seen it with pgadmin, but could it be that the debug
build initializes memory to zero whereas the release build may leave
it at random, which means it could be a simple
string-with-no-terminating-NULL thing?

//Magnus

On Wed, Jan 5, 2011 at 12:23, Jasmin Dizdarevic
<jasmin.dizdarevic@gmail.com> wrote:
> Yes, I have. Maybe the problem is VS 2010, however it's very strange.
>
> 2011/1/5 Dave Page <dpage@pgadmin.org>
>>
>> On Wed, Jan 5, 2011 at 11:09 AM, Jasmin Dizdarevic
>> <jasmin.dizdarevic@gmail.com> wrote:
>> > Hi,
>> > have you ever had the problem, that a Debug build works on windows and
>> > the
>> > Release does not?
>> > The problem is an access violation during appending items to a combobox.
>> > I tried to disable optimization, without success.
>> > It's difficult to provide a patch now, because the changes are not
>> > small.
>> > Here is the problem line. I've also tried to remove
>> > "if(connection->pgAgentMinimumVersion(4))".
>> > I've included the upper section (pga_jobclass) to demonstrate the
>> > similarity
>> > of the code - this works well!
>> > I've added the cbEmailNotType-Combobox to the xrc file and also a
>> > pointer to
>> > it. Have I forgotten something important, that is required for
>> > a successful release?
>>
>> I don't see any obvious issues, but have you tried a complete clean
>> and rebuild? That can solve a host of weird problems...
>>
>>
>> --
>> Dave Page
>> Blog: http://pgsnake.blogspot.com
>> Twitter: @pgsnake
>>
>> EnterpriseDB UK: http://www.enterprisedb.com
>> The Enterprise PostgreSQL Company
>
>



--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

pgadmin-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: pgAdmin III commit: Pull keywords dynamically from PostgreSQL headers
Next
From: Dave Page
Date:
Subject: pgAdmin III commit: Update line endings.