[lazarus] Stoping debugger.

2007-02-21 Thread jean-yves . lojou
Hi,

I had some trouble running a TCP server using Synapse library.

I was only able to run it once while using the debugger (F9 key in the
IDE)

From the discussion I had on the mailing list of Synapse, one suggested
me to click on 'reset debugger' prior to running my applications.

And it worked fine.

So, I started to check in Lazarus source code and I would suggest that
in the future versions (I'm running 0.9.20 Beta) the following is added
after line number 8026 (right after Result := DebugBoss.RunDebugger;) of
the main unit (main.pas)

   DebugBoss.EndDebugging;

 

Thanks

JYL



Re: [lazarus] Stoping debugger.

2007-02-21 Thread Marc Weustink

[EMAIL PROTECTED] wrote:

Hi,

I had some trouble running a TCP server using Synapse library.

I was only able to run it once while using the debugger (F9 key in the IDE)

 From the discussion I had on the mailing list of Synapse, one suggested 
me to click on ‘reset debugger’ prior to running my applications.


And it worked fine.

So, I started to check in Lazarus source code and I would suggest that 
in the future versions (I’m running 0.9.20 Beta) the following is added 
after line number 8026 (right after Result := DebugBoss.RunDebugger;) of 
the main unit (main.pas)


   DebugBoss.EndDebugging;


This is becoming a FAQ.

The problem you have is something deeper and needs to be solved. Setting 
EndDebugging is just a workaround for this problem but doesn't solve it.
Thanks to a mail conversation I had last night with Jay Binks we found 
out that the debugger process reports an error when the application is 
stopped and this application has a .manifest.

Without the manifest debugging works fine.
Since I now have at least a direction to look at, chances that it get 
fixed are getting higher.



Marc





_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Stoping debugger.

2007-02-21 Thread Lee Jenkins

Marc Weustink wrote:



The problem you have is something deeper and needs to be solved. Setting 
EndDebugging is just a workaround for this problem but doesn't solve it.
Thanks to a mail conversation I had last night with Jay Binks we found 
out that the debugger process reports an error when the application is 
stopped and this application has a .manifest.

Without the manifest debugging works fine.
Since I now have at least a direction to look at, chances that it get 
fixed are getting higher.




I've seen this problem as well.  Taking the manifest file out does make 
it work.



--

Warm Regards,

Lee

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Stoping debugger.

2007-02-21 Thread Christian Ulrich
The problem you have is something deeper and needs to be solved. Setting 
EndDebugging is just a workaround for this problem but doesn't solve it.
Thanks to a mail conversation I had last night with Jay Binks we found 
out that the debugger process reports an error when the application is 
stopped and this application has a .manifest.

Without the manifest debugging works fine.
Since I now have at least a direction to look at, chances that it get 
fixed are getting higher.


Thge synapse problem is different from the manifest Problem. Without an 
manifest you also have problems with synapse. Maybe these 2 Bugs are the 
same (maybe in gdb) but The Synapse problem is not only there if you have an 
manifest.


Christian 


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Stoping debugger.

2007-02-21 Thread Marc Weustink

Christian Ulrich wrote:
The problem you have is something deeper and needs to be solved. 
Setting EndDebugging is just a workaround for this problem but 
doesn't solve it.
Thanks to a mail conversation I had last night with Jay Binks we 
found out that the debugger process reports an error when the 
application is stopped and this application has a .manifest.

Without the manifest debugging works fine.
Since I now have at least a direction to look at, chances that it get 
fixed are getting higher.


Thge synapse problem is different from the manifest Problem. Without an 
manifest you also have problems with synapse. Maybe these 2 Bugs are the 
same (maybe in gdb) but The Synapse problem is not only there if you 
have an manifest.


Please can you send me the output of the view-debugger-debuggeroutput 
window after you finished the first debugrun of your app.


Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives