Re: [lazarus] TBitmap.LoadFromStream Fails in Lazarus but works fine in Delphi...
try sss.Seek(0, soFromBeginning); //<--- Result.LoadFromStream( sss ); On Jan 27, 2008 8:45 PM, Dominique Louis <[EMAIL PROTECTED]> wrote: > Hi all, > I'm using the following function to retrieve a Bitmap from a memory > stream. > > function MyStream.ReadBitmap : TBitmap; > // Reads a bitmap from the stream > var > sss : TMemoryStream; > begin > Result := nil; > if not ReadBoolean then > Exit; > Result := TBitmap.Create; > sss := ReadStreamC; > try > Result.LoadFromStream( sss ); > except > Result.Free; > Result := nil; > end; > sss.Free; > end; > > ReadStreamC simply creates a TMemoryStream populates itself from an > internal stream and returns the results. From what I can tell the > TMemoryStream is fine, but the Result.LoadFromStream() call always > throws an exception. Strangely, while running exactly the same code with > exactly the same data file using Delphi, works fine. I am also using > Delphi compatibility mode with Lazarus ( if that makes any difference ). > > Is anyone aware of this problem? Any Suggestions? > > > Thanks, > > > Dominique. > > _ > To unsubscribe: mail [EMAIL PROTECTED] with >"unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives > -- Zaher Dirkey
Re: [lazarus] New synedit patch
How we can test it?, i use compile from SVN i will use Arabic language in my units (strings). Is we can use it also for WinCE? On Jan 27, 2008 6:20 PM, Felipe Monteiro de Carvalho < [EMAIL PROTECTED]> wrote: > Ok, so we are now reduced to zero known regressions introduced by > unicode win32 Lazarus. > > Just thougth I could use this opportunity to encourage people to test it > =) > > thanks, > -- > Felipe Monteiro de Carvalho > > _ > To unsubscribe: mail [EMAIL PROTECTED] with >"unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives > -- Zaher Dirkey
Re: [lazarus] Why do Delphi users hate Lazarus so much?
I Delphi programmer too (10 years) , and i like FPC/Lazarus too match, than Delphi. This day (before i see this comments), my co worker ask me if some day we see some people try to make fight Lazarus, i have no answer for him, and i hope no. (OK bad english :P ) On Jan 27, 2008 3:22 PM, John Stoneham <[EMAIL PROTECTED]> wrote: > On Jan 27, 2008 7:05 AM, <[EMAIL PROTECTED]> wrote: > > > > BTW: > > the cardinal mul/div overflow bug still exists in Delphi 2007 ;-) > > > > Wow, that's weird! They fixed it in the 7.1 update, but that update > broke the integer optimization, which in my opinion was just as > serious a bug. I guess they re-broke the overflow bug in a later > "fix"! Whew, I'm glad I got out of that terrible loop. > > _ > To unsubscribe: mail [EMAIL PROTECTED] with >"unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives > -- Zaher Dirkey
Re: [lazarus] Announcement: Poll about required windows version for Lazarus
For my bad English. For developers you need to make Lazarus IDE run only in win2k or above You not need to make a vote, go ahead :). For End Users you need to make output Lazarus projects run in win2k or above. That need from us to stop points, but about me, i agree. _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Announcement: Poll about required windows version for Lazarus
"What is the oldest Windows version you run Lazarus on" This Ask for to customers or to developers (We)?. BTW, I still have customers using Win98SE and that make me test my project in Win98 before release it, but in fact i like to force them to use WinXP, for that i voted WinXP. On Nov 1, 2007 9:47 PM, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > On 01/11/2007, Gus Wirth <[EMAIL PROTECTED]> wrote: > > > > You have to be logged in first before it will work. > > > > What the hell is the parental consent and 13 age restriction for > It makes me feel like I'm entering a porn site or something! > > > > Regards, > - Graeme - > > > ___ > fpGUI - a cross-platform Free Pascal GUI toolkit > http://opensoft.homeip.net/fpgui/ > > > _ > To unsubscribe: mail [EMAIL PROTECTED] with > "unsubscribe" as the Subject >archives at http://www.lazarus.freepascal.org/mailarchives > -- Zaher Dirkey _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] UTF-8 input handling
>I wonder how could Right-To-Left work on the code editor. You mean Right-To-Left in SynEdit, Especially in strings and comments. I think mixing LTR and RTL in same text will be complex to read it.
Re: [lazarus] UTF-8 input handling
>> Right-To-Left handling and selection of Right-To-Left text? > >Someone was working on this for the native widgets. I don't know the >current state. For now Right-To-Left work fine with Win32 http://wiki.lazarus.freepascal.org/index.php/BidiMode I am very busy this days to work on GTK, but when i have a time i will continue.
Re: [lazarus] Trouble ending Application that uses Firebird DBs
Did you use an events of Firebird, may be there is a thread still waiting. On 6/11/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: On Sun, 10 Jun 2007, ArĂ Ricardo Ody wrote: > I develop a program in what from an initial form a execute 2 other programs. > Both other access a Firebird database. I put a TIBConnection.connected:= true > in the Form.Crate of the executed programs and everything's ok 'till I try to > close the application. When I click the "Exit" button the Application doesn't > ends... Considering that there are no databases in the first form/program, > what do I do to force the application ends when I execute the Self.Closein > the first Form? > > If I run the same application using a local database(a database existing in > the HD of the machime where the application is running) everything's OK. The > trouble is occurring with databases contained in other computer(a server of a > win XP network). > > The final users must ends te application via task manager or manual closing. > They are claiming a lot. Do you explicitly disconnect the database too before closing the form ? Michael. -- zaher dirkey
Re: [lazarus] New features since Delphi 7...
Can anyone briefly explains me what a class helper is I think class helper it some functions/procedures take the first params as the class (that you want to make helper for it), but the fist param (the class) passed as Class of this method. function (MyClass:TMyClass; param2:TParam2); but you can use it as MyClass.function (param2:TParam2); Nothing else, so it make as class helper as mentioned in the help of Delphi, it is not multi inheritance.
Re: [lazarus] wince GetControlText
I posted as bug in mantis, and worked fine for me, but not sure if that the correct way to resovle the problem, i think when we use SysAllocStringLen we must use SysFreeString. Check it http://www.freepascal.org/mantis/view.php?id=8676 --- Henry Vermaak <[EMAIL PROTECTED]> wrote: > when i try to use the "Text" property in the edit > control as the text > in a MessageDlg function, it gives me a "Bus error > or misaligned data > access" error. > > i tracked this down to be the FreeMem(tmpWideStr) > call in the > GetControlText function. it makes sense to me to > use the > SysFreeString function when you've used > SysAllocStringLen - and when i > changed this to SysFreeString(tmpWideStr), it > started working. can > any wince geniuses confirm this? > > this is on line 1135 in winceproc.pp. > > i'd just like to quote an hilariously vague line out > of msdn: > > "Passing invalid (and under some circumstances NULL) > pointers to this > function causes an unexpected termination of the > application." > > this is on the SysAllocStringLen page - a function > which is supposed > to be able to handle a null param... > > henry > > _ > To unsubscribe: mail > [EMAIL PROTECTED] with > "unsubscribe" as the Subject >archives at > http://www.lazarus.freepascal.org/mailarchives > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] TSpeedButton response to multiple clicks
I meant that: Put SpeedButton and Button on the form, and a list box - var c:Integer = 0; procedure TForm1.Button1Click(Sender: TObject); begin ListBox1.Items.Add(IntToStr(c)); Inc(c); end; procedure TForm1.SpeedButton1Click(Sender: TObject); begin ListBox1.Items.Add(IntToStr(c)); Inc(c); end; - Now make dblclick on Button1 and then on make it to speed button, i must have the same action. --- Vincent Snijders <[EMAIL PROTECTED]> wrote: > zaher dirkey schreef: > > DblClick must translated to Click to make Every > mouse > > down fire click event. > > after that if DblClick fired, no problem with me > :) > > I don't think that is possible. > > Vincent > > _ > To unsubscribe: mail > [EMAIL PROTECTED] with > "unsubscribe" as the Subject >archives at > http://www.lazarus.freepascal.org/mailarchives > Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. http://farechase.yahoo.com/promo-generic-14795097 _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] TSpeedButton response to multiple clicks
DblClick must translated to Click to make Every mouse down fire click event. after that if DblClick fired, no problem with me :) --- Vincent Snijders <[EMAIL PROTECTED]> wrote: > See > http://www.freepascal.org/mantis/view.php?id=8625 > > Is it useful to allow DblClick events for > TSpeedButton or shouldn't TSpeedButton > then have csMultiClicks removed by default? > > Vincent > > _ > To unsubscribe: mail > [EMAIL PROTECTED] with > "unsubscribe" as the Subject >archives at > http://www.lazarus.freepascal.org/mailarchives > No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives