runtime-error

Run-time error '7': Out of memory

别说谁变了你拦得住时间么 提交于 2020-01-23 02:07:32
问题 I'm trying to edit embedded charts in Word documents. My source code is below. It has worked a long time but not for the last two days. I get this error: Run-time error '7': Out of memory I have searched a lot , but I don't understand the problem. When I shutdown computer and after open it, then it works correctly, but after I get error again. It gives error in this part: 'create range with Cell Set oChart = oInShapes.Chart oChart.ChartData.Activate ' ***Note: It gives error here*** 'Set

java.lang.NoClassDefFoundError in Hadoop Basics' MapReduce Program

ぃ、小莉子 提交于 2020-01-23 01:33:32
问题 I'm trying Hadoop's Basic MapReduce Program whose tutorial is on http://java.dzone.com/articles/hadoop-basics-creating The Full code of the class is(the code is present on net on above url) import java.io.IOException; import java.util.StringTokenizer; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Job; import org.apache.hadoop.mapreduce.Mapper; import

Trying to install new features in Eclipse (using ADT as the base package)

南笙酒味 提交于 2020-01-22 10:57:29
问题 When I try to install new features in Eclipse (using ADT as the base package) I get ‘Installing Software’ has encountered a problem. An error occurred while collecting items to be installed An error occurred while collecting items to be installed session context was:(profile=profile, hase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). No repository found containing: osgi.bundle,com.android.ide.eclipse.base,21.1.0.v201302060044-569685 No repository found containing:

How to fix the Android error “Background execution not allowed: receiving Intent {…}”

笑着哭i 提交于 2020-01-22 02:52:05
问题 So I'm programming an Android app that uses Bluetooth discovery of devices. Here is the code I use to start discovery. try { myBluetoothAdapter.startDiscovery(); Log.d("Bluetooth Started successfully","yes"); } catch (Error e) { Log.d("FAILED","Ya failed mate"); e.printStackTrace(); } I then register a BroadcastReceiver to watch for when devices are found. Here is my code for that IntentFilter intentFilter = new IntentFilter(BluetoothDevice.ACTION_FOUND); final ArrayList<String>

why std::unique_ptr vector gets invalid pointer exception

强颜欢笑 提交于 2020-01-21 19:16:27
问题 I wrote simple code to help me understand smart pointers: string s = "str"; vector <unique_ptr<string>> pv ; pv.push_back(unique_ptr<string>(&s)); cout<<*(pv[0])<<endl; This code compiles fine, but gets me a runtime error: str * Error in `...': munmap_chunk(): invalid pointer: 0x00007ffd956e57e0 * Aborted (core dumped) What happened and what have I done wrong? 回答1: In the std::unique_ptr 's destructor it will call delete on the &s pointer which was not allocated via new . Just use: std:

why std::unique_ptr vector gets invalid pointer exception

淺唱寂寞╮ 提交于 2020-01-21 19:16:08
问题 I wrote simple code to help me understand smart pointers: string s = "str"; vector <unique_ptr<string>> pv ; pv.push_back(unique_ptr<string>(&s)); cout<<*(pv[0])<<endl; This code compiles fine, but gets me a runtime error: str * Error in `...': munmap_chunk(): invalid pointer: 0x00007ffd956e57e0 * Aborted (core dumped) What happened and what have I done wrong? 回答1: In the std::unique_ptr 's destructor it will call delete on the &s pointer which was not allocated via new . Just use: std:

Why does float64 produce a RuntimeWarning where float produces a nan?

泪湿孤枕 提交于 2020-01-17 05:39:06
问题 I'm using the warnings module to raise warnings as errors. When I call my function plot_fig_4 , I get the following error: In [5]: plot_amit.plot_fig_4() g: 1 of 3 theta_E: 1 of 1000 --------------------------------------------------------------------------- RuntimeWarning Traceback (most recent call last) <ipython-input-5-5a631d2493d7> in <module>() ----> 1 plot_amit.plot_fig_4() /home/dan/Science/dopa_net/plot_amit.pyc in plot_fig_4() 130 tau_0, tau, 131 theta_E_, --> 132 H) 133 134 #

Unable to import data in excel from another website using VB code

送分小仙女□ 提交于 2020-01-16 18:12:33
问题 I am try to import some data in excel from a website using VB code. During course of testing first got error 438 in login section which was rectified by respected Mr. Siddharth Rout (Thanks again) through my earlier question Runtime error 438 while importing data in excel from secured website using VBA. Now i am facing error 438 in following section and unable to import data / excel sheet remain blank. 'get the table based on the table’s id Set ieDoc = ieApp.Document Set ieTable = ieDoc.all

Stripe API JSON returns null

陌路散爱 提交于 2020-01-16 04:25:09
问题 Using the Stripe API in PHP all attempts to pull a value off of it is returning null, r not displaying a result at all. I've tried $customers = \Stripe\Customer::all(); $customers_json = $customers->__toJSON(); json_decode($customers_json); echo $customers_json->data->id; and also $customers = \Stripe\Customer::all(); $customer = $customers->__toArray(true); echo $customer["data"]["id"]; but each time both result in a blank echo. However, when I just output the original variable without

Using VBA Runtime error 13 'type mismatch' while assigning a modified cell value back to the cell

核能气质少年 提交于 2020-01-15 15:58:44
问题 My code is below, the line that gives the error, type mismatch, runtime error 13 is the line within the for loop. WHy is this happening and how can I avoid it? Workbooks(theFile).Worksheets(1).Columns("G:G").EntireColumn.NumberFormat = "0.00" For Each myCell In Columns("G:G") myCell.Value = WorksheetFunction.Trim(WorksheetFunction.Clean(myCell.Value)) Next 回答1: Probably something like For Each myCell In Columns("A:A").Cells myCell.Value = WorksheetFunction.Trim(myCell.Value) Next 来源: https:/