Search the web
Sign In
New User? Sign Up
GExpertsDiscuss · Discuss development of the GExperts tools for Delphi and C++Builder
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Formatter in BDS2006: "Unable to get contents"   Message List  
Reply | Forward Message #3783 of 3849 |
Re: [GExpertsDiscuss] Formatter in BDS2006: "Unable to get contents"

Hi,

On Mon, Jun 15, 2009 at 10:16 AM, Ulrich Gerhardt<ulrich.gerhardt@...> wrote:

> I just tried twm's latest experimental GExperts branch. Unfortunately the
formatter doesn't
> work for me (using BDS2006) anymore. I stops by raising the exception "Unable
to get
> contents ...". AFAICT this is because IEditView.Block.Size equals 0 in
> GxOtaGetActiveEditorText and the function therefore returns False. If I
rewrite it to return
> True in this case, the formatter seems to work as expected. Does anybody else
have
> this effect? Is my "workaround" dangerous?

I haven't got BDS2006 but only Turbo Delphi pro. The formatter works
for me there, I just checked again to be sure.

I do find your workaround odd, though, because the formatter calls
that function with UseSelection=false, so it should alway execute the
else part of

if UseSelection and Assigned(IEditView) and
Assigned(IEditView.Block) and (IEditView.Block.Size > 0) then
begin
Lines.Text := GxOtaGetCurrentSelection(False);
Result := True;
end
else
begin
GxOtaLoadSourceEditorToUnicodeStrings(ISourceEditor, Lines);
Result := True;
end;

which returns true anyway.

twm



Sun Jun 28, 2009 4:01 pm

dummzeuch
Offline Offline
Send Email Send Email

Forward
Message #3783 of 3849 |
Expand Messages Author Sort by Date

Hi all, I just tried twm's latest experimental GExperts branch. Unfortunately the formatter doesn't work for me (using BDS2006) anymore. I stops by raising the...
Ulrich Gerhardt
uligerhardt
Offline Send Email
Jun 15, 2009
8:17 am

Hi, ... I haven't got BDS2006 but only Turbo Delphi pro. The formatter works for me there, I just checked again to be sure. I do find your workaround odd,...
Thomas Mueller
dummzeuch
Offline Send Email
Jun 28, 2009
4:03 pm

Hi twm! A delayed update: I didn't get around to test much. In BDS 2006 I'm using a self-compiled version of 1.32 + Formatter which works fine. Now I finally...
Ulrich Gerhardt
uligerhardt
Offline Send Email
Aug 17, 2009
3:45 pm

Me once more: I downloaded the formatter tarball from SVN (http://gexperts.svn.sourceforge.net/viewvc/gexperts/branches/formatter.tar.gz?view=tar) and compiled...
Ulrich Gerhardt
uligerhardt
Offline Send Email
Aug 18, 2009
12:59 pm

Found the reason for my problem: I'm stupid. :-) Of course one has to use the current SVN version of the main GExperts code, *not* the daily zip. *headdesk* ...
Ulrich Gerhardt
uligerhardt
Offline Send Email
Aug 19, 2009
9:20 am

Hi, ... And there I was, planning to look into it on the first day of my holiday (tomorrow). So what am I going to do now? ;-) twm...
Thomas Mueller
dummzeuch
Offline Send Email
Aug 19, 2009
6:04 pm

... Oh, you could have a look at my stand alone formatter. :-) http://tech.groups.yahoo.com/group/GExpertsDiscuss/message/3805 ...
Ulrich Gerhardt
uligerhardt
Offline Send Email
Aug 19, 2009
6:27 pm

... One more thing: The formatter works if I compile the GExperts DLL myself. The binary download doesn't work for me - see my posting...
Ulrich Gerhardt
uligerhardt
Offline Send Email
Aug 19, 2009
6:41 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help