Sign in Join

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

Mailing lists / lazarus / 1999-07

More on string problem

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Michael A. Hess

OK I was wrong that didn't totally fix it. But now I have. I still don't know what is happening but it is in StrPCopy that has the problem. I still used the array[] of char but now I wrote my own StrPCopy routine.

Just a loop in the code

for I := 1 to length(signal) do
   gSignal[I - 1] := signal[I];
gSignal[I] := #0;

with that instead of the StrPCopy the gtk_signal_connect is happy as a clam and does it's thing. So something must be wrong with StrPCopy.

I can't get the program running now because it throws and unhandled exception which gives

At end of ExceptionAddresStack

Getting there. :-\

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

Reply by email

Michael A. Hess
to Shane Miller: Yes, I tried the same thing before FTPing it and it threw an exception. Not sure why…
Shane Miller wrote 7 lines
Yes, I tried the same thing before FTPing it and it threw an exception. Not sure why though. Seems to throw it after iut assigns the MenuBar to the form (or during). Hopefully by tomorrow you'll have it figured out. :-)

Well I know were it is but not sure why. Didn't go that deep yet.

gtk_widget_show (fComponent)

called in

TWinControl.Show

by

TMenuBar.Show

is what is throwing the exception. I placed the gtk_widget_show in a try..except block to trap it and just print a writeln telling me if this did throw it. Sure enough that is were it came from. With that block in there the program continued on but later on it just cored.

We'll have to trace back through and find out if some of the variables are set to the correct values or what is exactly going on.

talk to you folks tomorrow. Please email ASAP when you figure it out. FTP it to your site again.

Too late for me to keep working. After 11:00 and I have to be up by 5:30 so I'm calling it.

By the way this is starting to get fun again. :-)

Tomorrow. :-)

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

Reply by email

Shane Miller
Show quoted text 26 lines
OK I was wrong that didn't totally fix it. But now I have. I still don't know what is happening but it is in StrPCopy that has the problem. I still used the array[] of char but now I wrote my own StrPCopy routine. Just a loop in the code for I := 1 to length(signal) do gSignal[I - 1] := signal[I]; gSignal[I] := #0; with that instead of the StrPCopy the gtk_signal_connect is happy as a clam and does it's thing. So something must be wrong with StrPCopy. I can't get the program running now because it throws and unhandled exception which gives At end of ExceptionAddresStack Getting there. :-\ -- ==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Yes, I tried the same thing before FTPing it and it threw an exception. Not sure why though. Seems to throw it after iut assigns the MenuBar to the form (or during).

Hopefully by tomorrow you'll have it figured out. :-)

talk to you folks tomorrow. Please email ASAP when you figure it out. FTP it to your site again.

Shane

Reply by email

Peter Vreman
to Michael A. Hess: OK I was wrong that didn't totally fix it. But now I have. I still don't know what is…
Show quoted text 21 lines
OK I was wrong that didn't totally fix it. But now I have. I still don't know what is happening but it is in StrPCopy that has the problem. I still used the array[] of char but now I wrote my own StrPCopy routine. Just a loop in the code for I := 1 to length(signal) do gSignal[I - 1] := signal[I]; gSignal[I] := #0; with that instead of the StrPCopy the gtk_signal_connect is happy as a clam and does it's thing. So something must be wrong with StrPCopy. I can't get the program running now because it throws and unhandled exception which gives At end of ExceptionAddresStack Getting there. :-\

If you say how i can reproduce the problem i'll take a don't have the time to figure out myself how to create the problem

Peter

Reply by email