Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 11 total
Thread AV error, file save and load on EdbMgr Ansi Version
Fri, Jul 20 2012 4:33 AMPermanent Link

Yavuz Ozdemir

GEMAS A.S.

Hi,

I use ElevateDB Ansi Version 2.8.0.3.

I did some small changes oni edbmgr Ansi version and re-compiled it.  After re-compiling, AV error occurs continuously during the file saving and loading operations. This error raised on SaveToFile and LoadFromFile procedures of TEDBString component.

Could you help me how to resolve this problem?

Yavuz
Fri, Jul 20 2012 10:56 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Yavuz


The simplest suggestion is to go back to the stock version Smiley

You'll need to let us know what you've changed (preferably posting code)

Roy Lambert [Team Elevate]
Fri, Jul 20 2012 12:13 PMPermanent Link

Yavuz Ozdemir

GEMAS A.S.

<<Roy Lambert wrote:

Yavuz


The simplest suggestion is to go back to the stock version Smiley

You'll need to let us know what you've changed (preferably posting code)

Roy Lambert [Team Elevate]
>>
Roy,

I changed only 3 units. I attached these units and changed lines marked as "//yavuz".

Thanks

Yavuz



Attachments: changed_source.rar
Sat, Jul 21 2012 3:48 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Yavuz


Glancing through the units I can see nothing obvious, however, although the amount of code is small you're trying to do something pretty fundamental.

TEDBStrings isn't in the code that's supplied in source form, and I don't have the source code version so, as with yourself, I can't trace things into there.

Your code seems to do doing two things:

1. trying to allow easy entry of the LocalEncryptionPassword
2. provide a dropdown to ease entry of a logon password

I'm guessing at what's happening. You seem to be trying to inject your desired values directly into the process. Rather than do that I would update the .ini file that EDBManager uses and let it do its own thing.

Roy Lambert [Team Elevate]
Sat, Jul 21 2012 6:12 AMPermanent Link

Yavuz Ozdemir

GEMAS A.S.

<<Roy Lambert wrote:

Yavuz


Glancing through the units I can see nothing obvious, however, although the amount of code is small you're trying to do something pretty fundamental.

TEDBStrings isn't in the code that's supplied in source form, and I don't have the source code version so, as with yourself, I can't trace things into there.

Your code seems to do doing two things:

1. trying to allow easy entry of the LocalEncryptionPassword
2. provide a dropdown to ease entry of a logon password

I'm guessing at what's happening. You seem to be trying to inject your desired values directly into the process. Rather than do that I would update the .ini file that EDBManager uses and let it do its own thing.

Roy Lambert [Team Elevate]
>
Roy,

I am using Delphi XE2. Are there conditional directives that must be specified specifically for the compilation of utilcomps Ansi version?

Yavuz
Sat, Jul 21 2012 1:48 PMPermanent Link

Raul

Team Elevate Team Elevate

I know one needs to define {$DEFINE EDB_UNICODE}  - otherwise you're
Ansi. Make sure you don't have the EDB_UNICODE defined somewhere (either
by you or edb unit).

Raul

On 7/21/2012 6:12 AM, Yavuz Ozdemir wrote:
>
> I am using Delphi XE2. Are there conditional directives that must be specified specifically for the compilation of utilcomps Ansi version?
Sun, Jul 22 2012 3:32 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Yavuz


Check when sessiondlg is created and destroyed. You've introduced a new component and are trying to reference it and I don't know if its actually been created at the point you're using it. I doubt it, and that's what's causing an AV.

The dialog you've altered is called when a session is created or its details edited. Normal opening of a session uses the information in the .ini file which is why I suggested putting your information in there.

Roy Lambert [Team Elevate]
Sun, Jul 22 2012 5:02 PMPermanent Link

Yavuz Ozdemir

GEMAS A.S.

Roy Lambert wrote:

Yavuz


Check when sessiondlg is created and destroyed. You've introduced a new component and are trying to reference it and I don't know if its actually been created at the point you're using it. I doubt it, and that's what's causing an AV.

The dialog you've altered is called when a session is created or its details edited. Normal opening of a session uses the information in the .ini file which is why I suggested putting your information in there.

Roy Lambert [Team Elevate]

Roy,
No chance to use UNICODE version. Because we are producing a reference database and our users have pdate databases at least two times a week. Ansi database size is 800 MB. If the database generates the UNICODE, it's size exceeds 1.5 GB. I can not afford to update a database of this size. For this reason, I had to use the ANSI version. I checked whether EDB_UNICODE definition in your source code that you specify is ANSI. I have not met EDB_UNICODE definition in edbMgr's sources. I am going to testing sessiondlg.  I'll share with you all the results have reached.

Thanks
Yavuz
Mon, Jul 23 2012 12:55 PMPermanent Link

Yavuz Ozdemir

GEMAS A.S.

Roy,

If I choose the type of file as Unicode SQL, I record the file successfully. But LoadStringsFromFile procedure still raises an AV error.

Thanks
Yavuz
Tue, Jul 24 2012 3:15 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Yavuz


>If I choose the type of file as Unicode SQL, I record the file successfully.

Sorry but that makes no sense to me.

>But LoadStringsFromFile procedure still raises an AV error.

Did you understand my previous post? An AV is generally raised when an attempt is made to access an object that has either not been instantiated or has been freed. This is almost certainly your new TEdit. If you put a break on the line(s) where this is called does it have a value or is it nill?

Roy Lambert [Team Elevate]
Page 1 of 2Next Page »
Jump to Page:  1 2
Image