Recent

Author Topic: Some beginners problems  (Read 13581 times)

TykeBSD

  • Newbie
  • Posts: 2
Some beginners problems
« on: February 07, 2004, 12:04:17 am »
Hi

I've just downloaded Lazarus this evening and started to play.  I program in Delphi for a living so I am familiar with Pascal.  I have three problems that I'm hoping someone can help me out with.  I have downloaded the source snapshot to try to fix things but this did not help and finally I'm using winXP.

1. When I try to run a simple application the three compile consoles open and close as they do when I build.  The messages window reports a successful build, and the console looks like this:

> [TCompiler.Compile] end
> NOTE: No debugger defined. Starting program without debugging ...
>   EXECUTING "D:\Source\FiF\fif.exe"
>     WorkingDir "D:\Source\FiF\"
> [TMainIDE.DoRunProject] END

unfortunately my application does not start, any ideas what I've missed off?

2. One of the controls I've dragged onto my form is a string grid.  Every time I open the project the grid has forgotten it location and size and appears in the top left corner of the form.  I think this may be a bug as it remembers the anchor settings I've specified.

3. I have a combobox on the same form and I'm trying to add some functionality to the OnKeyDown function.  I'm interested when the enter key is pressed so I have a line 'if key = VK_RETURN then'.  This will not compile as VK_RETURN identifier is not found.  Any ideas how I make it find this?

Any help will be appreciated, I think I'll be impressed if I can get this to compile.

TykeBSD

PS Sorry for the long post!

TykeBSD

  • Newbie
  • Posts: 2
Some beginners problems
« Reply #1 on: February 07, 2004, 01:13:37 am »
Hi, me again

As a follow up I've solved problem 3, I needed to use the LCLType unit to get VK_RETURN.

Also with problem 2, if I do not resize the TStringGrid it save the location I place it in.  If I resize the component the location get reset to 0,0 and the old size when I reload the project.

TykeBSD

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2611
Some beginners problems
« Reply #2 on: February 09, 2004, 12:46:38 pm »
About 1)
I'm not a win32 user, but if I recall it right this is a know issue. Since you can't debug on win32 at the moment, just fire your app from another cdm line.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Some beginners problems
« Reply #3 on: February 09, 2004, 02:04:00 pm »
Quote from: "Marc"
About 1)
I'm not a win32 user, but if I recall it right this is a know issue. Since you can't debug on win32 at the moment, just fire your app from another cdm line.


With the current cvs-version running a app from the IDE is possible, when you set the debugger to none.

If yoe set the debugger to a recent gdb (I tried with gdb 6.0), the IDE fist gives a error message and than hangs with a lots of messages:

[TCmdLineDebugger] Debug PID: 888
ToDo: implement WaitForHandles for this OS
[TCmdLineDebugger.Getoutput] Error waiting
[TDebugManager.OnDebuggerChangeState] state: dsError
Ooops, the debugger entered the error state

After closing the messagebox I get a lot of repeated lines in the console:
ToDo: implement WaitForHandles for this OS

Marc, would it be very difficult to implement WaitForHandles for win32?

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2611
Some beginners problems
« Reply #4 on: February 10, 2004, 06:00:48 pm »
Quote from: "Vincent"


Marc, would it be very difficult to implement WaitForHandles for win32?


Nope, I'll have a look.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2611
Some beginners problems
« Reply #5 on: February 12, 2004, 02:29:33 pm »
Should be in there by now. Only I couldn't test it.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Some beginners problems
« Reply #6 on: February 12, 2004, 03:35:23 pm »
It doesn't loop continuously, but doesn't seem to get any information from the debugger. I might try to solve it myself later.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2611
Some beginners problems
« Reply #7 on: February 13, 2004, 12:34:44 am »
My win32 LAzarus wouldn't un last night. And I'm not quite sure if I send a break to the correct process.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018