-
Главная
Список форумов
Ошибки Open Server
-
Поиск
-
- Текущее время: 13 июн 2023, 15:35
- Часовой пояс: UTC+03:00
-
gtdmax
- Сообщения: 2
- Зарегистрирован: 10 фев 2021, 23:54
-
Максим
- Сообщения: 6005
- Зарегистрирован: 11 дек 2010, 20:29
Re: При запуске open server выдаёт ошибку
Непрочитанное сообщение
Максим » 11 фев 2021, 00:08
Что нибудь делали с файлами программы до возникновения проблемы?
Попробуйте сбросить настройки и запустить программу — переименуйте файл userdataprofileDefault.ini в userdataprofileDefault_old.ini чтобы иметь копию прежних настроек, затем содержимое файла modulessystemconfsetup.txt записываем в userdataprofileDefault.ini или другие имя файла, если у вас использоваться профиль с именем отличным от Default.
Если хотите, могу тимвьювером глянуть (доступ в личку можете кинуть).
-
gtdmax
- Сообщения: 2
- Зарегистрирован: 10 фев 2021, 23:54
-
Максим
- Сообщения: 6005
- Зарегистрирован: 11 дек 2010, 20:29
Re: При запуске open server выдаёт ошибку
Непрочитанное сообщение
Максим » 11 фев 2021, 01:24
Решено через тимвьювер. Что было:
Человек не убрал галочку BETA UTF8 из языковых настроек Windows 10, как того требует руководство пользователя. При этом всё же включил Open Server и сохранил настройки. При сохранении настройки Open Server были испорчены из-за неверных настроек Windows 10 (неснятая галочка) и поэтому Open Server у человека больше никогда не смог запустится.
Так же были не настроены права на HOSTS файл — но это уже привычная ситуация.
Плюс ко всему он использует старую версию программы в которой есть ошибка (при сбросе настроек восстанавливаются не заводские, а вообще оч. старые некорректные настройки). Поэтому всегда всем советую обновляться, хотя бы раз в год.
-
Максим
- Сообщения: 6005
- Зарегистрирован: 11 дек 2010, 20:29
Re: При запуске open server выдаёт ошибку
Непрочитанное сообщение
Максим » 07 июл 2022, 00:27
bymtsv писал(а): ↑07 июл 2022, 00:09
Доброго времени суток. Пишу через год, да. Столкнулся с такой же проблемой, уже глаза закрываются, не прочитал инструкцию и наткнулся на те же грабли. Что, прям вообще никак не исправить?
Легко поправить. Просто откройте испорченный конфиг и пересохраните его в utf-8 без BOM или в win-1251 кодировке, в зависимости от того, какой файл конфига испортился. Предварительно естественно нужно снять галочку в Win (как показано в руководстве) и перезагрузиться.
-
bymtsv
- Сообщения: 2
- Зарегистрирован: 07 июл 2022, 00:08
-
sensirex
- Сообщения: 1
- Зарегистрирован: 14 дек 2022, 14:52
Re: При запуске open server выдаёт ошибку
Непрочитанное сообщение
sensirex » 14 дек 2022, 14:54
Максим писал(а): ↑07 июл 2022, 00:27
bymtsv писал(а): ↑07 июл 2022, 00:09
Доброго времени суток. Пишу через год, да. Столкнулся с такой же проблемой, уже глаза закрываются, не прочитал инструкцию и наткнулся на те же грабли. Что, прям вообще никак не исправить?Легко поправить. Просто откройте испорченный конфиг и пересохраните его в utf-8 без BOM или в win-1251 кодировке, в зависимости от того, какой файл конфига испортился. Предварительно естественно нужно снять галочку в Win (как показано в руководстве) и перезагрузиться.
что делать если эта функция нужна активированной?
Daremez, в качестве разделителя целой и дробной части могут использоваться разные знаки. Чаще всего это точка или запятая. Что именно используется — зависит от региональных стандартов. Например, если в твоей системе в региональных стандартах, в качестве разделителя задана запятая, то такое преобразование приведёт к ошибке: StrToFloat(‘12.5’). Чтобы посмотреть какой именно знак выбран в системе в качестве разделителя, надо открыть: Пуск — Панель управления — Язык и региональные стандарты — закладка «Региональные параметры» — нажать кнопку «Настройка…» — значение в поле «Разделитель целой и дробной части». — Это значение можно самостоятельно поменять, если нужно.
Но что касается программы — надо писать такой код, который не зависит от региональных настроек.
В программе принятый в данный момент разделитель можно прочитать из переменной: DecimalSeperator. Эта переменная объявлена в модуле SysUtils и инициализируется автоматически при запуске программы. Также, значение этой переменной (и других подобных переменных, связанных с региональными настройками) поменяется прямо во время работы программы, в ответ на сообщение WM_WININICHANGE. — Это сообщение отправляется приложению в случае, если поменялись региональные настройки в системе (например, пользователь поменял).
В программе можно запретить изменение значений в переменных, связанных с региональными стандартами. Для этого можно установить значение свойства:
Application.UpdateFormatSettings := False;
Но делать так не надо. Программа должна работать при любых настройках. Для решения можно использовать, например, такой код:
Delphi | ||
|
Перейти к контенту
Daremez, в качестве разделителя целой и дробной части могут использоваться разные знаки. Чаще всего это точка или запятая. Что именно используется — зависит от региональных стандартов. Например, если в твоей системе в региональных стандартах, в качестве разделителя задана запятая, то такое преобразование приведёт к ошибке: StrToFloat(‘12.5’). Чтобы посмотреть какой именно знак выбран в системе в качестве разделителя, надо открыть: Пуск — Панель управления — Язык и региональные стандарты — закладка «Региональные параметры» — нажать кнопку «Настройка…» — значение в поле «Разделитель целой и дробной части». — Это значение можно самостоятельно поменять, если нужно.
Но что касается программы — надо писать такой код, который не зависит от региональных настроек.
В программе принятый в данный момент разделитель можно прочитать из переменной: DecimalSeperator. Эта переменная объявлена в модуле SysUtils и инициализируется автоматически при запуске программы. Также, значение этой переменной (и других подобных переменных, связанных с региональными настройками) поменяется прямо во время работы программы, в ответ на сообщение WM_WININICHANGE. — Это сообщение отправляется приложению в случае, если поменялись региональные настройки в системе (например, пользователь поменял).
В программе можно запретить изменение значений в переменных, связанных с региональными стандартами. Для этого можно установить значение свойства:
Application.UpdateFormatSettings := False;
Но делать так не надо. Программа должна работать при любых настройках. Для решения можно использовать, например, такой код:
Delphi | ||
|
-
Главная
Список форумов
Ошибки Open Server
-
Поиск
-
- Текущее время: 05 июн 2023, 19:05
- Часовой пояс: UTC+03:00
-
gtdmax
- Сообщения: 2
- Зарегистрирован: 10 фев 2021, 23:54
-
Максим
- Сообщения: 6005
- Зарегистрирован: 11 дек 2010, 20:29
Re: При запуске open server выдаёт ошибку
Непрочитанное сообщение
Максим » 11 фев 2021, 00:08
Что нибудь делали с файлами программы до возникновения проблемы?
Попробуйте сбросить настройки и запустить программу — переименуйте файл userdataprofileDefault.ini в userdataprofileDefault_old.ini чтобы иметь копию прежних настроек, затем содержимое файла modulessystemconfsetup.txt записываем в userdataprofileDefault.ini или другие имя файла, если у вас использоваться профиль с именем отличным от Default.
Если хотите, могу тимвьювером глянуть (доступ в личку можете кинуть).
-
gtdmax
- Сообщения: 2
- Зарегистрирован: 10 фев 2021, 23:54
-
Максим
- Сообщения: 6005
- Зарегистрирован: 11 дек 2010, 20:29
Re: При запуске open server выдаёт ошибку
Непрочитанное сообщение
Максим » 11 фев 2021, 01:24
Решено через тимвьювер. Что было:
Человек не убрал галочку BETA UTF8 из языковых настроек Windows 10, как того требует руководство пользователя. При этом всё же включил Open Server и сохранил настройки. При сохранении настройки Open Server были испорчены из-за неверных настроек Windows 10 (неснятая галочка) и поэтому Open Server у человека больше никогда не смог запустится.
Так же были не настроены права на HOSTS файл — но это уже привычная ситуация.
Плюс ко всему он использует старую версию программы в которой есть ошибка (при сбросе настроек восстанавливаются не заводские, а вообще оч. старые некорректные настройки). Поэтому всегда всем советую обновляться, хотя бы раз в год.
-
Максим
- Сообщения: 6005
- Зарегистрирован: 11 дек 2010, 20:29
Re: При запуске open server выдаёт ошибку
Непрочитанное сообщение
Максим » 07 июл 2022, 00:27
bymtsv писал(а): ↑07 июл 2022, 00:09
Доброго времени суток. Пишу через год, да. Столкнулся с такой же проблемой, уже глаза закрываются, не прочитал инструкцию и наткнулся на те же грабли. Что, прям вообще никак не исправить?
Легко поправить. Просто откройте испорченный конфиг и пересохраните его в utf-8 без BOM или в win-1251 кодировке, в зависимости от того, какой файл конфига испортился. Предварительно естественно нужно снять галочку в Win (как показано в руководстве) и перезагрузиться.
-
bymtsv
- Сообщения: 2
- Зарегистрирован: 07 июл 2022, 00:08
-
sensirex
- Сообщения: 1
- Зарегистрирован: 14 дек 2022, 14:52
Re: При запуске open server выдаёт ошибку
Непрочитанное сообщение
sensirex » 14 дек 2022, 14:54
Максим писал(а): ↑07 июл 2022, 00:27
bymtsv писал(а): ↑07 июл 2022, 00:09
Доброго времени суток. Пишу через год, да. Столкнулся с такой же проблемой, уже глаза закрываются, не прочитал инструкцию и наткнулся на те же грабли. Что, прям вообще никак не исправить?Легко поправить. Просто откройте испорченный конфиг и пересохраните его в utf-8 без BOM или в win-1251 кодировке, в зависимости от того, какой файл конфига испортился. Предварительно естественно нужно снять галочку в Win (как показано в руководстве) и перезагрузиться.
что делать если эта функция нужна активированной?
Topic: Exception EConvertError in module ISHelper.exe at 0000D4C2. »» is not a valid (Read 28875 times)
0 Members and 1 Guest are viewing this topic.
REDACTED
I am using Windows 7 home edition. Recently 2 little boxes have been popping up whenever I boot my computer. I don’t know what it means. I’ve searched the internet and it says it has something to do with iSkysoft. Since the little boxes began popping up, some of the programs on my computer will not work. Can you help me.
The two boxes say:
Exception EConvertError in module ISHelper.exe at 0000D4C2. »» is not a valid integer value.
Exception EAccessViolation in module ISHelper.exe at 000CB35F. Access violation at address 004CB35F in module ‘ISHelper.exe’. Read of address oooooo5C.
Logged
iSkysoft appears to be related to a media downloader and converter if you have ever installed it.
Logged
REDACTED
I downloaded ConvertX6 and a «background package» (provides scenes) with it. Should I remove them? I purchased a license to ConvertX6, but that doesn’t matter to me if it is messing up my computer.
Logged
It’s worth a shot, if the popups disappear you know then what was causing it
Logged
REDACTED
I’ll try it and get back.
Logged
REDACTED
Well, I removed ConvertX6. The two little windows don’t pop up, but I am unable to use Acoustica Basic 6. Every time I open the program, it says what is listed below and it closes the program:
Acoustica Basic Edition Audio Editor has stopped working
A problem caused the program to stop working correctly. Windows will close the program an notify you if a solution is available.
I don’t understand. It was running fine before.
Logged
REDACTED
There are 2 folders in «My Documents» that weren’t there before. One reads, iskysoft
The other reads, iSkysoft DVD Creator.
I checked in Control Panel in «Programs and Features» and there is no iSkysoft listed there. All I know is I didn’t have any trouble until it iSkysoft appeared.
Logged
I would say remove everything from ConvertX6 and Acoustica.
Reboot, check for leftovers and if there are none install Acoustica again and see what happens.
As removing through control panel and/or using the uninstaller of the developer often leaves things behind, you should do it manually.
Logged
REDACTED
I did what you said and after reboot, installed acoustica again, but it still doesn’t work. Gives same message as before. I noticed one thing…the 2 iSkysoft folders did not reappear after reboot. I did a search for «programs and files» for iSkysoft, and it could not be found.
Logged
REDACTED
Another thing I just discovered. I opened VirtualDub and clicked to open an avi file in my documents, but it didn’t show it…even when at «files of type» I clicked «All Types». I had to drag & drop the file into VirtualDub. I’ve never had to do that before.
Logged
As Eddy said, I’d remove all those programs though I wouldn’t reinstall any of them, install VLC player for movies and online editors/converters can be found for everything else.
Logged
— Remove all troubled applications (Virtualdub also).
— Reboot
— Check for leftovers (make sure you have «show system & hidden files» enabled)
— Cleanup the registry (CCleaner)
— Reboot
— Run Farbar and let us check the log files to see if more needs to be removed/cleaned up.
« Last Edit: September 30, 2016, 09:26:34 AM by Eddy »
Logged
Windows 10: exception EConvertError
Discus and support exception EConvertError in Windows 10 BSOD Crashes and Debugging to solve the problem; Hi and thanks —
I have a sweet old astrology program that has worked perfectly with Windows 10 until recently. Now when I try to start it, I get the…
Discussion in ‘Windows 10 BSOD Crashes and Debugging’ started by Purewhitelight, Feb 23, 2019.
-
Hi and thanks —
I have a sweet old astrology program that has worked perfectly with Windows 10 until recently. Now when I try to start it, I get the following message . . .
exception EConvertError in module wowastro.exe at 00009718. » is not an integer value.
. . . and the program aborts. Can you help me?
-
Exception EConverterror in module ISHelper.exe at 0000d49a. Has to do with display. I have Windows 10. how can I fix this?
Exception EConverterror in module ISHelper.exe at 0000d49a. Has to do with display. I have Windows 10. how can I fix this?
-
Application error: Exception EConvertError in Module IShelper .exe at 0000D422 not a valid integer
Hi Andrew,
Jsssssssss has posted an answer regarding this error from this
post. We recommend checking it to resolve this issue.
Do let us know if you need any other assistance.
Regards.
-
exception EConvertError
exception access_violation
Hi William,
Since a specific application is giving you Exception access violation error, we suggest that you try to add that application to Data Execution Prevention exceptions list. See steps below:
- On the Search box, type Control Panel and choose Control Panel from the list of results.
- Click on System and Security, then select System.
- On the left pane, click on Advanced system settings.
- Select on the Advanced tab .
- Under Performance, click on the Settings button.
- Go to Data Execution Prevention tab.
- If DEP is turned on for you, click the Add button.
- Locate the .exe file of the program you wish to run.
- After you’ve added that program to the DEP exclusion list, click Apply and
OK to save the changes. - Restart the computer and try running the application again.
Let us know if you have any other questions.
Thema:
exception EConvertError
-
exception EConvertError — Similar Threads — exception EConvertError
-
system thread exception not handled ntfs.sys Minidump help..
in Windows 10 Gaming
system thread exception not handled ntfs.sys Minidump help..: Hi all!I’ve had major issues with my PC for a couple off weeks now.Have tried to re-install with some luck last week, but after installing a keyboard driver the system crashed and I had to start all over again with a fresh install.. The install was blocked multiple times by…
-
system thread exception not handled ntfs.sys Minidump help..
in Windows 10 Software and Apps
system thread exception not handled ntfs.sys Minidump help..: Hi all!I’ve had major issues with my PC for a couple off weeks now.Have tried to re-install with some luck last week, but after installing a keyboard driver the system crashed and I had to start all over again with a fresh install.. The install was blocked multiple times by…
-
system thread exception not handled ntfs.sys Minidump help..
in Windows 10 Drivers and Hardware
system thread exception not handled ntfs.sys Minidump help..: Hi all!I’ve had major issues with my PC for a couple off weeks now.Have tried to re-install with some luck last week, but after installing a keyboard driver the system crashed and I had to start all over again with a fresh install.. The install was blocked multiple times by…
-
BSOD with NTFS.Sys failed System Service Exception When Running Windows Update to 22H2
in Windows 10 BSOD Crashes and Debugging
BSOD with NTFS.Sys failed System Service Exception When Running Windows Update to 22H2: Good day,I’ve been having issues with my system and need some advice.The BSOD started a few months earlier after the installation of a Quality Update and I swapped my graphics card from Nvidia to AMD despite running DDU before and after multiple times.The current instability…
-
BSOD with NTFS.Sys failed System Service Exception When Running Windows Update to 22H2
in Windows 10 Gaming
BSOD with NTFS.Sys failed System Service Exception When Running Windows Update to 22H2: Good day,I’ve been having issues with my system and need some advice.The BSOD started a few months earlier after the installation of a Quality Update and I swapped my graphics card from Nvidia to AMD despite running DDU before and after multiple times.The current instability…
-
BSOD with NTFS.Sys failed System Service Exception When Running Windows Update to 22H2
in Windows 10 Software and Apps
BSOD with NTFS.Sys failed System Service Exception When Running Windows Update to 22H2: Good day,I’ve been having issues with my system and need some advice.The BSOD started a few months earlier after the installation of a Quality Update and I swapped my graphics card from Nvidia to AMD despite running DDU before and after multiple times.The current instability…
-
How to fix stopcode Memory Management & System Service Exception
in Windows 10 Gaming
How to fix stopcode Memory Management & System Service Exception: At first an Errror to Memory_Management appeared includes back up your data and such failure to predict my disk. Then another one appeared System Service Exception. How do i fix this please help. The system Service exception keep on appearing every 30 minutes…
-
How to fix stopcode Memory Management & System Service Exception
in Windows 10 Software and Apps
How to fix stopcode Memory Management & System Service Exception: At first an Errror to Memory_Management appeared includes back up your data and such failure to predict my disk. Then another one appeared System Service Exception. How do i fix this please help. The system Service exception keep on appearing every 30 minutes…
-
How to fix stopcode Memory Management & System Service Exception
in Windows 10 Drivers and Hardware
How to fix stopcode Memory Management & System Service Exception: At first an Errror to Memory_Management appeared includes back up your data and such failure to predict my disk. Then another one appeared System Service Exception. How do i fix this please help. The system Service exception keep on appearing every 30 minutes…
Users found this page by searching for:
-
exception econverterror
,
-
exception e convert error 0000d4c2
,
-
exception econvert error
,
- exception econverterror in module
so i tried to make simple app to check if entered number is odd or even. Also i wanted to handle EConvertError by entering Try and Except.
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
var x:integer;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
try
x:=StrToInt(InputBox('Zadávanie','Napíš číslo',''));
if x mod 2 = 0 then ShowMessage('Zadané číslo je párne')
else ShowMessage('Zadané číslo je nepárne');
except
on E: EConvertError do
ShowMessage('Zadávaj len čísla!');
end;
end;
end.
But this don’t work and still showing the same exact Project1.exe raised exception class EConvertError with message »’ is not a vaild integer value instead of ‘Zadávaj len čísla!’. Why?
asked Jan 10, 2020 at 15:34
1
Your try..except
code is fine.
You are simply experiencing what happens when you run your app inside of the IDE’s debugger. The debugger sees the exception before your app does. You are seeing a popup message from the debugger. Simply dismiss the popup and either press the «Run» button in the IDE, or press F9 on the keyboard, to continue execution and the exception will be passed to your app for normal handling, calling your except
block. The popup will not happen when you run your app outside of the debugger, the except
will just be called immediately.
If you don’t want the debugger to popup a message on the exception, you can add EConvertError
to the debugger’s list of exceptions that it ignores. Or you can place breakpoints around the code that instruct the debugger to ignore exceptions for just this block of code.
Or, you can simply use TryStrToInt()
instead of StrToInt()
. TryStrToInt()
does not raise an exception on a conversion error.
answered Jan 10, 2020 at 18:19
Remy LebeauRemy Lebeau
549k31 gold badges450 silver badges763 bronze badges
2
Just use TryStrToInt()
which returns false
if the input was no valid integer, something like that:
procedure TForm1.FormCreate(Sender: TObject);
var x: integer;
begin
try
if not TryStrToInt(InputBox('Zadávanie','Napíš číslo',''),x) then begin
ShowMessage('Zadávaj len čísla!');
exit;
end;
if x mod 2 = 0 then ShowMessage('Zadané číslo je párne')
else ShowMessage('Zadané číslo je nepárne');
end;
So no exception will be raised on input error.
IMHO exceptions should be exceptional — I don’t like using EConvertError
at all in my code.
BTW it is not a very good idea to put some UI code in the OnCreate
event — better use OnShow
for that.
answered Jan 10, 2020 at 16:34
Arnaud BouchezArnaud Bouchez
42.2k3 gold badges69 silver badges159 bronze badges
2
Windows 10: exception EConvertError
Discus and support exception EConvertError in Windows 10 BSOD Crashes and Debugging to solve the problem; Hi and thanks —
I have a sweet old astrology program that has worked perfectly with Windows 10 until recently. Now when I try to start it, I get the…
Discussion in ‘Windows 10 BSOD Crashes and Debugging’ started by Purewhitelight, Feb 23, 2019.
-
exception EConvertError
Hi and thanks —
I have a sweet old astrology program that has worked perfectly with Windows 10 until recently. Now when I try to start it, I get the following message . . .
exception EConvertError in module wowastro.exe at 00009718. » is not an integer value.
. . . and the program aborts. Can you help me?
-
Exception EConverterror in module ISHelper.exe at 0000d49a. Has to do with display. I have Windows 10. how can I fix this?
Exception EConverterror in module ISHelper.exe at 0000d49a. Has to do with display. I have Windows 10. how can I fix this?
-
Application error: Exception EConvertError in Module IShelper .exe at 0000D422 not a valid integer
Hi Andrew,
Jsssssssss has posted an answer regarding this error from this
post. We recommend checking it to resolve this issue.
Do let us know if you need any other assistance.
Regards.
-
exception EConvertError
exception access_violation
Hi William,
Since a specific application is giving you Exception access violation error, we suggest that you try to add that application to Data Execution Prevention exceptions list. See steps below:
- On the Search box, type Control Panel and choose Control Panel from the list of results.
- Click on System and Security, then select System.
- On the left pane, click on Advanced system settings.
- Select on the Advanced tab .
- Under Performance, click on the Settings button.
- Go to Data Execution Prevention tab.
- If DEP is turned on for you, click the Add button.
- Locate the .exe file of the program you wish to run.
- After you’ve added that program to the DEP exclusion list, click Apply and
OK to save the changes. - Restart the computer and try running the application again.
Let us know if you have any other questions.
exception EConvertError
-
exception EConvertError — Similar Threads — exception EConvertError
-
I’m getting system thread exception not handled when booting from usb
in Windows 10 Gaming
I’m getting system thread exception not handled when booting from usb: I just installed a new ssd after my old one got corrupted and had to take it out. So I’m trying to reinstall windows but when I try to launch from my USB copy of windows I get system thread exception not handled so start up never completes and I’m not able to get to safe mode… -
I’m getting system thread exception not handled when booting from usb
in Windows 10 Software and Apps
I’m getting system thread exception not handled when booting from usb: I just installed a new ssd after my old one got corrupted and had to take it out. So I’m trying to reinstall windows but when I try to launch from my USB copy of windows I get system thread exception not handled so start up never completes and I’m not able to get to safe mode… -
I’m getting system thread exception not handled when booting from usb
in Windows 10 BSOD Crashes and Debugging
I’m getting system thread exception not handled when booting from usb: I just installed a new ssd after my old one got corrupted and had to take it out. So I’m trying to reinstall windows but when I try to launch from my USB copy of windows I get system thread exception not handled so start up never completes and I’m not able to get to safe mode… -
programs except for browsers cant seem to able to access internet , programs like steam,…
in Windows 10 Gaming
programs except for browsers cant seem to able to access internet , programs like steam,…: this same type of question has been once in 2020 for windows 10, it wasnt completely solved it has been happening to me too, i’ve tried all the solutions listed over there and nothing seems to work. please someone with an actual solution help me.programs like steam, ubisoft… -
programs except for browsers cant seem to able to access internet , programs like steam,…
in Windows 10 Software and Apps
programs except for browsers cant seem to able to access internet , programs like steam,…: this same type of question has been once in 2020 for windows 10, it wasnt completely solved it has been happening to me too, i’ve tried all the solutions listed over there and nothing seems to work. please someone with an actual solution help me.programs like steam, ubisoft… -
All my drives except C went missing. What should I do?
in Windows 10 Drivers and Hardware
All my drives except C went missing. What should I do?: All my drives except C went missinghttps://answers.microsoft.com/en-us/windows/forum/all/all-my-drives-except-c-went-missing-what-should-i/03bbb3ce-6cec-4418-adf7-f2f540b40dbe
-
All my drives except C went missing. What should I do?
in Windows 10 Gaming
All my drives except C went missing. What should I do?: All my drives except C went missinghttps://answers.microsoft.com/en-us/windows/forum/all/all-my-drives-except-c-went-missing-what-should-i/03bbb3ce-6cec-4418-adf7-f2f540b40dbe
-
All my drives except C went missing. What should I do?
in Windows 10 Software and Apps
All my drives except C went missing. What should I do?: All my drives except C went missinghttps://answers.microsoft.com/en-us/windows/forum/all/all-my-drives-except-c-went-missing-what-should-i/03bbb3ce-6cec-4418-adf7-f2f540b40dbe
-
BSOD «System Thread Exception Not Handled» with Unity and Meta Quest 2
in Windows 10 BSOD Crashes and Debugging
BSOD «System Thread Exception Not Handled» with Unity and Meta Quest 2: I’m getting this BSOD «System Thread Exception Not Handled» error and my computer crashes sometimes when I try to use the Unity Game Engine and the Meta Quest 2 Headset. It has happened the last two times when I was trying to build a Unity project to the Meta Quest 2 Headset….
Users found this page by searching for:
-
exception econverterror
,
-
exception e convert error 0000d4c2
,
-
exception econvert error
,
- exception econverterror in module
so i tried to make simple app to check if entered number is odd or even. Also i wanted to handle EConvertError by entering Try and Except.
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
var x:integer;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
try
x:=StrToInt(InputBox('Zadávanie','Napíš číslo',''));
if x mod 2 = 0 then ShowMessage('Zadané číslo je párne')
else ShowMessage('Zadané číslo je nepárne');
except
on E: EConvertError do
ShowMessage('Zadávaj len čísla!');
end;
end;
end.
But this don’t work and still showing the same exact Project1.exe raised exception class EConvertError with message »’ is not a vaild integer value instead of ‘Zadávaj len čísla!’. Why?
asked Jan 10, 2020 at 15:34
1
Your try..except
code is fine.
You are simply experiencing what happens when you run your app inside of the IDE’s debugger. The debugger sees the exception before your app does. You are seeing a popup message from the debugger. Simply dismiss the popup and either press the «Run» button in the IDE, or press F9 on the keyboard, to continue execution and the exception will be passed to your app for normal handling, calling your except
block. The popup will not happen when you run your app outside of the debugger, the except
will just be called immediately.
If you don’t want the debugger to popup a message on the exception, you can add EConvertError
to the debugger’s list of exceptions that it ignores. Or you can place breakpoints around the code that instruct the debugger to ignore exceptions for just this block of code.
Or, you can simply use TryStrToInt()
instead of StrToInt()
. TryStrToInt()
does not raise an exception on a conversion error.
answered Jan 10, 2020 at 18:19
Remy LebeauRemy Lebeau
550k31 gold badges451 silver badges764 bronze badges
2
Just use TryStrToInt()
which returns false
if the input was no valid integer, something like that:
procedure TForm1.FormCreate(Sender: TObject);
var x: integer;
begin
try
if not TryStrToInt(InputBox('Zadávanie','Napíš číslo',''),x) then begin
ShowMessage('Zadávaj len čísla!');
exit;
end;
if x mod 2 = 0 then ShowMessage('Zadané číslo je párne')
else ShowMessage('Zadané číslo je nepárne');
end;
So no exception will be raised on input error.
IMHO exceptions should be exceptional — I don’t like using EConvertError
at all in my code.
BTW it is not a very good idea to put some UI code in the OnCreate
event — better use OnShow
for that.
answered Jan 10, 2020 at 16:34
Arnaud BouchezArnaud Bouchez
42.2k3 gold badges69 silver badges159 bronze badges
2