runtime-error

Segmentation fault during runtime of console code in C++

家住魔仙堡 提交于 2019-12-11 15:23:26
问题 I'm trying to make a simple console student details display system whereby there are 2 classes, class student(Base class) with member variables for name and registration number and class studentAthlete(Derived class) with sports type string. The code compiles sucessfully but on runtime only asks for student details but does not display the details as would be expected when I call the identify() function. On code blocks, the error might not show but on online compiles such as https://www

Error on rename 'x.frm' to 'y.frm' - Errcode: 13 - Permission denied - MySQL

最后都变了- 提交于 2019-12-11 15:19:47
问题 Ok, I know there is so many questions about this issue but, since I could not find a answer to solve my problem (I tried so many many many workarounds!!) and it made me to waste 4 hours of my work, and now I found where my problem were in, I would like to share and keep here also for my own future reference. The problem Error on rename of '.\db_testes\#sql-1f1c_1a.frm' to '.\db_testes\alteracaocrono_ateste.frm' (Errcode: 13 - Permission denied) that was happening when creating an index in a

Access selecting combobox column in VBA returns “function not defined”-error

ⅰ亾dé卋堺 提交于 2019-12-11 15:10:56
问题 when trying to access a specific column value of my combobox in VBA, I will get a runtime error telling me the "function is not defined". Is there any mistake in my calling structure or another error? I cleared the Topics-table completely before and now want to insert the new data from the combobox with two coulmns: strAdd = "INSERT INTO TopicsTbl ( TopicName, CategoryID, CategoryName) " & _ "VALUES (Forms!frmAdd_Rename_Delete_Topic!txtTopicName, Forms!frmAdd_Rename_Delete_Topic

c++ unorderedmap vector subscript out of range

ⅰ亾dé卋堺 提交于 2019-12-11 15:07:24
问题 Currently when I have been calling my getFunction method I am getting nasty crash. My program compiles fine, but when I run and call this function, I get "Debug Assertion Failed!", "Expression: vector subscript out of range". Not sure how to deal with this as I haven't been doing much in c++ for a few years. void* PluginMap::getFunction(char* pguid, char* fname){ if(plugin_map.size()>0 && plugin_map.find(pguid)!=plugin_map.end()) { //plugin_map is an unorderedmap that is defined elsewhere.

panic: runtime error: slice bounds out of range when concurrently running as goroutine

心不动则不痛 提交于 2019-12-11 15:06:09
问题 I'm calling a function as a goroutine and using a WaitGroup to prevent closing a shared Scanner before they all finish. The myfunc() function iterates over a file. I wanted to memory-map this file and share it between all of the goroutines rather than have the I/O chokepoint of reading from disk each time. I was told that this approach would work in an answer to another question. However, while this function worked fine standalone, it's not working concurrently. I am receiving the error:

Qt Creator is not displaying SFML windows

╄→гoц情女王★ 提交于 2019-12-11 14:28:44
问题 I've recently set up qt creator to work with SFML, and I tried running a piece of code as a test to see if it works. I must note the code bellow works perfectly in Codeblocks IDE but in qt creator it simply displays a console with the text "Press RETURN to close this window..." #include <SFML/System.hpp> #include <SFML/Window.hpp> #include <iostream> using namespace std; using namespace sf; Window w(VideoMode(350,350,32), "Tic Tac Toe"); Event e1; const Input& in1 = w.GetInput(); int main() {

java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.security.pkcs11)

别来无恙 提交于 2019-12-11 14:26:57
问题 I'm trying to launch my java applet (version java 6) in server webpage but When I run it i have the next error: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.security.pkcs11) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPackageAccess(Unknown Source)

“Could not connect. Too many connections” Error in MySQLi

那年仲夏 提交于 2019-12-11 14:17:26
问题 I have the following code function openDBConn($params){ $conn_mode = $params['conn_mode']; $db_conn = $params['db_conn']; //create connections if(empty($db_conn->info)) { $db_conn = new mysqli("localhost", $user, $password, "database"); $db_conn->set_charset('UTF8'); $mysqli_error = $db_conn->connect_error; } if($mysqli_error !== NULL){ die('Could not connect <br/>'. $mysqli_error); }else{ return $db_conn; } } //close db connection function closeDBConn( $params ){ $db_conn = $params['db_conn'

Runtime error in the following code

狂风中的少年 提交于 2019-12-11 14:14:52
问题 The following code,according to me should run successfully,but fails at runtime.I don't get the reason: void main() { int arr[5][3]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}; int *m=arr[0]; int **p=&m; p=p+1; printf("%d",**p); } a.exe has stopped working at runtime in gcc compiler,windows 7 64 bit 回答1: An array of arrays and a pointer to a pointer is quite different, and can't be used interchangeably. For example, if you look at your array arr it looks like this in memory +-----------+-----------

Runtime Error: WPF IOException Cannot locate resource

有些话、适合烂在心里 提交于 2019-12-11 13:51:49
问题 Refering to my previous question hyperlink email address in textbox and send it via Outlook from hyperlink email address in textbox and send it via Outlook, my desired function has been achieved by the suggested answer. But I met a runtime error, I have tried solutions from the link WPF IOException Cannot locate resource and http://devlicio.us/blogs/derik_whittaker/archive/2007/08/05/wpf-gotcha-cannot-locate-resource-filename-xaml.aspx. I still did not fix the problem. I think the problem is