[Gambas-user] Fwd: Strean closed at program wns

Bruce Steers bsteers4 at gmail.com
Thu Sep 30 01:06:46 CEST 2021


Try this at the end of your function..

Catch
Print Error.text & gb.lf & Error.Backtrace.Join(gb.lf)

That may tell you what line has the error.

BruceS

On Wed, 29 Sep 2021, 23:50 Dag JNJ, <gambas at cd-bahia.com> wrote:

>
> Got something on Setting.Save I don't understand.
>
> The code:
>
> P*ublic Sub OptionsSave()*
>
> *  'Allgemein Tab 0*
> *  Settings.Clear("Options")*
> *  Settings["Options/DataPath"] = OPT_DataPath*
> *  Settings["Options/StammPth"] = OPT_StammPth*
> *  Settings["Options/UID"] = UID*
> *  Settings["Options/UIDP"] = UIDP*
> *  Settings["Options/DelConf"] = OPT_DelConf*
> *  Settings["Options/TipsOS"] = OPT_TipsOS*
> *  Settings["Options/SNDbep"] = OPT_SNDbep*
> *  Settings["Options/SNDend"] = OPT_SNDend*
> *  Settings["Options/SNDerr"] = SNDerr*
>
> *  'Oberfläche Tab 1*
> *  Settings["FLD/FLD_va"] = FLD_va*
> *  Settings["FLD/FLD_H"] = FLD_H*
> *  Settings["FLD/FLD_B"] = FLD_B*
> *  Settings["FLD/FLD_Hta"] = FLD_Hta*
> *  Settings["FLD/FLD_Bta"] = FLD_Bta*
> *  Settings["FLD/FLD_Bint"] = FLD_Bint*
> *  Settings["FLD/FLD_Mint"] = FLD_Mint*
> *  Settings["FLD/FLD_Bdec"] = FLD_Bdec*
> *  Settings["FLD/FLD_Mdec"] = FLD_Mdec*
> *  Settings["FLD/FLD_Bdat"] = FLD_Bdat*
> *  Settings["FLD/FLD_Mdat"] = FLD_Mdat*
> *  Settings["FLD/FLD_Btim"] = FLD_Btim*
> *  Settings["FLD/FLD_Mtim"] = FLD_Mtim*
> *  Settings["FLD/FLD_LBLw"] = FLD_LBLw*
> *  Settings["FLD/FLD_TTBl"] = FLD_TTBL*
> *  Settings["FLD/FLD_TTAL"] = FLD_TTAL*
> *  Settings["FLD/FLD_TSW"] = FLD_TSW*
> *  Settings["FLD/FLD_TSWL"] = FLD_TSWL*
>
> *  Settings["FLD/FLD_LBLw"] = FLD_LBLw*
> *  Settings["FLD/FLD_CBB"] = FLD_CBB*
> *  Settings["FLD/FLD_CBH"] = FLD_CBH*
> *  Settings["FLD/FLD_CBB"] = FLD_SBB*
> *  Settings["FLD/FLD_CBH"] = FLD_SBH*
>
> *  'Generate Tab 2*
> *  Settings["Options/ProjektPth"] = OPT_ProjektPth*
> *  'Settings["Options/LastBUPth"] = OPT_LastBUPth*
> *  'Settings["Options/LastBUF"] = OPT_LastBUF*
> *  'Settings["Options/LastBUS"] = OPT_LastBUS*
> *  Settings.Save*
>
>
> *End *
>
> Please see attatchment.
>
>
> Am 30.09.21 um 00:21 schrieb Jussi Lahtinen:
>
> Stream can be used for many other things than just writing files.
> Extremely hard to say what exactly is happening without seeing more code.
> Can you send the code or alternatively, isolate the problem into a small
> runnable project?
>
>
> Jussi
>
> On Thu, Sep 30, 2021 at 12:01 AM Dag JNJ <gambas at cd-bahia.com> wrote:
>
>> Hi,
>>
>> I have now a problem ending a running program in the IDE.
>>
>> It does not end, even if I close the last (current and start-class) form.
>>
>> The problem is - I don't try to write anything in a file (stream) at all
>> at this point.
>>
>> Does it have something to do with the Settings perhaps? I save them
>> before I end the program though.
>>
>> Thanks for any advice,
>>
>> Dag JNJ
>>
>> PS. See attatchment.
>>
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210930/3fcabee2/attachment.htm>


More information about the User mailing list