Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2002-01

Win32 crash fixed

9 messages · 6 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Keith Bowes

I think I've solved and fixed the crash some of you are getting on Win32. Please update your source and tell me if it worked for you.

As for the windres problem, I don't know what's happening there. My best theory is that the people that are having trouble with it are using an older version of Windows that has DOS compatibility, which is circumventing the update.

Keith

Reply by email

Marco van de Voort
to Luis R. Hilario: Windows '98 / IE 5.5 (and Mozilla :) I is using a clean copy now (before used that of…
Show quoted text 11 lines
Keith Bowes wrote: > > I think I've solved and fixed the crash some of you are getting on Win32. > Please update your source and tell me if it worked for you. > > As for the windres problem, I don't know what's happening there. My best > theory is that the people that are having trouble with it are using an older > version of Windows that has DOS compatibility, which is circumventing the > update. > Windows '98 / IE 5.5 (and Mozilla :)

Win98SE-lite (no IE) + Mozilla.

I'm updating CVS now.

Reply by email

Chris
to Keith Bowes: I think I've solved and fixed the crash some of you are getting on Win32. Please update…

I think the difference is in how windows is installed. If it's installed with ntfs then DOS isn't supported. (I'm hearing this third hand so don't quote me). In any case, we can't rely on it.

Chris

Earlier message 97 lines
----- Original Message ----- From: "Keith Bowes" To: Sent: Thursday, January 31, 2002 5:53 PM Subject: Re: [lazarus] Win32 crash fixed > From: "Luis R. Hilario" > > > > > Windows '98 / IE 5.5 (and Mozilla :) > > > > All editions of Windows 95 and 98 had DOS compatibility (so you could run > your existing DOS and Windows 3.x programs). Windows ME removed it and, > AFAIK, Windows NT (which includes Windows 2000 and XP) never had it. I came > to the assumption that windres failing was related to the Windows version > when Marco revealed he was using Windows 98 and it was failing, but it > worked for me in Windows ME and continued to work when I upgraded to XP. > > > I is using a clean copy now (before used that of Linux). > > After learning to use WinCVS is using it to obtain the sources for > > Windows. > > > > I is compiling to Lazarus of two forms: Manually (l.bat) and using > > make.exe (with a little aid). > > > > Using make.exe > > -------------- > > windres -i lazarus.rc -o lazarus.res > > make > > > > Yes! > > > > > > Using l.bat > > ----------- > > windres -i lazarus.rc -o lazarus.res > > l.bat > > > > Compiling .\lcl\interfaces\win32\winext.pas > > winext.pas(109,13) Error: Illegal type conversion > > winext.pas(150,32) Warning: Local variable LASTP does not seem to be > > initialized > > > > winext.pas(180,26) Error: Illegal type conversion > > winext.pas(182,26) Error: Illegal type conversion > > winext.pas(212) Fatal: There were 3 errors compiling module, stopping > > > > All the errors are resolved putting a "@". > > > > Function StrToPChar(Const Str: String): PChar; > > Begin > > TmpStr := PChar(@Str[1]); > > Result := TmpStr; > > End; > > > > Function StrToPChar(Const Str: String): PChar; // Is the same thing, > > truth? > > Begin > > Result := PChar(@Str[1]); > > End; > > > > And now it compiles. > > > > You need to enable long (ANSI) strings with the -Sh option. This option is > set automatically for you in the Makefile. > > > Of the two forms Lazarus and the examples "function". > > > > -- > > |------------------------------| > > | Luis R. Hilario | > > | http://www.luis-digital.8m.com | > > |------------------------------| > > > -------------------------------------------------------------------------- -- > ---- > > > > ppc386 -S2 > lazarus.pp -Fudebugger -Fudesigner -Fucomponents\synedit -Fucomponents\codet > ools -Fiinclude -Fiinclude/win32 -Fulcl -Filcl/include -Fulcl/interfaces/win > 32 > > > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email

Keith Bowes
to Keith Bowes: I think I've solved and fixed the crash some of you are getting on Win32. Please update…

From: "Luis R. Hilario"

> Windows '98 / IE 5.5 (and Mozilla :)

All editions of Windows 95 and 98 had DOS compatibility (so you could run your existing DOS and Windows 3.x programs). Windows ME removed it and, AFAIK, Windows NT (which includes Windows 2000 and XP) never had it. I came to the assumption that windres failing was related to the Windows version when Marco revealed he was using Windows 98 and it was failing, but it worked for me in Windows ME and continued to work when I upgraded to XP.

Show quoted text 45 lines
I is using a clean copy now (before used that of Linux). After learning to use WinCVS is using it to obtain the sources for Windows. I is compiling to Lazarus of two forms: Manually (l.bat) and using make.exe (with a little aid). Using make.exe -------------- windres -i lazarus.rc -o lazarus.res make Yes! Using l.bat ----------- windres -i lazarus.rc -o lazarus.res l.bat Compiling .\lcl\interfaces\win32\winext.pas winext.pas(109,13) Error: Illegal type conversion winext.pas(150,32) Warning: Local variable LASTP does not seem to be initialized winext.pas(180,26) Error: Illegal type conversion winext.pas(182,26) Error: Illegal type conversion winext.pas(212) Fatal: There were 3 errors compiling module, stopping All the errors are resolved putting a "@". Function StrToPChar(Const Str: String): PChar; Begin TmpStr := PChar(@Str[1]); Result := TmpStr; End; Function StrToPChar(Const Str: String): PChar; // Is the same thing, truth? Begin Result := PChar(@Str[1]); End; And now it compiles.

You need to enable long (ANSI) strings with the -Sh option. This option is set automatically for you in the Makefile.

Show quoted text 7 lines
Of the two forms Lazarus and the examples "function". -- |------------------------------| | Luis R. Hilario | | http://www.luis-digital.8m.com | |------------------------------|

---------------------------------------------------------------------------- ----

ppc386 -S2

lazarus.pp -Fudebugger -Fudesigner -Fucomponents\synedit -Fucomponents\codet ools -Fiinclude -Fiinclude/win32 -Fulcl -Filcl/include -Fulcl/interfaces/win 32

Reply by email

Luis R. Hilario
to Keith Bowes: I think I've solved and fixed the crash some of you are getting on Win32. Please update…
Keith Bowes wrote 9 lines
I think I've solved and fixed the crash some of you are getting on Win32. Please update your source and tell me if it worked for you. As for the windres problem, I don't know what's happening there. My best theory is that the people that are having trouble with it are using an older version of Windows that has DOS compatibility, which is circumventing the update.

Windows '98 / IE 5.5 (and Mozilla :)

I is using a clean copy now (before used that of Linux). After learning to use WinCVS is using it to obtain the sources for Windows.

I is compiling to Lazarus of two forms: Manually (l.bat) and using make.exe (with a little aid).

Using make.exe
--------------
windres -i lazarus.rc -o lazarus.res
make

Yes!

Using l.bat
-----------
windres -i lazarus.rc -o lazarus.res
l.bat

Compiling .\lcl\interfaces\win32\winext.pas
winext.pas(109,13) Error: Illegal type conversion
winext.pas(150,32) Warning: Local variable LASTP does not seem to be
initialized
winext.pas(180,26) Error: Illegal type conversion
winext.pas(182,26) Error: Illegal type conversion
winext.pas(212) Fatal: There were 3 errors compiling module, stopping

All the errors are resolved putting a "@".

Function StrToPChar(Const Str: String): PChar;
Begin
  TmpStr := PChar(@Str[1]);
  Result := TmpStr;
End;
Function StrToPChar(Const Str: String): PChar; // Is the same thing,
truth?
Begin
  Result := PChar(@Str[1]);
End;

And now it compiles.

Of the two forms Lazarus and the examples "function".

|------------------------------| | Luis R. Hilario | | http://www.luis-digital.8m.com | |------------------------------| ppc386 -S2 lazarus.pp -Fudebugger -Fudesigner -Fucomponents\synedit -Fucomponents\codetools -Fiinclude -Fiinclude/win32 -Fulcl -Filcl/include -Fulcl/interfaces/win32

Reply by email

Michael A. Hess
to Keith Bowes: I think I've solved and fixed the crash some of you are getting on Win32. Please update…
Keith Bowes wrote
I think I've solved and fixed the crash some of you are getting on Win32. Please update your source and tell me if it worked for you.

Same as Marco. It does startup and you can see some of the windows being generated but then it just shuts down.

As for the examples. I can now run most of them. They look like crap with all of the buttons and items overlaying each other but you can see that it is tring to work. Some of the features don't work correctly but it has come a LOOOOOOOOnnnng way. I can't imagine it will take too much effort to smooth out some of the rough edges.

Oh yeah. Win98SE.

As an interesting note the hello.exe that you sent me previously does run on Win98SE but doesn't work at all on Win95. Maybe some sort of indicator.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Keith Bowes
to Keith Bowes: I think I've solved and fixed the crash some of you are getting on Win32. Please update…

From: "Michael A. Hess" :

Show quoted text 9 lines
Same as Marco. It does startup and you can see some of the windows being generated but then it just shuts down. As for the examples. I can now run most of them. They look like crap with all of the buttons and items overlaying each other but you can see that it is tring to work. Some of the features don't work correctly but it has come a LOOOOOOOOnnnng way. I can't imagine it will take too much effort to smooth out some of the rough edges.

Yes, I'm trying to resolve these issues. But I'm thinking that these issues may be partially due to the examples being designed for GTK and totally taking other interfaces for granted. Regardless, the thing that's totally baffling me now is the exception I get when running the IDE.

Show quoted text 13 lines
Oh yeah. Win98SE. As an interesting note the hello.exe that you sent me previously does run on Win98SE but doesn't work at all on Win95. Maybe some sort of indicator. -- ==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Marco van de Voort
to Luis R. Hilario: Windows '98 / IE 5.5 (and Mozilla :) I is using a clean copy now (before used that of…
Show quoted text 18 lines
Keith Bowes wrote: > > I think I've solved and fixed the crash some of you are getting on Win32. > Please update your source and tell me if it worked for you. > > As for the windres problem, I don't know what's happening there. My best > theory is that the people that are having trouble with it are using an older > version of Windows that has DOS compatibility, which is circumventing the > update. Windows '98 / IE 5.5 (and Mozilla :) I is using a clean copy now (before used that of Linux). After learning to use WinCVS is using it to obtain the sources for Windows. I is compiling to Lazarus of two forms: Manually (l.bat) and using make.exe (with a little aid).

Current CVS shows no errors (compiler last midnight CET) while compiling, but I patched the makefile by giving the entire path using the --preprocessor commandline to windres yesterday.

Lazarus now starts, gives lot of output in the console window, but then shuts down. again.

I put the log to the console on www.stack.nl/~marcov/lazaruslog

Reply by email